@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21



Comments:

<0> glen_quagmire: Stop it. Just stop it.
<1> have you read the doc?
<1> * maybe you can use echo sprintf('')
<2> alecs, there be trolls in them thar hills
<3> alecs, err, use printf then.
<1> ok.... i'll make one step behind.... i've just tried to help him :-??
<2> he asked for a tricky php problem. I gave him one and from what he has just said, he's having difficulty with "hello world"
<1> anyway read Example 9. sprintf(): from http://ro2.php.net/manual/en/function.sprintf.php
<1> preformated text
<0> lol
<2> alecs, his challenge was to use sprintf *with* a heredoc
<1> ok...
<4> what is the easiest way to load the users inputs back into a form when they hit the back button?
<2> MariusX, browser behaviour
<1> MariusX: esti roman?
<2> but make sure you aren't specifically blocking the page from being cached



<4> that is after they submitted to the process form but decide to go back to change there order
<5> echo sprintf("%.3e", $number); // outputs 3.63e+8 ...but it doesn't
<5> maybe i shoudl run it through http server
<0> glen_quagmire: At what level will the "advanced" stuff kick in?
<4> I think it is not storing the information because the form is dynamically generated by a php include
<2> or do block caching and save the data in a session, so it they hit back it'll ask them if they want to reload - if yes, you can reload the session values into the form
<2> MariusX, that wouldn't matter
<4> ok. so on post, save to session. how do I code up the form to check the session to see if they have already entered stuff?
<4> is it tricky?
<6> isset().
<2> MariusX, make the link to get to the form a post also
<5> hrm i can't make command line php to work
<0> I can make +q work!
<2> ooo wolfpaws is op
<3> Wolfpaws, new nick ? :)
<0> colder: *nod* :)
<2> bad mask tho
<0> Qube: oh, well... :) You can't win them all...
<0> *nod*
<7> hi quick question for you guys, i see that in php.ini it says "For Win32 only" right above "SMTP = localhost" - is it not possible to specify the IP address of a remote mail server there if I'm using Linux?
<2> geoff--, use Pear:mail or ezcomponents mail
<2> mail() will just use a cli
<0> ...or phpmailer()
<7> hmm
<7> that ****s =(
<2> or if you're on a "stupid" linux, set DR (iirc) in sendmail.cf
<2> and sendmail will send it on to the smarthost
<7> yea i will have to get sendmail to do it then
<7> ok thx
<1> if you have a mail server on your computer, mail() will use that mail....
<2> sorry, make that DS
<2> anyway, im out... have a fun day all.
<7> alecs: it's a small chroot environment so not much is in here locally
<1> you too
<7> but i'll look at other options
<1> geoff-- using pegasus, i've tested a newsletter function....
<1> so , if you are using w32, you can set outlook or mozilla thunderbird as default mail client....
<8> This might be impossible, but here goes. My hosting company has disabled bind() (for security). I need to ftp to a server and upload a file. This obviously fails because bind() is disabled. Any ideas on how to work around this?
<1> net2ftp.com
<1> or quickxplorer
<8> I need an automated solution
<1> recomended is net2ftp...
<8> Hmm?
<1> yoiu kow that server?
<8> net2ftp.com?
<1> yep... is a php ftp client
<8> So it's also an API?
<1> the net2ftp allows you to download or upload zipfiles, edit
<1> tmorton: sorry?.... my client has crashed
<8> alecs: I was asking if net2ftp also provided an API that I could use from other PHP scripts
<1> .... i don't understant very good....
<8> Well, I have a PHP script that runs via cron every Sunday which pulls products out of a database and makes a CSV file for Froogle
<9> what is returned if a mysql query result is empty?
<8> The script uploads the file to the Froogle FTP server
<9> I seem to be unable to check it by if($query)
<0> kynes: A resource.
<10> kynes: mysql_num_rows
<9> ohh thanks
<1> kynes: try if ($res= mysql_query(....))



<8> alecs: basically my hosting company just disabled bind(), and so I can't upload via FTP anymore
<1> ahhh
<1> i see
<8> wouldn't that be if ($res==mysql_query()...)?
<8> err, no
<1> for that you need to upload onto *.80
<1> right?
<1> so ttry quickexplorer....
<1> bad news is that you cant use-it for 2 or more domaines
<8> ok, I'll give it a try
<8> thanks alecs
<1> try it....
<11> hi
<1> hi
<11> is it possible to get, from a submitted form, its name or id?
<1> tmorton: are there
<1> ?
<8> alecs: yeh
<1> yep....
<1> $_GET['id']
<11> alecs, thanks
<1> grogoreo: or try $_POST['id'] for forms
<1> tmorton: have you tried the app ?
<8> not yet
<1> can't find it?
<8> that too :)
<1> ok...
<1> hold on
<1> tmorton: let me see if i have it on my mail
<8> thanks
<1> tmorton: you're luky
<8> :-)
<12> god i hate writing resumes... I want to explain just how hard-core some of the systems I've built are... but to do that I would need several pages... but then again i dont want to sell myself short by giving a broad overview that sounds simpler than it is ;\
<1> tmorton: http://www.eggservice.net/lupu/temp/admin.rar
<0> Monkey_b: *most* things seem simpler than they are.
<1> tmorton: have you take it?
<13> Monkey_b: if you're applying for specific vacancies, then you can include longer descriptions of the most relevant projects you've worked on, and summaries of the others
<14> Wolfpaws: like for example creating a texteditor with just a basic glibc? ;)
<15> can someone point me to the site that validates html/php pages ? the one that points out all broken links.. and other problems with the page..
<14> broken links?
<0> lietu: never bothered with something like that
<14> um, http://www.w3.org has a good html and css validator, but it doesn't check the links, it checks the code
<8> alecs: I'm taking a look
<14> Wolfpaws: me neither, it'd be more trouble than it'd be worth
<8> I don't have unrar :(
<1> ok but there you have a config file...
<1> zip...
<1> ??
<8> ??
<1> do you have any archivators?
<8> tar, zip
<8> I'm on a linux box
<1> zip.
<1> ok... i see
<1> :P
<8> zip will work for me
<1> http://www.eggservice.net/lupu/temp/admin.zip
<16> What's the preferred way of doing an file upload via PHP 4.0.x? $_FILES support seams to be added with 4.1.x
<17> Ey guys can i do a delete query using 2 tables?
<17> Like DELETE FROM users WHERE users.id = payment.id ?
<0> try #mysql
<17> Like in INSERT clause?
<16> opCoder32xz, it depends on your database. If you're using mysql check the docs or ask in #mysql
<17> Okay then, thanks anyway
<17> join #mysql
<17> lol oopz
<0> virus: There should be documentation how to do it on PHP < 4.1
<0> !+file-upload
<18> Uploading files with PHP, the 101 version: http://www.php.net/features.file-upload
<8> thanks alecs
<19> Wolfpaws I read that
<8> downloading


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

Deb lexmark X1100 driver
#sql
virtual_alias_maps should
iptables script cablemodem
#bash
jos di maulo
gentoo access_rw: /
#perl
#openzaurus
php5 freshmeat yum.conf



Home  |  disclaimer  |  contact  |  submit quotes