[PHP] can't get imagecopy, etc. function to work.
Dear Experts, Seems like I can't use any of the followings even though I'm running PHP 4.3.2-RC1: * imagecreatefromjpeg * imagecopy * etc. Am I right the gd-2.x has already integrated with PHP 4.3.2-RC1 and the gd also has the jpeg integrated? Or, should do I have to bring in the jpeg-6x myself? If I need to bring in the jpeg-6x myself, should I install it within the ext/gd sub-dir? Thing wanted to do: create a separate thumbnail jpeg file from an org. jpeg file. Any better idea? Please advice. Thanks in advanced. --Wo - Original Message - From: Wo Chang [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 23, 2002 2:33 PM Subject: how can php applications use session control to track multiple users? Dear Experts, I know you can use session_register to register varialbes, but how do you use sessions for multiple users? Ex. $valid_user = $username; // let's say $username has JSmith session_register(valid_user); but if another user (SWhite) logins, then the valid_user now has the value of SWhite and the earlier user JSmith is gone. So, how do you make the sessions looks like: JSmith|s:6:JSmith;SWhite|s:6:SWhite; Is this the way how people usually implment to track multiple users? Any hints would be greatly appreciated! --Wo
[PHP] can you do exec under Windows OS?
Dear All, Sorry to ask this simple question! I know I can do exec under unix OS but when I try it on Windows platform (running Apache), PHP gives me Warning: Unable to fork. Off hand I don't remember do I need to modify the php.ini or semething else, can someone give me a hand? Thanks! --Wo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: can you do exec under Windows OS?
I might found the answer myself but correct me if I'm wrong: I was trying to pass some args (ex. echo testing) that I tried to exec but fail. But, if I put the echo testing inside a batch file and have the exec to call that batch file, then it works. There is also a function call escapeshellcmd to screen out any bad tricks. If there is other better ways to do thing, please share. Thanks. --Wo - Original Message - From: Wo Chang [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 11, 2002 11:38 AM Subject: can you do exec under Windows OS? Dear All, Sorry to ask this simple question! I know I can do exec under unix OS but when I try it on Windows platform (running Apache), PHP gives me Warning: Unable to fork. Off hand I don't remember do I need to modify the php.ini or semething else, can someone give me a hand? Thanks! --Wo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: how to popup a new browser window from php
Thanks for all the reply! I think I didn't make myself clear. I want to use php command to popup a dialog or window msg to alert user like the Javascript alert without using javascript. Is it possible? Thanks again. --Wo - Original Message - From: Wo Chang [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 18, 2002 7:14 PM Subject: how to popup a new browser window from php Dear All, One simple question: Is there any easy way to popup a new browser from PHP without using any Javascript? Any helps would be greatly appreciated. --Wo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: how to popup a new browser window from php
Thanks for all the reply! Understood. --Wo - Original Message - From: Sam Masiello [EMAIL PROTECTED] To: 'Wo Chang' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, April 19, 2002 8:21 AM Subject: RE: [PHP] Re: how to popup a new browser window from php Your message was clear, and as stated by several people already, you can't do it in PHP. PHP is a server side scripting language, Javascript and VBScript are client side languages. Popping up a dialog box is a client side function, thusly cannot be done in PHP. :) HTH --Sam -Original Message- From: Wo Chang [mailto:[EMAIL PROTECTED]] Sent: Friday, April 19, 2002 8:00 AM To: Wo Chang; [EMAIL PROTECTED] Subject: [PHP] Re: how to popup a new browser window from php Thanks for all the reply! I think I didn't make myself clear. I want to use php command to popup a dialog or window msg to alert user like the Javascript alert without using javascript. Is it possible? Thanks again. --Wo - Original Message - From: Wo Chang [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 18, 2002 7:14 PM Subject: how to popup a new browser window from php Dear All, One simple question: Is there any easy way to popup a new browser from PHP without using any Javascript? Any helps would be greatly appreciated. --Wo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] how to popup a new browser window from php
Dear All, One simple question: Is there any easy way to popup a new browser from PHP without using any Javascript? Any helps would be greatly appreciated. --Wo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] trying to use gzlib ZZIPlib within PHP
Dear PHPers, I downloaded and compiled the zlib from www.gzip.org/zlib and recompiled the php and apache, but somehow I get gzcompress and gzuncompress undefined. Then I tried with ZZIPlib with --with-zip switch when compiling PHP then recompile apache. After restarted the apache, I do see variables get set for zip but when I do zip_open (abc.zip) I got an error saying zip_open not defined. How do I get the above gzcompress zip_open to work? I checked with httpd.conf for zlib. I also enable the compression for php.ini Any helps would be greatly appreciated. --Wo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] what's the best way to do redirect within PHP
Dear All, Another simple question: What is the best way to do redirect after a php file did some processing? Any helps would be greatly appreciated! --Wo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: what's the best way to do redirect within PHP
Dear All, Thanks for all the response, they all work! --Wo - Original Message - From: Wo Chang [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 08, 2002 10:00 AM Subject: what's the best way to do redirect within PHP Dear All, Another simple question: What is the best way to do redirect after a php file did some processing? Any helps would be greatly appreciated! --Wo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] how to process URL parameers
Dear All, Sorry to trouble you with this simple question! if I have this php code: echo a href=http://abc.com/test.php?xyztry/a; how would I process the xyz from test.php? Any thoughts would be greatly appreciated! --Wo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how to process URL parameers
Dear PHPers, Thanks for the extra hands! They all work!! --Wo - Original Message - From: Erik Price [EMAIL PROTECTED] To: Wo Chang [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, April 05, 2002 10:00 AM Subject: Re: [PHP] how to process URL parameers On Friday, April 5, 2002, at 09:54 AM, Wo Chang wrote: Sorry to trouble you with this simple question! if I have this php code: echo a href=http://abc.com/test.php?xyztry/a; how would I process the xyz from test.php? It needs to be a name/value pair, like this: echo a href='http://abc.com/test.php?name=value'try/a; Most people do it like this, letting them put a PHP variable in there: echo a href=\http://abc.com/test.php?variablename=$php_variable\;try/a; or if you don't like to use escaped doublequotes, try echo 'a href=http://abc.com/test.php?variablename=' . $php_variable . 'try/a'; Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how to process URL parameers
Thanks Eric, very good info!! For now, I jsut process the string after the ?. Things working fine. Many thanks! --Wo - Original Message - From: Erik Price [EMAIL PROTECTED] To: Wo Chang [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, April 05, 2002 11:14 AM Subject: Re: [PHP] how to process URL parameers On Friday, April 5, 2002, at 10:36 AM, Wo Chang wrote: So, if I want to include multiple parameters, I'll use something like: ?a=1?b=2 right? No, actually in the querystring the ? only serves to separate the URL from the querystring. So you can only use it once, immediately after the URL. To add additional values, you use the sign. url.com?a=1b=2c=3 etc. Another question: if I want to hide all these parameters at the url, how I can do that without using the form. If you want to do that, it's a little more complex -- you can't use the querystring at all. You need to pass your values via the POST method in HTTP. The easiest way to do this is to make an HTML form and specify the method of the form tag as POST (like this: form method=post action=targetpage.php). There is another way, it's a bit more involved. You open a socket with the server and directly send the data as POST data. This allows you to avoid having to bother with a form. Rasmus Lerdorf wrote a function to do this (takes most of the work out of it) but it helps to understand how sockets work if you're going to take this route. Let me know if you want this function, I have a copy of it. I CC'd this back to the list, because there are probably others who can benefit from this conversation -- in general, try to keep discussion on the list unless there is some reason for privacy. Feel free to ask if you have more questions! Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] how to make php 4.0 ftp lib work
HI, I compiled the php.4.1.2 with --enable-ftp to try to make ftp works but it always complainting the function ftp_connection() not define. I'm running Sun's Solaris 8. Any hints? Thanks! --Wo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how to make php 4.0 ftp lib work
Dear Tyler, Thanks for your quick reply!! Yes, I meant ftp_connect(). When I did the phpinfo() I can't see any ftp setting. I re-started my apache and still don't work. Any hints? Thanks! --Wo - Original Message - From: Tyler Longren [EMAIL PROTECTED] To: Wo Chang [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, April 03, 2002 3:21 PM Subject: Re: [PHP] how to make php 4.0 ftp lib work There is no ftp_connection() function. You're meaning to use ftp_connect(); Read more about it here: http://www.php.net/manual/en/function.ftp-connect.php Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com - Original Message - From: Wo Chang [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 03, 2002 2:12 PM Subject: [PHP] how to make php 4.0 ftp lib work HI, I compiled the php.4.1.2 with --enable-ftp to try to make ftp works but it always complainting the function ftp_connection() not define. I'm running Sun's Solaris 8. Any hints? Thanks! --Wo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how to make php 4.0 ftp lib work
Dear Tyler, Not sure if this is the right procedure, but works! Since PHP ftp works under Apache, I need to re-compile, re-install, and re-start the Apache, then I do see the ftp info on phpinfo(), and things working ok. Thanks for your quick reply! --Wo - Original Message - From: Tyler Longren [EMAIL PROTECTED] To: Wo Chang [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, April 03, 2002 3:31 PM Subject: Re: [PHP] how to make php 4.0 ftp lib work I guess I'm not really sure then. Just make sure that you used --enable-ftp if you're using php4, and --with-ftp if you're using php3. I don't know of any config settings that need to be set in php.ini to enable ftp support. If you don't end up getting the ftp functions to work, you could try using php's filesystem functions: http://www.php.net/manual/en/ref.filesystem.php Other than that, I don't any suggestions. Good luck. ;-) Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com - Original Message - From: Wo Chang [EMAIL PROTECTED] To: Tyler Longren [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, April 03, 2002 2:28 PM Subject: Re: [PHP] how to make php 4.0 ftp lib work Dear Tyler, Thanks for your quick reply!! Yes, I meant ftp_connect(). When I did the phpinfo() I can't see any ftp setting. I re-started my apache and still don't work. Any hints? Thanks! --Wo - Original Message - From: Tyler Longren [EMAIL PROTECTED] To: Wo Chang [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, April 03, 2002 3:21 PM Subject: Re: [PHP] how to make php 4.0 ftp lib work There is no ftp_connection() function. You're meaning to use ftp_connect(); Read more about it here: http://www.php.net/manual/en/function.ftp-connect.php Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com - Original Message - From: Wo Chang [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 03, 2002 2:12 PM Subject: [PHP] how to make php 4.0 ftp lib work HI, I compiled the php.4.1.2 with --enable-ftp to try to make ftp works but it always complainting the function ftp_connection() not define. I'm running Sun's Solaris 8. Any hints? Thanks! --Wo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php