[PHP] Problem to run java command line with passthru()

2001-03-28 Thread nicuc.ac.jp
Hello, I try to use passthru() command to execute command line in my script. At Telnet I can use following command to execute my java program and out put is fine. $java HelloWorld So, I need to embed this command line in the script like this : // java.php ? passthru("java

[PHP] Which way to make the thumbnail on the fly

2001-03-28 Thread nicuc.ac.jp
I need to resize picture (JPEG,PNG) on the fly in PHP. But, My server very restrictly. I just "user" neither root nor super user. ImageMagik , GD Library not found on the system. I have permission to use telnet. I can use Java command line. What should I do ? Thanks -- -Tuna- -- PHP

Re: [PHP] Which way to make the thumbnail on the fly

2001-03-28 Thread nicuc.ac.jp
PROTECTED]">news:[EMAIL PROTECTED]... Hi -Tuna-, @ 1:57:59 AM on 3/29/2001, nicuc.ac.jp wrote: I need to resize picture (JPEG,PNG) on the fly in PHP. But, My server very restrictly. I just "user" neither root nor super user. ... If you're not in a restricted shell, or some

Re: [PHP] libpng error

2001-04-01 Thread nicuc.ac.jp
Hello I make change of your code by move some line to correct line and it's work. Here this a code ?PHP header("Content-type: image/png"); $image= imagecreate(200,200) or die("Failed in call to imagecreate()BR\n"); $blue = imageColorAllocate($image,0,0,255); imageRectangle($image, 50, 50,

Re: [PHP] libpng error

2001-04-02 Thread nicuc.ac.jp
Not test your code with GIF yet (I not have GIF support). In your book they have a result picture of this code ? I try this by change imagegif($image) to imagepng($image) and return blank image with specify width. -- -Tuna- ""Thalis A. Kalfigopoulos"" [EMAIL PROTECTED] wrote in message [EMAIL

Re: [PHP] Safety with PHP.

2001-04-03 Thread nicuc.ac.jp
This is not PHP problems but it's a programming problems. Just paste your code here and remove the original one on you site. Many people here will help. -- -Tuna- ""Marthe Kristiansen"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hey you guys! I'm a new

Re: [PHP] how do I delete session

2001-04-05 Thread nicuc.ac.jp
session_register("name") ; = assign variable to session session_unregister("name") ; = unassign the variable make complete kill the session (and all the variable in session) use : session_destroy() ; -- -Tuna- ""Jacky"" [EMAIL PROTECTED] wrote in message 00b001c0be11$a9e2abe0$[EMAIL

Re: [PHP] current location

2001-04-05 Thread nicuc.ac.jp
$SERVER_NAME function that you looking for. -- -Tuna- ""Paul Juliano"" [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Hi, What's the php function to find out what server a php page is located? For example, the php page is at www.myserver.com. The php page should be able to

[PHP] PHPSESSID in session

2001-04-20 Thread nicuc.ac.jp
I use session in my Shopping cart program. start with session_start() ; and register the value with session_register('uid') ; when I want to pass the session value to another page I use echo "a href='somepage.php'click/a" ; In 'somepage.php' I try to echo $uid the output that

[PHP] PHPSESSID in session

2001-04-20 Thread nicuc.ac.jp
I use session in my Shopping cart program. start with session_start() ; and register the value with session_register('uid') ; when I want to pass the session value to another page I use echo "a href='somepage.php'click/a" ; In 'somepage.php' I try to echo $uid the output that

Re: [PHP] web page grab

2001-04-22 Thread nicuc.ac.jp
I thinks you should use eregi_replace (http://www.php.net/manual/en/function.eregi-replace.php) and then strip_tags (http://www.php.net/manual/function.strip-tags.php) to strip HTML tag from string . so, you will get a plain text of the grab page. -- -Tuna- "Ed Lazor" [EMAIL PROTECTED] wrote