[PHP] Print statement : Thanx for all who helped ;)
I'd like to thank all those who helped me with the print statement prob, it was simple a matter of adding the appropriate string joiner and it worked flawlessly ;))) Regards, Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Alternative to phpMyAdmin
Yea, I do mean SSH. Oops. On Saturday 14 July 2001 18:29, you wrote: > You probably mean SSH tunnel, which is quite feasable-- Hank Marquardt > posted this earlier to the list: > > --- BEGIN QUOTE --- > > Works just fine ... as does postgres -- > > ssh -N -2 -f -C -c blowfish -L3306:yourdatabase.server.here:3306 > [EMAIL PROTECTED] > > or the other usual tricks work too ... like going through a firewall > (fyi ... clear text on the *other* side of the firewall): > > ssh -N -2 -f -C -c blowfish -L3306:db_behind_thefirewall:3306 > [EMAIL PROTECTED] > > The only oddity is that you will have to use the local host *address* > 127.0.0.1 to connect from the mysql client as it normally looks for a > local socket if you use 'localhost', so your connection will be: > > mysql -h 127.0.0.1 > > for postgres examples, change the port numbers (3306) to 5432 > > --- END QUOTE --- > > -Original Message- > From: Evan Nemerson [mailto:[EMAIL PROTECTED]] > Sent: Saturday, July 14, 2001 6:02 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Alternative to phpMyAdmin > > > What if you were to open an SSL tunnel to the DB host, then connect > through > that??? > > > like you said... as long as the database provider accepts connections > > from outside, you can administer it from anywhere. > > > > if the provider doesn't accept incoming connections, no amount of > > tools and software will work for you. > > > > > -Original Message- > > > From: Alexander Skwar [mailto:[EMAIL PROTECTED]]On Behalf Of > > > Subject: RE: [PHP] Alternative to phpMyAdmin > > > > > > > if you install mysql on a windoze machine then you can administer > > > > ANY > > > > > > > mysql database going through the socket. > > > > > > Okay, for a development this may be fine, but I still fail to see > > > how a tool that runs on your own computer (no matter if it's a > > > Windows tool, or a Linux tool) can help you administer databases > > > which are not on the same computer (unless the mysql database on the > > > > > > providers server can be contacted from any machine and not just from > > > > > > "localhost"). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] ALERTE: VIRUS DETECTE DANS UN MESSAGE ENVOYE PAR php-general-return-49852-jnapieraj=nordnet.fr@lists.php.net
A L E R T E V I R U S Notre système de détection automatique anti-virus a détecté un virus dans un message qui vous a été envoyé par "jessica" <[EMAIL PROTECTED]>. La distribution de ce message a été stoppée. Veuillez vous rapprocher de l'émetteur "jessica" <[EMAIL PROTECTED]> pour régler avec lui le problème. *** V I R U S A L E R T Our anti-virus system has detected a virus in an email sent by "jessica" <[EMAIL PROTECTED]>. We have stopped the delivery of this email. We invite you to contact "jessica" <[EMAIL PROTECTED]> to solve the problem. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Little question
This snippet should be used as an example of badly written and presented code. It tries too hard to do a simple job and in the result fails dismally. I suggest Gabrielle, that you try to be a little more careful in your coding and not so smart. I can find no less than four errors that I put down to poorly constructed code rather than poor syntax. As a hint, why are you trying to nest cals to PHP - your " Hi, Folks... > I have this little snippet of code: > > > > > >size="2"">Orario: > > > > It should print a little table with the string "MY STRING"... > ... unfortunately, it doesn't. > > Any suggestion > > BTW: I run this code on the following configuration: > > PHP Version: 4.0.4pl1 > MySQL API version: 3.23.22-beta > Server API: httpd on a RHLinux 7.1 > > Thanks in advance > > Gabriele Biondo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] ftp_get giving problem
Hi, In my php program I am trying to download a file from server. My web server and file downloading server is diffrent. When use ftp_get command it is giving the result true. But the file is not there in client system. Please help me. anil [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Upload File Path Problem
$imagefile contains the name of the file in the temp dir. So the name is some mess like phpx . If you want the file you do copy() or something other. After the script is done the file is deleted. I prefer using $HTTP_POST_VARS do var_dump($HTTP_POST_VARS) to see debug info. Andrey Hristov IcyGEN Corporation Building Solutions http://www.icygen.com On Friday 05 October 2001 18:41, you wrote: > All, > > I am putting together a simple upload program where an > HTML form calls a php script passing a file which is > then used to upload. I am running this locally > currently, prior to rolling out to a test server. > > My problem is this. The variable $filename I am > passing from the form to the php script is having the > path corrupted. In the php script if I echo > $filename_name the file name is being passed correctly > (test.txt) but when I echo the $filename variable it > contains a value of \\php2 when infact the correct > value should be c:\test.txt. > > > I include below my sample code. If anyone has any > ideas I would be most grateful. > > Thanks in advance, > > > Roger > > upload.html > == > > > > ACTION = "uploadrjb.php3" > > > Upload file : NAME="userfile"> > Image Description : NAME="description" SIZE=40 align="left"> > First Name: SIZE=30 align="left"> Last Name: NAME="lastname" SIZE=30 align="left"> > Location : > Dagenham > Romford > Other > Age : ALIGN="right"> > Email Address : SIZE=30 ALIGN="left"> > > > > > > > uploadrjb.php3 > == > > //echo $userfile; > > echo "File=" . "$userfile"; > echo "File=" . $userfile_name; > > //echo "Description=" . $description; > //echo "Age= " . $age; > //echo "First Name = " . $firstname; > //echo "Last Name = " . $lastname; > //echo "Location = ". $location; > //echo "Email = ". $email; > > if ( isset($userfile) ) { > if ( copy("c:\\" . "$userfile_name", > "c:\\bollocks.txt") ) { > echo("File Successfully copied"); > } else { > echo("Error: Failed to copy file..."); > } > } > ?> > > > > > > > __ > Do You Yahoo!? > NEW from Yahoo! GeoCities - quick and easy web site hosting, just > $8.95/month. http://geocities.yahoo.com/ps/info1 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Passing files to a browser
HI, I am having problems passing files through to a browser. First I tried: And got an Acrobat instance with no file displayed. Then I tried: And got: Hello, World Warning: 1 is not a valid File-Handle resource in /home/robr/public_html/php/getpdf.php on line 5 Help!! rr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Passing files to a browser
HI, Getting rid of the fclose makes the error go away with the .txt file, but I am still getting a blank display with Javier Muniz wrote: > Actually, if you read the manual entry for fpassthru, it states that the > filehandle will be closed by fpassthru upon reading. > So you're trying to close your filehandle twice... get rid of the > fclose($fp) at the end and you should be fine. > > -jm > > -Original Message- > From: Christian Reiniger [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 08, 2001 11:19 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Passing files to a browser > > On Thursday 08 February 2001 18:43, Rob Root wrote: > > > > $fp = fopen("test.txt", "r"); > > header("content-type: text/plain"); > > fpassthru($fp); > > fclose($fp); > > ?> > > > > And got: > > Hello, World > > > > Warning: 1 is not a valid File-Handle resource in > > /home/robr/public_html/php/getpdf.php on line 5 > > That most likely means the fopen () failed. > > -- > Christian Reiniger > LGDC Webmaster (http://sunsite.dk/lgdc/) > > This is JohnC IMHO, I compaired tri-word groupings here and in his plan > and got a good match. > > - /. posting discussing the likelihood that an AC post that claimed to > be > posted by John Carmack during his honeymoon (and having the login info > at > home) was actually from him. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] HOWTO handle sessions ?
HI, Pick up a copy of the "PHP Developer's Cookbook". They devoted a whole chapter to sessions. Regards, Rob Root Evelio Martinez wrote: > Hi! > Does anyone know of some good examples of sessions? > > -- > Evelio Martínez > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]