[PHP] php cgi
Hi, I have here a problem for having the php-cgi binary in linux. I compiled php with php-cli and php-cgi but after installation i can't find the php-cgi binary, i only have the php-cli under /usr/local/bin/. Any idea why? Please help.. here's what i've did: './configure' '--with-mysql' '--with-apache=../apache_1.3.27' '--with-gd' '--with-jpeg-dir=ext/gd/libgd' '--with-zlib' '--with-cgi' '--enable-cli' '--enable-sockets' '--enable-pcntl' make make install Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re[2]: [PHP] reading linux wtmp file
Thanks it's working now. Hi, Wednesday, October 15, 2003, 2:25:13 PM, you wrote: TR wtmp is a binary file and the format can vary between old and new versions of TR linux. You will need to have a look at struct utmp in, for example, /usr/include/bits/utmp.h TR This location can vary from system to system as well. TR NOTE do not meddle with the wtmp file by opening it in anything other than TR readonly mode as all kinds of nasty things can happen if that file gets TR corrupted. TR -- TR regards, TR Tom This may help if you are on a newish Linux: ?php //use for debug function hexDumpChar($str,$len){ //echo 'Len '.strlen($str); $strlen = strlen($str); for($z=0;$z $strlen;$z+=$len){ $left = $strlen - $z; $jlen = ($left $len)? $len:$left; for($j=$z;$j$z+$jlen;$j++){ printf( %02x,ord($str[$j])); } echo 'nbsp;nbsp;nbsp;nbsp;'; for($j=$z;$j$z+$jlen;$j++){ printf( %c,ord($str[$j])); } echo 'br'; } echo 'br'; } //utmp valid types define('UT_UNKNOWN',0); define('RUN_LVL',1); define('BOOT_TIME',2); define('NEW_TIME',3); define('OLD_TIME',4); define('INIT_PROCESS',5); define('LOGIN_PROCESS',6); define('USER_PROCESS',7); define('DEAD_PROCESS',8); define('ACCOUNTING',9); $types = array('uk','Run Level','Boot Time','New Time','Old Time','Init','Login Start','User Login','Logout','Accounting'); $wtmp = '/var/log/wtmp'; if($fp = fopen($wtmp, 'r')){ echo 'table border=1 cellpadding=4 cellspacing=0'; echo ' trtdType/tdtdPid/tdtdLine/tdtdInittab/tdtdUser/tdtdH ost/tdtdDate/tdtdUnknown/td/tr'; while($buf = fread($fp,384)){ //hexDumpChar($buf,16); $row = unpack(Vtype/Vpid,substr($buf,0,8)); switch($row['type']){ case RUN_LVL: case BOOT_TIME: case NEW_TIME: case OLD_TIME: case INIT_PROCESS: case LOGIN_PROCESS: case USER_PROCESS: case DEAD_PROCESS: case ACCOUNTING: $line = substr($buf,8,32); $inittab = substr($buf,40,4); $user = substr($buf,44,32); $host = substr($buf,76,256); $date = unpack(Vterm/Vexit/Vdate/Vuk,substr($buf,332,16)); //print_r($row); echo 'trtd'.$row['type'].' '.$types[$row['type']].'/tdtd'.$row['pid'].'/tdtd'.trim($line).'/td '; echo 'td'.trim($inittab).'/tdtd'.trim($user).'/tdtd'.trim($host).'/td '; echo 'td'.date(d/m/Y H:i:s,$date['date']).'/tdtd'.$date['uk'].'/td/tr'; break; default: echo ' trtd colspan=8 style=color: Red;Crap entry '.$row['type'].'/td/tr'; break; } } echo '/table'; fclose($fp); } ? -- regards, Tom -- 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] reading linux wtmp file
Hi to all, Have a problem here in reading the file wtmp in linux. Is there a way I can view it using a php script? Thanks in advance. Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] excuting a shell command in linux as root
Hi, Is there any way to execute a shell command line in PHP as root? I want to execute it using a web browser, i'm using apache and it runs as nobody. Any idea/help/suggestions? Thanks in advance mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] killing server process online
Hi to all, I'm trying to create a script that will kill a server process via PID, but as i run the script it doesnt kill the process . And yet I want to add some error mesage. Here's my sample script: ? function killprocess($id){ system('kill'. escapeshellarg($id), $killret); if ($killret==0){ //echo success message ?SCRIPTalert(Process Killed)/SCRIPT? }elseif ($killret != 0){ //echo error message ?SCRIPTalert(Kill Error: ? echo $this-kp; ?)/SCRIPT? } } ? Is there something wrong with it? Please help and thanks in advance. mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] ps command in php
Hi to all, I'm trying to have the output of the ps -ef command in Linux to my browser. Can anyone help how to properly have the output in proper format. I've used the passthru() function but the output is scrambled. Thanks in advanced. Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ps command in php
I'm doing like this: $ps = (passthru(ps -ef)); echo $ps; my output is something like this: UID PID PPID C STIME TTY TIME CMD root 1 0 0 Sep19 ? 00:00:04 init [3] root 2 1 0 Sep19 ? 00:00:00 [kflushd] root 3 1 0 Sep19 ? 00:00:09 [kupdate] root 4 1 0 Sep19 ? 00:00:00 [kpiod] root 5 1 0 Sep19 ? 00:00:04 [kswapd] root 6 1 0 Sep19 ? 00:00:00 [mdrecoveryd] bin 404 1 0 Sep19 ? 00:00:00 [portmap] root 429 1 0 Sep19 ? 00:03:33 syslogd -m 0 root 438 1 0 Sep19 ? 00:00:01 klogd nobody 452 1 0 Sep19 ? 00:00:00 identd -e -o nobody 454 452 0 Sep19 ? 00:00:00 identd -e -o nobody 457 454 0 Sep19 ? 00:00:00 identd -e -o nobody 458 454 0 Sep19 ? 00:00:00 identd -e -o nobody 459 454 0 Sep19 ? 00:00:00 identd -e -o daemon 470 1 0 Sep19 ? 00:00:00 /usr/sbin/atd root 484 1 0 Sep19 ? 00:00:01 crond root 502 1 0 Sep19 ? 00:00:00 inetd root 539 1 0 What i want is to format it just like what it seen in the console: UIDPID PPID C STIME TTY TIME CMD root 1 0 0 Sep19 ?00:00:04 init [3] root 2 1 0 Sep19 ?00:00:00 [kflushd] root 3 1 0 Sep19 ?00:00:09 [kupdate] root 4 1 0 Sep19 ?00:00:00 [kpiod] root 5 1 0 Sep19 ?00:00:04 [kswapd] any idea? I'm trying to have the output of the ps -ef command in Linux to my browser. Can anyone help how to properly have the output in proper format. I've used the passthru() function but the output is scrambled. What do you mean by 'scrambled'? The following works for me: echo 'pre', `ps -ef`, '/pre'; - michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ps command in php
When I do this: ?header(Content-Type: text/plain); $ps = (passthru(ps -ef)); ? table width=100% border=0 cellpadding=0 cellspacing=0 tr td width=100% height=287 valign=top? echo $ps; ?/td /tr /table I can also see the HTML code, i need to put the output inside the table. Is there any solution for this? your question has already been answered: use: echo pre $ps /pre; It should definitely help Nitin - Original Message - From: Michael P. Carel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 06, 2003 12:51 PM Subject: Re: [PHP] ps command in php I'm doing like this: $ps = (passthru(ps -ef)); echo $ps; my output is something like this: UID PID PPID C STIME TTY TIME CMD root 1 0 0 Sep19 ? 00:00:04 init [3] root 2 1 0 Sep19 ? 00:00:00 [kflushd] root 3 1 0 Sep19 ? 00:00:09 [kupdate] root 4 1 0 Sep19 ? 00:00:00 [kpiod] root 5 1 0 Sep19 ? 00:00:04 [kswapd] root 6 1 0 Sep19 ? 00:00:00 [mdrecoveryd] bin 404 1 0 Sep19 ? 00:00:00 [portmap] root 429 1 0 Sep19 ? 00:03:33 syslogd -m 0 root 438 1 0 Sep19 ? 00:00:01 klogd nobody 452 1 0 Sep19 ? 00:00:00 identd -e -o nobody 454 452 0 Sep19 ? 00:00:00 identd -e -o nobody 457 454 0 Sep19 ? 00:00:00 identd -e -o nobody 458 454 0 Sep19 ? 00:00:00 identd -e -o nobody 459 454 0 Sep19 ? 00:00:00 identd -e -o daemon 470 1 0 Sep19 ? 00:00:00 /usr/sbin/atd root 484 1 0 Sep19 ? 00:00:01 crond root 502 1 0 Sep19 ? 00:00:00 inetd root 539 1 0 What i want is to format it just like what it seen in the console: UIDPID PPID C STIME TTY TIME CMD root 1 0 0 Sep19 ?00:00:04 init [3] root 2 1 0 Sep19 ?00:00:00 [kflushd] root 3 1 0 Sep19 ?00:00:09 [kupdate] root 4 1 0 Sep19 ?00:00:00 [kpiod] root 5 1 0 Sep19 ?00:00:04 [kswapd] any idea? I'm trying to have the output of the ps -ef command in Linux to my browser. Can anyone help how to properly have the output in proper format. I've used the passthru() function but the output is scrambled. What do you mean by 'scrambled'? The following works for me: echo 'pre', `ps -ef`, '/pre'; - michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- 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] ps command in php
thanks to all its working now Michael P. Carel wrote: When I do this: ?header(Content-Type: text/plain); $ps = (passthru(ps -ef)); ? table width=100% border=0 cellpadding=0 cellspacing=0 tr td width=100% height=287 valign=top? echo $ps; ?/td /tr /table I can also see the HTML code, i need to put the output inside the table. Is there any solution for this? Just remove first line of Your code or replace 'text/plain' with 'text/html'. And put ? echo $ps; ? inside PRE-tags, as anwsered previously. -- Pavel a.k.a. Papi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] storing the passthru() output as an array
Hi again, Have another problem here I need to get the output of this syntax $ps = (passthru(ps -ef)); and store it in an array line by line, I specifically want to get the Columns of the PID for this command and store it in a selection box . Any Idea how, thanks in advance. Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] storing the passthru() output as an array
Thanks it works. On Mon, 2003-10-06 at 19:41, Michael P. Carel wrote: Hi again, Have another problem here I need to get the output of this syntax $ps = (passthru(ps -ef)); and store it in an array line by line, I specifically want to get the Columns of the PID for this command and store it in a selection box . Any Idea how, thanks in advance. You can use output buffering to grab the output and explode to put the lines in an array. http://us4.php.net/manual/en/ref.outcontrol.php ob_start(); passthru(ps -ef); $ps = ob_get_contents(); ob_end_clean(); $lines = explode(\n,$ps); - Brad -- 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] alphanumeric randomized image
Hi to all, I'm looking for a alphanumeric randomized image script. Can anyone give me a good link or an example for this? Thanks in advance. Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] alphanumeric randomized image
thanks i've found a good sample in phpclasses Class:PWGen - Original Message - From: Michael P. Carel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 25, 2003 3:10 PM Subject: [PHP] alphanumeric randomized image Hi to all, I'm looking for a alphanumeric randomized image script. Can anyone give me a good link or an example for this? Thanks in advance. Mike -- 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] parallelport interfacing
Hi to all, Just want to ask if PHP is capable of Parallel port interfacing? If ever , can anyone give me a good tutorial or samples about this. Thanks in advance. Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: socket programming
Quite a while ago now, I wrote a simple HTTP proxy in PHP that listens on port 4887 by default. It is a single script, so it is pretty easy to follow, and you're welcome to check it out at http://protoscope.org/. It is probably a better example than I could come up with here. I've downloaded your scripts and tried to test it on my server. Please correct me if im doing it right. I've opened services and port from the server to automatically run protoscope only during acces in the given port (http:\\myserver.com:4887) : inetd.conf: protoscope stream tcp nowait.1000 root.root /usr/local/mikecarel/protoscope.php services: protoscope 4887/tcp My question's are : 1. How could i access the rest of my php script residing in /usr/local/mikecarel/ (http://myserver.com:4887/index.php) ? 2. If ever does the POST and GET method works properly on this? 3. Do I still need to install apache? Hope I understand your application correctly. Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: socket programming
http://nanoweb.si.kz/ thanks for this link, it will helps me alot. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] socket programming
Hi to all, Is it possible to run php in the web running in a specified port without installing apache in Linux? Can anyone give a sample code for this? I'm searching this for a week but i really can find one. Please help us. Regards, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: socket programming
Hi to all, Is it possible to run php in the web running in a specified port without installing apache in Linux? Can anyone give a sample code for this? I'm searching this for a week but i really can find one. Please help us. Regards, Mike Do you mean to host websites with ONLY php and without webserver? Or do you mean using PHP for something else then web, to make it listen for incomming connections? Actually i want to create a server utility that can be administered through web via a certain port, i'm afraid not to use php as an apache module because the server might have an existing webserver installed, so i came out into an idea to use php cgi/cli to run in a specified port and view it in the web. It is somewhat similar to some existing utilities such as WEBMIN which use perl cgi, but i really dont have a very good start since i dont have enough examples for this. I've already opened opened port for this as what David said but i cant see the output in the web. He'res what i've did in my Redhat linux 6.x inetd.conf: samples stream tcp nowait.1000 root.root /usr/local/mikecarel/samples samples services: samples 6886/tcp samples: #!/usr/local/bin/php -q ?php echo Content-Type: text/html;charset=iso-8859-1; echo \n; echo htmlhello /html; ? Am I in a right track? or is it possible with this? Do i missed something here? Thanks in advance. Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] accesing php script in a different port
hi to all, I want to develop a system that can be access in a different port of the web (such as in Port 11000). But i dont know how to do this without affecting existing apache or other webserver installation. My idea is based on some utilities that exists such as the Webmin Utilities that are commonly used to administer Unix/Linux. Can anyone give a hint or good tutorial links for this problem? Thanks in advance. Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Image resize
hi to all, I have a problem here in image resizing, after the image has been resized , the image has been discolorized. How can i recreate the image with the same resolution and color properties. Here's the sample code from my class file: $origPic = ImageCreateFromJpeg( $this - iOrig[ 'tmp_name' ] ); $this - iNew = ImageCreate($nWidth,$nHeight); ImageCopyResized($this - iNew, $origPic, 0, 0, 0, 0, $nWidth, $nHeight, $width, $height); Thanx in advance. Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Image resize
thanks its working fine now. - Original Message - From: Hugh Danaher [EMAIL PROTECTED] To: Michael P. Carel [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, March 13, 2003 9:09 AM Subject: Re: [PHP] Image resize if your system suports the commands, try imagecreatetruecolor() instead of imagecreate(), and imagecopyresampled() instead of imagecopyresized(), hope this helps, Hugh - Original Message - From: Michael P. Carel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 3:23 PM Subject: [PHP] Image resize hi to all, I have a problem here in image resizing, after the image has been resized , the image has been discolorized. How can i recreate the image with the same resolution and color properties. Here's the sample code from my class file: $origPic = ImageCreateFromJpeg( $this - iOrig[ 'tmp_name' ] ); $this - iNew = ImageCreate($nWidth,$nHeight); ImageCopyResized($this - iNew, $origPic, 0, 0, 0, 0, $nWidth, $nHeight, $width, $height); Thanx in advance. Mike -- 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] problem in writing into an html text file
this code add a backslashes in all doubleqoutes in the html file. sample: before editing my.html file textarea name=message cols=95 rows=20 after editing my.html file textarea name=\message\ cols=\95\ rows=\20\ any idea why and how can i avoid this? sorry here's the sample code: ? if(!$submit){ ? form ? $filename=my.html; $fd=fopen($filename,r+) or die(Can't open file $filename); $message = fread($fd, filesize($filename)); fclose($fd); ? textarea name=message cols=95 rows=20? echo $message;?/textarea input type=submit name=submit value=modify /form ? }else{ $filename=my.html; $fd=fopen($filename,w) or die(Can't open file $filename); $fstring=$message; $fout = fwrite($fd, $fstring); fclose($fd); } ? the html file upon modify multiplies all the backslashes. any idea why? thanks in advance. - Original Message - From: Jason Sheets [EMAIL PROTECTED] To: Michael P. Carel [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, February 27, 2003 12:04 PM Subject: Re: [PHP] problem in writing into an html text file Hello Mike, You will need to better describe your problem and preferably show some source code. What characters are being added to it? You could use str_replace or the regular expression replacement functions but you should not get added characters in general. Jason On Wed, 2003-02-26 at 19:07, Michael P. Carel wrote: hi to all, Im having a problem writing an HTML code in a text file which comes from the html text area as an editor. There's an added characters inserted to it. How could i write to it perfectly? mike -- 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 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] problem in writing into an html text file
thanks it's working now - Original Message - From: Matt Honeycutt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 28, 2003 7:23 AM Subject: RE: [PHP] problem in writing into an html text file Check stripslashes(), I think that will help you. ---Matt -Original Message- From: Michael P. Carel [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 4:53 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] problem in writing into an html text file this code add a backslashes in all doubleqoutes in the html file. sample: before editing my.html file textarea name=message cols=95 rows=20 after editing my.html file textarea name=\message\ cols=\95\ rows=\20\ any idea why and how can i avoid this? sorry here's the sample code: ? if(!$submit){ ? form ? $filename=my.html; $fd=fopen($filename,r+) or die(Can't open file $filename); $message = fread($fd, filesize($filename)); fclose($fd); ? textarea name=message cols=95 rows=20? echo $message;?/textarea input type=submit name=submit value=modify /form ? }else{ $filename=my.html; $fd=fopen($filename,w) or die(Can't open file $filename); $fstring=$message; $fout = fwrite($fd, $fstring); fclose($fd); } ? the html file upon modify multiplies all the backslashes. any idea why? thanks in advance. - Original Message - From: Jason Sheets [EMAIL PROTECTED] To: Michael P. Carel [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, February 27, 2003 12:04 PM Subject: Re: [PHP] problem in writing into an html text file Hello Mike, You will need to better describe your problem and preferably show some source code. What characters are being added to it? You could use str_replace or the regular expression replacement functions but you should not get added characters in general. Jason On Wed, 2003-02-26 at 19:07, Michael P. Carel wrote: hi to all, Im having a problem writing an HTML code in a text file which comes from the html text area as an editor. There's an added characters inserted to it. How could i write to it perfectly? mike -- 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 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 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] problem in writing into an html text file
hi to all, Im having a problem writing an HTML code in a text file which comes from the html text area as an editor. There's an added characters inserted to it. How could i write to it perfectly? mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] problem in writing into an html text file
sorry here's the sample code: ? if(!$submit){ ? form ? $filename=my.html; $fd=fopen($filename,r+) or die(Can't open file $filename); $message = fread($fd, filesize($filename)); fclose($fd); ? textarea name=message cols=95 rows=20? echo $message;?/textarea input type=submit name=submit value=modify /form ? }else{ $filename=my.html; $fd=fopen($filename,w) or die(Can't open file $filename); $fstring=$message; $fout = fwrite($fd, $fstring); fclose($fd); } ? the html file upon modify multiplies all the backslashes. any idea why? thanks in advance. - Original Message - From: Jason Sheets [EMAIL PROTECTED] To: Michael P. Carel [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, February 27, 2003 12:04 PM Subject: Re: [PHP] problem in writing into an html text file Hello Mike, You will need to better describe your problem and preferably show some source code. What characters are being added to it? You could use str_replace or the regular expression replacement functions but you should not get added characters in general. Jason On Wed, 2003-02-26 at 19:07, Michael P. Carel wrote: hi to all, Im having a problem writing an HTML code in a text file which comes from the html text area as an editor. There's an added characters inserted to it. How could i write to it perfectly? mike -- 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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] text file reading and overwrite
Hi, Have a problem in reading a text file and displaying it in a text box area,also what function should i used to overwrite an existing text file. mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] server hostname
hi to all; what function should i used to know the hostname of the server im using where php and apache reside? mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] array values format
hi to all I have a problem here in array manipulations. I need an output like this from the queried data : data1,data2,data3 Any idea how? thanx in advance mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] array values format
as per testing it doesnt delete the last comma, i'm doing something like this: for($i=0;$isizeof($images);$i++) { $pictures .=\./archive/bannerimages/.$bid[$i]./.$images[$i].\.,; } preg_replace(/,$/,,$pictures); echo $pictures; is there something wrong with pre_replace? - Original Message - From: Chris Cook [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 20, 2003 12:42 PM Subject: Re: [PHP] array values format Hi Michael, Something like this should work: for($i=0; $isizeof($array); $i++) { $data .= $array[$i] . , ; } preg_replace(/, $/, , $data);//get rid of last comma echo $data; Good luck, Chris From: Michael P. Carel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP] array values format Date: Thu, 20 Feb 2003 11:53:18 +0800 hi to all I have a problem here in array manipulations. I need an output like this from the queried data : data1,data2,data3 Any idea how? thanx in advance mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] array values format
thanks it working now - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 20, 2003 2:40 PM Subject: Re: [PHP] array values format On Thursday 20 February 2003 13:36, Michael P. Carel wrote: as per testing it doesnt delete the last comma, i'm doing something like this: for($i=0;$isizeof($images);$i++) { $pictures .=\./archive/bannerimages/.$bid[$i]./.$images[$i].\.,; } preg_replace(/,$/,,$pictures); echo $pictures; is there something wrong with pre_replace? Just use: $rest = substr(abcdef, 0, -1); // returns abcde to chop off the last character (comma). -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* In a medium in which a News Piece takes a minute and an In-Depth Piece takes two minutes, the Simple will drive out the Complex. -- Frank Mankiewicz */ -- 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] inserting BR
hi to all, I'm having problem posting messages that have paragraph. It's doesnt appear to have one when being viewd in the page? Any idea on how to post this properly without manually inserting a BR tags in the text box before it is being store in the database. Thanks in advance. mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] limiting characters
Hi to all, How could i limit the character output that is being displayed in the html page. Is there a function or a php classes that perfectly support it? Example: $myoutput = This is my sample output.; Required Output: This is my Any idea? Thanks in advance for the replies mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] limiting characters
it would be better if it will be chopped by words and not by characters. Any idea how? - Original Message - From: Justin French [EMAIL PROTECTED] To: Michael P. Carel [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, February 19, 2003 7:26 AM Subject: Re: [PHP] limiting characters Do you want it chopped at a certain number of words, or characters? Justin French on 19/02/03 10:00 AM, Michael P. Carel ([EMAIL PROTECTED]) wrote: Hi to all, How could i limit the character output that is being displayed in the html page. Is there a function or a php classes that perfectly support it? Example: $myoutput = This is my sample output.; Required Output: This is my Any idea? Thanks in advance for the replies mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] limiting characters
thnks its working here - Original Message - From: Justin French [EMAIL PROTECTED] To: Michael P. Carel [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, February 19, 2003 8:09 AM Subject: Re: [PHP] limiting characters Season to taste: ? function chopper($string,$length=20, $suffix=...) { $words = explode(' ',$string); if(count($words) = $length) { $i = 0; $new = ''; while($i $length) { $new .= $words[$i].' '; $i++; } if($suffix) { $new .= $suffix; } return trim($new); } else { return $string; } } $foo = This is my really long string; // EXAMPLES // no change, since $foo is less than 20 chars (default) echo chopper($foo); // echos 'This is my ...' -- uses default suffix echo chopper($foo,3); // echos 'This is my [too long]' echo chopper($foo,3,'[too long]'); ? Justin French on 19/02/03 10:18 AM, Michael P. Carel ([EMAIL PROTECTED]) wrote: it would be better if it will be chopped by words and not by characters. Any idea how? - Original Message - From: Justin French [EMAIL PROTECTED] To: Michael P. Carel [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, February 19, 2003 7:26 AM Subject: Re: [PHP] limiting characters Do you want it chopped at a certain number of words, or characters? Justin French on 19/02/03 10:00 AM, Michael P. Carel ([EMAIL PROTECTED]) wrote: Hi to all, How could i limit the character output that is being displayed in the html page. Is there a function or a php classes that perfectly support it? Example: $myoutput = This is my sample output.; Required Output: This is my Any idea? Thanks in advance for the replies mike --- [This E-mail scanned for viruses] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] image creation error
i've already compiled my PHP4 with imagejpeg support but now im loosing my imagegif function. Image jpeg function is now working but for the gif im receiving this error: Fatal error: Call to undefined function: imagegif() Here's my php info after my re-compilation : Configure Command './configure' '--with-mysql' '--with-apache=../apache_1.3.24' '--with-gd' '--with-jpeg-dir=/php-4.3.0/ext/gd/libgd' '--with-zlib' GD Support enabled GD Version bundled (2.0 compatible) GIF Read Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled Any idea why? Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] image creation error
i've already installed gd but still recieving Fatal error: Call to undefined function: imagecreatefromjpeg() . - Original Message - From: Michael P. Carel [EMAIL PROTECTED] To: Kevin Waterson [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, February 14, 2003 3:45 PM Subject: Re: [PHP] image creation error i've recompile my php4.3 in redhat with ./configure --with-mysql --with-apache=../apache_1.3.x --with-gd --with-zlib and i receive this error upon make make: *** Warning: File `libphp4.la' has modification time in the future (2003-0 2-14 16:04:12 2003-02-14 15:47:10) make: Nothing to be done for `all'. make: *** Warning: Clock skew detected. Your build may be incomplete. What should be the problem? - Original Message - From: Kevin Waterson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 14, 2003 3:07 PM Subject: Re: [PHP] image creation error This one time, at band camp, Michael P. Carel [EMAIL PROTECTED] wrote: Hi to all, Im receiving a Fatal error: Call to undefined function: imagecreatefromjpeg() . You need to install gd in your config line add --with-gd Kevin -- __ (_ \ _) ) | / / _ ) / _ | / ___) / _ ) | | ( (/ / ( ( | |( (___ ( (/ / |_| \) \_||_| \) \) Kevin Waterson Port Macquarie, Australia -- 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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] image creation error
Hi to all, Im receiving a Fatal error: Call to undefined function: imagecreatefromjpeg() . Do i need to recompile PHP? mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] image creation error
i've recompile my php4.3 in redhat with ./configure --with-mysql --with-apache=../apache_1.3.x --with-gd --with-zlib and i receive this error upon make make: *** Warning: File `libphp4.la' has modification time in the future (2003-0 2-14 16:04:12 2003-02-14 15:47:10) make: Nothing to be done for `all'. make: *** Warning: Clock skew detected. Your build may be incomplete. What should be the problem? - Original Message - From: Kevin Waterson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 14, 2003 3:07 PM Subject: Re: [PHP] image creation error This one time, at band camp, Michael P. Carel [EMAIL PROTECTED] wrote: Hi to all, Im receiving a Fatal error: Call to undefined function: imagecreatefromjpeg() . You need to install gd in your config line add --with-gd Kevin -- __ (_ \ _) ) | / / _ ) / _ | / ___) / _ ) | | ( (/ / ( ( | |( (___ ( (/ / |_| \) \_||_| \) \) Kevin Waterson Port Macquarie, Australia -- 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] php-cli
Hi to all, Is there anyone who could help me regarding php-cli in windows. What should be the syntax to make the screen clear before echoing something? Is there a good reference in php-cli? Thanks in advance for the replies. mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php-cli
i've tried that several times but it doesnt work here. here's my test script ? exec(cls); echo/ **/; ? This does'nt clear the previous lines of MS-DOS. Any ideas why? you will want to issue a cls command to the shell with the exec command for using the back ticks... That should do it for you... example: exec( cls ); That should do it for you... Ray On Mon, 2003-02-10 at 21:20, Michael P. Carel wrote: Hi to all, Is there anyone who could help me regarding php-cli in windows. What should be the syntax to make the screen clear before echoing something? Is there a good reference in php-cli? Thanks in advance for the replies. mike -- 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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] OOP confused
Hi to all; Just a little question about OOP. I'm just confused with the symbol '-' . In the article that i've red : #this reads change the value of the variable $head within this class to black $this-head=black #how do i read this line $this-head-prev=NULL I'm just confused with this line, i can't translate the class file that i'm using. Thanks in advance. mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] page auto reload after new window closed
Hi to all, Sorry for this kind of post but i cant find a better mailing list for javascript. I have a problem in refreshing my php page script. Im using javascript to open new window for editing purposes. But i want my opener opener page to auto reload upon submit in my new window. Any idea? thanks in advance Regards, mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php/mysql report builder
hi to all; sorry for posting this mysql question again. im searching for a report builder for mysql specifically for creating reports for invoice/receipt..etc. just like crystal reports and oracle report builder. or is there any suggestion to do it in PHP . any idea? thanks in advance Regards, mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] date queries
Hi to all, Sorry for this post I know this is a mysql related question, i just wanna have other comments.suggestions from this list. I have a problem regarding date queries in mysql. Im creating inventory reports in PHP. I want to query from the date field a weekly report for a specific month, year, and week. Any idea, thanks in advance Regards, mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] exploding strings
Hi to all, I have a problem regarding exploding string. I want to explode string sepated by + sign, but i want it also the first variable in the array be distinc in terms of collor or whatever when viewed in the page. ex. $no=(1+2+3); $number=explode(+, $no); how could i echo $no with the first no. 1 be in colored. Any idea. thanx in advance Regards, mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] number format
Hi to all; Is there any php function that will automatically format the calculated decimal values in its hundred's,thousand's .places (such as $423,345,234.50). just like the format() function in MySQL. If not, how could i do it? Thanks in advance Regards, mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] date comparison
hi to all again, I have a problem here again regarding the date comparison. I need to check the most recent date that was entered in mysql database in date format (Y-m-d), if the datetoday is a day or two days in advanced compared to the queried date. I need to make sure that the next inserted date in the mysql database whould be the next day of the last inserted date. Any idea how? Please help. Im trying to do something like this: //checking the queried date $querieddate=(2002-11-02); $incrementdate=date($querieddate),mktime(0,0,0,date(m), date(d)+1,date(Y))); $datetoday=(Y-m-d); if($incrementdate == $datetoday){ //insert $datetoday to the mysql database }else{ //insert $incrementdate to the mysql database } regards , mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] date problem
to all; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] converting decimal to fraction and vice versa
hi to all; is there any way to convert decimal numbers to fraction and fraction to decimal format. i need to convert the inputed fractional value in the field before inserting it to the mysql database, such us 1/2 = 0.5 . thanx in advance. regards, mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] using php from command line
Hi to all, I have a problem here in using php in command line i cant find the php executable in /usr/bin/php in my readhat linux after compiling php-4.2.2 with --enable-cli. Any idea why? I need to run a php script using cron, or if you have any suggestion please share. Regards, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] decrypting values in MYSQL
Hi to all, How could i decrypt the encrypted data in MYSQL? I've inserted values in mysql using the PASSWORD( $userpassword ) function to encrypt all user password. Example: Insert into Users_Table set Password_Field=PASSWORD('$userpassword'); But i don't know how to select to view the $userpassword value. Is there anyone who could help? Thanks in advance. Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] decrypting values in MYSQL
so you mean there's no way to decrypt that. I wan't to create a Password Reminder to my script, that would email them their password if ever they forgot it. Is there any suggestion/comments? You can't view it anymore. You can compare a string with PASSWORD('string') to see if they match. Julio Nobrega Pode acessar: http://www.inerciasensorial.com.br Hi to all, How could i decrypt the encrypted data in MYSQL? I've inserted values in mysql using the PASSWORD( $userpassword ) function to encrypt all user password. Example: Insert into Users_Table set Password_Field=PASSWORD('$userpassword'); But i don't know how to select to view the $userpassword value. Is there anyone who could help? Thanks in advance. Mike -- 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 become a good PHP coder?
You could also visit http://devshed.com for some of their tutorials regarding PHP specially PHP101 nad alot of sample codes and projects. Mike - Original Message - From: Wee Keat [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, July 31, 2002 12:57 PM Subject: Re: [PHP] How to become a good PHP coder? Hi peter... Wow!! That's a heck lot of info for me to digest! Thank you so much for all that trouble! Very useful stuffs... can't thank you enuff... Yours, Wee Keat Good timber does not grow with ease; the stronger the wind, the stronger the trees. - Original Message - From: Peter J. Schoenster [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 31 July, 2002 2:40 PM Subject: RE: [PHP] How to become a good PHP coder? On 31 Jul 2002 at 11:38, Martin Towell wrote: The best way to become proficient in programming (or anything, come to that) is with _lots_ of practice. ...snip Personally, I don't bog myself down in code from the start. I think in sorta pseudo-code, then once I have a solution, I then implement in language-specific code. I whole-heartedly agree with the above. It's all to easy to just start spinning out code and weaving things together and before you know it you've got something. But then come the inevitable changes, how will your code handle it? I would suggest reading some Steve McConnell. http://www.amazon.com/exec/obidos/ASIN/1556154844/ref=ase_stevemcconnelconA/ 103-2560652-4298245 That's the author's affiliate id, doesn't hurt to help them make more money. It links to Code Complete. As one reviewer says: Code Complete showed me that it's a lot more than that, beginning by designing your program, not just starting to write code right away, up to topics like naming conventions for variables, how to determine what code to put into a routine or how to make your program easier to debug. I cannot emphsize enough to follow some sort of standard. At least to read through the standard once. http://pear.php.net/manual/en/standards.php Pragmatic Programmer is also quite good: http://www.amazon.com/o/ASIN/020161622X/ref=cm_custrec_gl_acc/103-2560652-42 98245 Anyone with 3/4 a brain can throw together some code to do something. You've got thousands of examples and you might stumble across some of mine. It is another thing entirely to write code that will form a basis for evolution. The web is all about evolution. We always have to get the latest project done yesterday and then before we've even tested it we've got changes coming in ... thinking about what you are going to do and how you are going to grow it and test it are very important. Peter -- 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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] using variables in a function within a fuction
Hi to all, Have problem with this. Im want to use a variable in a function into another function. such as: ? function test1() {$hello=hello;} function test2() {test1(); print $hello;} test2(); ? This should print hello. But it does'nt work. Any idea? Regards mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] using variables in a function within a fuction
thanks ? function test1() {return hello;} function test2() {$hello = test1(); print $hello;} test2(); ? or make it (argh) global -Original Message- From: Michael P. Carel [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 25, 2002 3:14 PM To: php Subject: [PHP] using variables in a function within a fuction Hi to all, Have problem with this. Im want to use a variable in a function into another function. such as: ? function test1() {$hello=hello;} function test2() {test1(); print $hello;} test2(); ? This should print hello. But it does'nt work. Any idea? Regards mike -- 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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] apache/oracle/php
Yes Miguel, i've set all the required environment to the .bash_profile for the user oracle. What im wondering are , i've also installed oracle/php/apache in AIX server and my php scripts with ora function just work. But for the RedHat Linux i should run apache as oracle/dba. I've also set all the required enviroment in my php scripts. Heres the sample: PutEnv(ORACLE_SID=oracle); PutEnv(ORACLE_BASE=/home/oracle); PutEnv(ORACLE_HOME=/home/oracle/OraHome1); PutEnv(LD_LIBRARY_PATH=$ORACLE_HOME/lib); $connection=Ora_Logon(system,manager); This will only works if apache runs oracle/dba. Mike - Original Message - From: Miguel Cruz [EMAIL PROTECTED] To: Michael P. Carel [EMAIL PROTECTED] Cc: php [EMAIL PROTECTED] Sent: Wednesday, June 12, 2002 2:12 PM Subject: Re: [PHP] apache/oracle/php On Tue, 11 Jun 2002, Michael P. Carel wrote: Is there anyone who could give me some reasons why does my php script with oracle function does'nt work if i run apache as nobody/nobody? My script only work if i run apache as oracle/dba. Maybe your environment variables (ORA_BASE, etc.) are getting set in user oracle's .login file. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] apache/oracle/php
Thanks to all who tried to helps. I've finally found out why. The oracle home user directory should be set to drwxr-xr-x so once the required environment was set the ora function can connect to the oracle database, and all the required files and library can be access. thanks Regards, Mike Is there anyone who could give me some reasons why does my php script with oracle function does'nt work if i run apache as nobody/nobody? My script only work if i run apache as oracle/dba. Could it be because nobody/nobody has no rights? At least I think nobody should have no rights for your db... Cheers, Kiko -- It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.gruppe-69.com/ ICQ: 100601600 -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] apache/oracle/php
Hi to all, Is there anyone who could give me some reasons why does my php script with oracle function does'nt work if i run apache as nobody/nobody? My script only work if i run apache as oracle/dba. Regards, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] oracle again!!!!
Hi, I've tried installing php with oracle support to my RedHat Linux server. Im recieving this error when executing a sample Ora fucntion to connect to the oracle database.My oracle database works fine but my script canot connect. I've tried this sample script with my AIX server but it works fine. I really dont know why ... Please help. heres my sample connect script: PutEnv(ORACLE_SID=oracle); PutEnv(ORACLE_HOME=/home/oracle/OraHome1); $connection = Ora_Logon(system,manager); if($connection==false){ echo Ora_ErrorCode($connection).:. Ora_error($connection).BR; exit; } And heres my warning error: Warning: Oracle: Connection Failed: Error while trying to retrieve text for error ORA-12546 in /home/www/htdocs/selecting.php on line 9 Warning: ora_errorcode(): supplied argument is not a valid Oracle-Connection/Cursor resource in /home/www/htdocs/selecting.php on line 13 Warning: ora_error(): supplied argument is not a valid Oracle-Connection/Cursor resource in /home/www/htdocs/selecting.php on line 13 : I can connect to oracle remotely with my sqlplus using this account. Is thereanything that i didnt know when settingup php with oracle in redhat linux? Thanks in advance. Regards, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] oracle again!!!!
Thanks Chris , but i used to run this script within the same server(localhost) where oracle/php/apache reside. That's why im wondering why this error appears. I've tried to setup oracle/php/apache with AIX and it work fine. I've also red alot of documentation in setting up with RedHat but still it doesnt work. Is there something i need to consider when installing this in RedHat? Regards, Mike - Original Message - From: Chris Hewitt [EMAIL PROTECTED] Cc: php [EMAIL PROTECTED] Sent: Thursday, June 06, 2002 5:41 PM Subject: Re: [PHP] oracle again Michael, I have not used Oracle from PHP but I may be able to provide some pointers/questions. You do not say where the Oracle database is. If it is on the AIX computer then to connect you will need the system@tnsname form of user name to specify which connection in your tnsnames.ora file to use. (I assume you have modified the linux firewall to allow the ports used in the tnsnames.ora file to be open). I assume that you have the Oracle client code loaded onto the linux computer. If the database is local on the linux computer then maybe the firewall issue still applies. What Iwould look at first is the first error message. ORA-12546 is TNS:permission denied. This looks like the user that apache is run as cannot open the tnsnames.ora file. From the Oracle home you give, I think it should be trying to open /home/oracle/OraHome1/network/admin/tnsnames.ora but cannot do so. Is the file located here? Hope this helps. Chris Michael P. Carel wrote: Hi, I've tried installing php with oracle support to my RedHat Linux server. Im recieving this error when executing a sample Ora fucntion to connect to the oracle database.My oracle database works fine but my script canot connect. I've tried this sample script with my AIX server but it works fine. I really dont know why ... Please help. heres my sample connect script: PutEnv(ORACLE_SID=oracle); PutEnv(ORACLE_HOME=/home/oracle/OraHome1); $connection = Ora_Logon(system,manager); if($connection==false){ echo Ora_ErrorCode($connection).:. Ora_error($connection).BR; exit; } And heres my warning error: Warning: Oracle: Connection Failed: Error while trying to retrieve text for error ORA-12546 in /home/www/htdocs/selecting.php on line 9 Warning: ora_errorcode(): supplied argument is not a valid Oracle-Connection/Cursor resource in /home/www/htdocs/selecting.php on line 13 Warning: ora_error(): supplied argument is not a valid Oracle-Connection/Cursor resource in /home/www/htdocs/selecting.php on line 13 : I can connect to oracle remotely with my sqlplus using this account. Is thereanything that i didnt know when settingup php with oracle in redhat linux? Thanks in advance. Regards, Mike -- 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] Ora_Fetch_Into function problem
thanks miguel but i've already checked it, i've included return values checking where it stop. Here's my full source test script. There where no Ora_Error_Code returned. ? PutEnv(ORACLE_SID=PROD); PutEnv(ORACLE_HOME=/u01/app/oracle/product/7.3.3_prod); $connection = Ora_Logon(apps,apps); if($connection==false){ echo Ora_ErrorCode($connection).:. Ora_Error($connection).BR; exit; } $cursor= Ora_Open($connection); if($cursor==false){ echo Ora_ErrorCode($connection).:. Ora_Error($connection).BR; exit; } $query = select * from mikecarel; //$query = select table_name from all_tables; $result = Ora_Parse($cursor,$query); if($result==false){ echo Ora_ErrorCode($connection).:. Ora_Error($connection).BR; exit; } $result=Ora_Exec($cursor); if($result==false){ echo Ora_ErrorCode($connection).:. Ora_Error($connection).BR; exit; } echotable border=1; echotrtdbFull Name/b/tdtdbEmail Address/b/td/tr; //$values=array(mike, tess); while(Ora_Fetch_Into($cursor,$values)){ $name = $values[0]; $email = $values[1]; echo trtd$name/tdtd$email/td/tr; echo $email; print($name); $result =1; } if(!$result==1) print(no result); echo/table; ora_close($cursor); ora_logoff($connection); ? mike Check the return values from your ora_logon, ora_open, ora_parse, and ora_exec calls to see whether they worked. That way you can know at which stage it stopped working. miguel On Mon, 27 May 2002, Michael P. Carel wrote: Finally i've set-up my AIX server with PHP and oracle support. Thanks for all who helps me for the configure setup. Now I have a problem in oracle function regarding the retrieval of entries in the oracle table. The Ora_Fetch_Into function doesnt work properly to me or i have an error in which i dont know. I've written below the code that i used to test, it doesnt echo the value of $name and $email. My query works if i've enter it manually with my Oracle server. I really dont know why im just a newbie with this database(oracle) statement. Please help us here. Thanks in advance. ?PutEnv(ORACLE_SID=PROD); PutEnv(ORACLE_HOME=/u01/app/oracle/product/7.3.3_prod); $connection = Ora_Logon(apps,apps); $cursor= Ora_Open($connection); $query = select * from mikecarel; $result = Ora_Parse($cursor,$query); $result=Ora_Exec($cursor); echotable border=1; echotrtdbFull Name/b/tdtdbEmail Address/b/td/tr; while(Ora_Fetch_Into($cursor,$values)){ $name = $values[0]; $email = $values[1]; echo trtd$name/tdtd$email/td/tr; } ora_close($cursor); ora_logoff($connection); ? Regards, mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Ora_Fetch_Into function problem
I've recently found out that the Ora_Fetch_Into function cannot get a small value of the tables data. We've tried to fetch other tables which have a large amount data ,and it succeeds. The queried values echoed successfully. Is there any idea why? im using PHP4.2.1 oracle7.3.3 Regards, Mike thanks miguel but i've already checked it, i've included return values checking where it stop. Here's my full source test script. There where no Ora_Error_Code returned. ? PutEnv(ORACLE_SID=PROD); PutEnv(ORACLE_HOME=/u01/app/oracle/product/7.3.3_prod); $connection = Ora_Logon(apps,apps); if($connection==false){ echo Ora_ErrorCode($connection).:. Ora_Error($connection).BR; exit; } $cursor= Ora_Open($connection); if($cursor==false){ echo Ora_ErrorCode($connection).:. Ora_Error($connection).BR; exit; } $query = select * from mikecarel; //$query = select table_name from all_tables; $result = Ora_Parse($cursor,$query); if($result==false){ echo Ora_ErrorCode($connection).:. Ora_Error($connection).BR; exit; } $result=Ora_Exec($cursor); if($result==false){ echo Ora_ErrorCode($connection).:. Ora_Error($connection).BR; exit; } echotable border=1; echotrtdbFull Name/b/tdtdbEmail Address/b/td/tr; //$values=array(mike, tess); while(Ora_Fetch_Into($cursor,$values)){ $name = $values[0]; $email = $values[1]; echo trtd$name/tdtd$email/td/tr; echo $email; print($name); $result =1; } if(!$result==1) print(no result); echo/table; ora_close($cursor); ora_logoff($connection); ? mike Check the return values from your ora_logon, ora_open, ora_parse, and ora_exec calls to see whether they worked. That way you can know at which stage it stopped working. miguel On Mon, 27 May 2002, Michael P. Carel wrote: Finally i've set-up my AIX server with PHP and oracle support. Thanks for all who helps me for the configure setup. Now I have a problem in oracle function regarding the retrieval of entries in the oracle table. The Ora_Fetch_Into function doesnt work properly to me or i have an error in which i dont know. I've written below the code that i used to test, it doesnt echo the value of $name and $email. My query works if i've enter it manually with my Oracle server. I really dont know why im just a newbie with this database(oracle) statement. Please help us here. Thanks in advance. ?PutEnv(ORACLE_SID=PROD); PutEnv(ORACLE_HOME=/u01/app/oracle/product/7.3.3_prod); $connection = Ora_Logon(apps,apps); $cursor= Ora_Open($connection); $query = select * from mikecarel; $result = Ora_Parse($cursor,$query); $result=Ora_Exec($cursor); echotable border=1; echotrtdbFull Name/b/tdtdbEmail Address/b/td/tr; while(Ora_Fetch_Into($cursor,$values)){ $name = $values[0]; $email = $values[1]; echo trtd$name/tdtd$email/td/tr; } ora_close($cursor); ora_logoff($connection); ? Regards, mike -- 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] Ora_Fetch_Into function problem
ooopp...sorry just found out why. I just need to have Ora_Commit() function after all the queries to totally set the data to the database. Im querying a data which is not commited yet to the oracle database. Sorry for that I'm just a newbie in oracle. Thanks to all.. mike I've recently found out that the Ora_Fetch_Into function cannot get a small value of the tables data. We've tried to fetch other tables which have a large amount data ,and it succeeds. The queried values echoed successfully. Is there any idea why? im using PHP4.2.1 oracle7.3.3 Regards, Mike thanks miguel but i've already checked it, i've included return values checking where it stop. Here's my full source test script. There where no Ora_Error_Code returned. ? PutEnv(ORACLE_SID=PROD); PutEnv(ORACLE_HOME=/u01/app/oracle/product/7.3.3_prod); $connection = Ora_Logon(apps,apps); if($connection==false){ echo Ora_ErrorCode($connection).:. Ora_Error($connection).BR; exit; } $cursor= Ora_Open($connection); if($cursor==false){ echo Ora_ErrorCode($connection).:. Ora_Error($connection).BR; exit; } $query = select * from mikecarel; //$query = select table_name from all_tables; $result = Ora_Parse($cursor,$query); if($result==false){ echo Ora_ErrorCode($connection).:. Ora_Error($connection).BR; exit; } $result=Ora_Exec($cursor); if($result==false){ echo Ora_ErrorCode($connection).:. Ora_Error($connection).BR; exit; } echotable border=1; echotrtdbFull Name/b/tdtdbEmail Address/b/td/tr; //$values=array(mike, tess); while(Ora_Fetch_Into($cursor,$values)){ $name = $values[0]; $email = $values[1]; echo trtd$name/tdtd$email/td/tr; echo $email; print($name); $result =1; } if(!$result==1) print(no result); echo/table; ora_close($cursor); ora_logoff($connection); ? mike Check the return values from your ora_logon, ora_open, ora_parse, and ora_exec calls to see whether they worked. That way you can know at which stage it stopped working. miguel On Mon, 27 May 2002, Michael P. Carel wrote: Finally i've set-up my AIX server with PHP and oracle support. Thanks for all who helps me for the configure setup. Now I have a problem in oracle function regarding the retrieval of entries in the oracle table. The Ora_Fetch_Into function doesnt work properly to me or i have an error in which i dont know. I've written below the code that i used to test, it doesnt echo the value of $name and $email. My query works if i've enter it manually with my Oracle server. I really dont know why im just a newbie with this database(oracle) statement. Please help us here. Thanks in advance. ?PutEnv(ORACLE_SID=PROD); PutEnv(ORACLE_HOME=/u01/app/oracle/product/7.3.3_prod); $connection = Ora_Logon(apps,apps); $cursor= Ora_Open($connection); $query = select * from mikecarel; $result = Ora_Parse($cursor,$query); $result=Ora_Exec($cursor); echotable border=1; echotrtdbFull Name/b/tdtdbEmail Address/b/td/tr; while(Ora_Fetch_Into($cursor,$values)){ $name = $values[0]; $email = $values[1]; echo trtd$name/tdtd$email/td/tr; } ora_close($cursor); ora_logoff($connection); ? Regards, mike -- 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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Ora_Fetch_Into function problem
Hi to all; Finally i've set-up my AIX server with PHP and oracle support. Thanks for all who helps me for the configure setup. Now I have a problem in oracle function regarding the retrieval of entries in the oracle table. The Ora_Fetch_Into function doesnt work properly to me or i have an error in which i dont know. I've written below the code that i used to test, it doesnt echo the value of $name and $email. My query works if i've enter it manually with my Oracle server. I really dont know why im just a newbie with this database(oracle) statement. Please help us here. Thanks in advance. ?PutEnv(ORACLE_SID=PROD); PutEnv(ORACLE_HOME=/u01/app/oracle/product/7.3.3_prod); $connection = Ora_Logon(apps,apps); $cursor= Ora_Open($connection); $query = select * from mikecarel; $result = Ora_Parse($cursor,$query); $result=Ora_Exec($cursor); echotable border=1; echotrtdbFull Name/b/tdtdbEmail Address/b/td/tr; while(Ora_Fetch_Into($cursor,$values)){ $name = $values[0]; $email = $values[1]; echo trtd$name/tdtd$email/td/tr; } ora_close($cursor); ora_logoff($connection); ? Regards, mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] error in compling with oracle support
Hi to All, Is there anyone know's why im receiving this error in compiling PHP-4.2.1 with oracle support in AIX. Im using oracle 7.3.4.0.0 . Im having an configure error: Unsupported Oracle version! Here's my config script: ./configure --with-apache=../apache_1.3.24 \ --with-enable-track-vars --with-oci8=/u01/app/oracle/product/7.3.3_prod \ --with-oracle=/u01/app/oracle/product/7.3.3_prod Please help us and thank's in advance for those who reply. Regards, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] error in compling with oracle support
can i now where and why? pls ummm ur answer is in your question !! -Original Message- From: Michael P. Carel [mailto:[EMAIL PROTECTED]] Sent: Friday, 24 May 2002 12:56 PM To: php Subject: [PHP] error in compling with oracle support Hi to All, Is there anyone know's why im receiving this error in compiling PHP-4.2.1 with oracle support in AIX. Im using oracle 7.3.4.0.0 . Im having an configure error: Unsupported Oracle version! Here's my config script: ./configure --with-apache=../apache_1.3.24 \ --with-enable-track-vars --with-oci8=/u01/app/oracle/product/7.3.3_prod \ --with-oracle=/u01/app/oracle/product/7.3.3_prod Please help us and thank's in advance for those who reply. Regards, Mike -- 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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] error in compling with oracle support
thanks to all of you guy's. I'll try all your suggestions. It will take time to see all the results since im compling it with an RS6000 running AIX os, and to tell you guy's this machine was very sloww. It will take 3hrs just to see this error message. thanks that's what ur error message would suggest ... try looking on the php site . -Original Message- From: Michael P. Carel [mailto:[EMAIL PROTECTED]] Sent: Friday, 24 May 2002 1:49 PM To: Peter Subject: Re: [PHP] error in compling with oracle support so you mean php does'nt support oracle ver 7.3.4.0.0 ? right here Unsupported Oracle version! -Original Message- From: Michael P. Carel [mailto:[EMAIL PROTECTED]] Sent: Friday, 24 May 2002 1:14 PM To: Peter; php Subject: Re: [PHP] error in compling with oracle support can i now where and why? pls ummm ur answer is in your question !! -Original Message- From: Michael P. Carel [mailto:[EMAIL PROTECTED]] Sent: Friday, 24 May 2002 12:56 PM To: php Subject: [PHP] error in compling with oracle support Hi to All, Is there anyone know's why im receiving this error in compiling PHP-4.2.1 with oracle support in AIX. Im using oracle 7.3.4.0.0 . Im having an configure error: Unsupported Oracle version! Here's my config script: ./configure --with-apache=../apache_1.3.24 \ --with-enable-track-vars --with-oci8=/u01/app/oracle/product/7.3.3_prod \ --with-oracle=/u01/app/oracle/product/7.3.3_prod Please help us and thank's in advance for those who reply. Regards, Mike -- 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 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] Enabling Java in a web browser using PHP script
Hi to all, How could i automatically enable Java in a Web browser to execute java script using PHP. I have some javascripts line's in my PHP script and im worried that it will not work if the browser was not java enabled. Or is there any why to execute a java script line in PHP without enabling the browser java capability. Thanks in advance. Regards, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Enabling Java in a web browser using PHP script
sorry for that what i mean is Javascript not Java. thanks for all who replied. - Original Message - From: Lars Torben Wilson [EMAIL PROTECTED] To: Michael P. Carel [EMAIL PROTECTED] Cc: php [EMAIL PROTECTED] Sent: Tuesday, May 14, 2002 10:25 AM Subject: Re: [PHP] Enabling Java in a web browser using PHP script On Mon, 2002-05-13 at 18:03, Michael P. Carel wrote: Hi to all, How could i automatically enable Java in a Web browser to execute java script using PHP. I have some javascripts line's in my PHP script and im worried that it will not work if the browser was not java enabled. Or is there any why to execute a java script line in PHP without enabling the browser java capability. Thanks in advance. Regards, Mike Java != JavaScript, but that's beside the point. Anyway, the answer is essentially 'No'. If you want your stuff to work anywhere, don't use Java or JavaScript, or don't let users in if they don't have it turned on. If I (as a surfer) turn off JavaScript or Java in my browser settings, you can assume I want it off and will be very unhappy if a script changes that behind my back. -- Torben Wilson [EMAIL PROTECTED] http://www.thebuttlesschaps.com http://www.hybrid17.com http://www.inflatableeye.com +1.604.709.0506 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Header function not working header('Window-target: _top');
Hi to all, Sorry for bringing back this type of topic, But this type of header call really doesnt work for me here. I've tested many time's the example below that was given by Dan but it really doesnt work. Im already using php4.2 in apache 1.3.24 . Based on the example below i've just removed/uncomment the header function for left.php to test if it realy jump out of the frame. Is there any idea why header('Window-target: _top'); doesnt work for me. Please help. Regards, Mike - Original Message - From: Analysis Solutions [EMAIL PROTECTED] To: PHP List [EMAIL PROTECTED] Sent: Friday, March 15, 2002 11:27 PM Subject: Re: [PHP] Targetted redirection? Hi Folks: Okay, here's what I'm talking about... A sample system. Four files. index.php main page holding the frameset. frameset has two frames. one on left. one on right. left.php navigation menu that goes in the left hand frame right.php content in right hand frame. this page is the default one that comes up in the initial frameset. right2.phpanother page for the right hand frame * index.php ** ?php # This has no effect. # header('Window-target: _top'); ? html headtitleindex page/title/head frameset COLS=120,* FRAME SRC=left.php name=menu scrolling=no frame src=right.php name=content /frameset /html * left.php ** ?php # Turning this on will jump this page out of the frames. header('Window-target: _top'); ? htmlheadtitlethe menu/title/headbody a href=right.php target=contentright/a br /a href=right2.php target=contentright 2/a /body/html * right.php ** ?php # Turning this on will jump this page out of the frames. # header('Window-target: _top'); ? HTMLHEADTITLERight/TITLE/HEADBODY Hi there. This is the main content page in the right frame. /BODY/HTML * right2.php ** ?php # This has no effect. # header('Window-target: _top'); ? HTMLHEADTITLERight 2/TITLE/HEADBODY Hi there. This is the secondary content page in the right frame. /BODY/HTML Now, put all those files on your machine. Hit index.php and you'll see everything normally. Then, uncomment the header function in left.php or right.php and you'll see that page jump out of the frames. But, turn the header on in index.php or index2.php and you'll still be in the frames. Enjoy, --Dan -- PHP scripts that make your job easier http://www.analysisandsolutions.com/code/ SQL Solution | Layout Solution | Form Solution T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y -- 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] POST form File Upload Progress Bar?
could you give us some samples im also searching for that. thanks. Regards, mike My cheap trick around this is to have an onClick event on the form submit button that brings up a small window with a progress note in it, and an animated gif of a prgress bar. As the page does not unLoad until the upload is finished, I use the unLoad event of the body tag to close that progress window. Generally works really well for me. I can show you an example if you like. Wes I have a POST form with a file upload field. Users will be uploading pictures. What would be the most professional way to tell them their file is uploading and to please wait? Since the action page won't execute until after the image is done uploading, is there a way to have an intermediary page load telling them to please wait, and that page will take the image and upload it? Or should I just put a note in the upload form warning them about the long upload times and gray out the submit button with javascript after it's clicked? -- 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] Targetted redirection?
is there any limitation with header function?im wondering why it not realy working for me. it really gives me a headache. i've done exactly what you've told us but it does'nt work. i remove the comment from the left.php or right.php and retain the index.ph as-is, but still it doesnt jump out the frames. * index.php ** ?php # This has no effect. # header('Window-target: _top'); ? html headtitleindex page/title/head frameset COLS=120,* FRAME SRC=left.php name=menu scrolling=no frame src=right.php name=content /frameset /html * left.php ** ?php # Turning this on will jump this page out of the frames. header('Window-target: _top'); ? htmlheadtitlethe menu/title/headbody a href=right.php target=contentright/a br /a href=right2.php target=contentright 2/a /body/html * right.php ** ?php # Turning this on will jump this page out of the frames. header('Window-target: _top'); ? HTMLHEADTITLERight/TITLE/HEADBODY Hi there. This is the main content page in the right frame. /BODY/HTML * right2.php ** ?php # This has no effect. # header('Window-target: _top'); ? HTMLHEADTITLERight 2/TITLE/HEADBODY Hi there. This is the secondary content page in the right frame. /BODY/HTML Now, put all those files on your machine. Hit index.php and you'll see everything normally. Then, uncomment the header function in left.php or right.php and you'll see that page jump out of the frames. But, turn the header on in index.php or index2.php and you'll still be in the frames. Enjoy, --Dan -- PHP scripts that make your job easier http://www.analysisandsolutions.com/code/ SQL Solution | Layout Solution | Form Solution T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y -- 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] inconsistent mail sending
What wrong with this code? It does'nt consistently send email with the users in that table. Sometimes it duplicate sending to a certain users and sometimes it doesnt. Please help $query=(Select * from $users_tablename where Group_Id='3' ); $result = mysql_query($query); if(!$result)error_message(sql_error()); while($query_data=mysql_fetch_array($result)){ $E_mail=$query_data[E_mail]; $Title=$query_data[Title]; $Nickname=$query_data[Nickname]; $mail_body = Sir $Nickname, \n \n; $subject=For Approval 8D no. $Dno; if(mail($E_mai, $subject, $mail_body)){ print(Message Sent); }else{ error_message(Failed to Notify Mr. $Title! Contact your Systems Administrator immediately! ); } Regards, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Targetted redirection?
oh yes i've got your point, but i've tried what you've told us before but still it does not redirect to cover over the frame page. Ah, yes, that'd be a problem... :) I knew what I said worked because I use it to get my pages to break out of About.com's frames. asideMan, the audacity of those folks... framing up my content in their ads./aside In the headers of all of my pages, I send out header('Window-target: _top'); Now, doing some testing of why it didn't work for you I found that it only works when pages with that header are one of the pages requested by the initial frameset. If header is sent out from a page which is requested once the main frameset is constructed, the header doesn't work. What do you mean? could give us some simple script sample to visualize more?please.. --Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Targetted redirection?
Ben, I have that kind of problem before, but it whould be much better to use javascripts rather than the HTTP Header function when redirecting to cover over the frame page. Use this instead: echoscriptstop.location.href=http://your.page.direction; /scripts; I've already tried and using this kind of redirection and it just works fine with me. Hope this will help you. Regards, Mike - Original Message - From: Ben Cheng [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 14, 2002 4:15 AM Subject: [PHP] Targetted redirection? I have a page within a frame that uses Header() to redirect to another page. However, I don't want the redirection to take place just within that frame set. I want the page that it redirects to to cover over the frame. Is this possible? -Ben -- 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] Targetted redirection?
- Original Message - From: Analysis Solutions [EMAIL PROTECTED] To: PHP List [EMAIL PROTECTED] Sent: Thursday, March 14, 2002 8:36 AM Subject: Re: [PHP] Targetted redirection? On Thu, Mar 14, 2002 at 07:58:29AM +0800, Michael P. Carel wrote: I have that kind of problem before, but it whould be much better to use javascripts rather than the HTTP Header function when redirecting to cover over the frame page. Use this instead: echoscriptstop.location.href=http://your.page.direction; /scripts; I've already tried and using this kind of redirection and it just works fine with me. Sure it works... execpt when people who have Java'sCrap turned off come to your site. Oh, and then there's the folks with browsers that don't have JS at all? HTTP headers work across all browsers. header('Location: http://foo.org/') is the real solution. For more info on why not to use Java'sCrap and how accomplish the same things without it, see http://www.analysisandsolutions.com/code/weberror.htm?j=y Enjoy, --Dan oh yes i've got your point, but i've tried what you've told us before but still it does not redirect to cover over the frame page. Here's what i've did: header('Window-target: _top'); header('Location: http://my.directed.page'); or either header('Window-target: _blank'); header('Location: http://my.directed.page'); this source doesnt redirect to cover the frame, instead it just shows within the frame, and upon refresh it will cover the frame page. what should be the problem? --Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] deleting records in mysql
Hi to all, just want to ask why does the records in the table field sometimes failed to delete in using an interface such as using a delete mysql queries in PHP or even in a WEBMIN mysql gui interface. When it happens i need to manual delete the records using a command line. is there any bug in the the version of mysql im using?my php scripts failed when this happened. Im using mysql version 11.15 distribution 3.23.39 in redhat linux 6.2 Regards, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] deleting records in mysql
There were no error message for both of the interface,the field records just remain the same and still in the table upon deletion. This happen intermittently(sometimes it deletes and sometimes it does'nt). The php scripts that i've created checked the records of the table and if it's still exists it will show a pre-defined error messages. I'm using WEBMIN(gui interface) mysql module in administering MySQL server and it shows the same problem when i used it to delete records , i should also used the WEBMIN command line MySQL interface to delete the record field. Do you have any idea? The system that im creating now using a PHP will become unstable if this problem exists. Please help us. Regards, Mike - Original Message - From: Faisal Abdullah [EMAIL PROTECTED] To: Michael P. Carel [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, March 12, 2002 5:41 PM Subject: Re: [PHP] deleting records in mysql The web interfaces probably failed to receive the ID of the row you wish to delete. What's the error message? Does the ID of the row you wish to delete appear in the Delete Link in the web interface? Regards, Faisal On Tuesday 12 March 2002 17:35, you wrote: Hi to all, just want to ask why does the records in the table field sometimes failed to delete in using an interface such as using a delete mysql queries in PHP or even in a WEBMIN mysql gui interface. When it happens i need to manual delete the records using a command line. is there any bug in the the version of mysql im using?my php scripts failed when this happened. Im using mysql version 11.15 distribution 3.23.39 in redhat linux 6.2 Regards, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] auto redirection
Hi to all, Is there anyone who could help me in redirecting the page outside the Frame page once a certain line of php scripts(or whatever) is executed or echoed out. My page redirection are appearing in the Frame page which it should not be. Please help. Regards, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] http header with target problem
Hi to all, I have here a problem regarding auto redirecting a Frame supported page upon session timeout. I'm redirecting the page upon session timeout to header(Location:index.php?expire=0); . But i want that to redirect with a specified target tags with TARGET=_top to exit in the FRAME page. Any idea? Please help Regards, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] http header with target problem
You mean this header('Window-target: _top'); header(Location:index.php?expire=0); On Tue, Mar 12, 2002 at 08:08:25AM +0800, Michael P. Carel wrote: I have here a problem regarding auto redirecting a Frame supported page upon session timeout. I'm redirecting the page upon session timeout to header(Location:index.php?expire=0); . But i want that to redirect with a specified target tags with TARGET=_top to exit in the FRAME page. Any idea? Have you tried... header('Window-target: _top'); By the way, the Location header really should use a complete URI, including the http://www...etc..., not just the file name. Enjoy, --Dan -- PHP scripts that make your job easier http://www.analysisandsolutions.com/code/ SQL Solution | Layout Solution | Form Solution T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y -- 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] wordwrapping by width
Hi to all, Just want to ask if there is any function that will force to wrap character by it width length and not by its character length. Wordwrap function can force wrapping by its character and not by its width. Please help. Regards, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP exploits
Hi to all, I've been seing some exploits issue in the list but i have'nt read yet what it is. Could any one tell me what this exploits are or refer me to a page were i can read all about it, im using php 4.0.5. Regards, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] header problem
thanks to all who help me regarding this problem, i've finally know the cause of the header error message, i've got an HTML output on top of the script (? center ?) I've overlooked that. thanks for all of your clues and guide. hope to be as good as you there guys. Regards, mike - Original Message - From: Jim Lucas [php] [EMAIL PROTECTED] To: Michael P. Carel [EMAIL PROTECTED]; george Pitcher [EMAIL PROTECTED] Cc: php [EMAIL PROTECTED] Sent: Wednesday, February 27, 2002 12:32 AM Subject: Re: [PHP] header problem question, is this on a process page or on a page that renders text? Jim Lucas - Original Message - From: Michael P. Carel [EMAIL PROTECTED] To: george Pitcher [EMAIL PROTECTED] Cc: php [EMAIL PROTECTED] Sent: Monday, February 25, 2002 5:44 PM Subject: Re: [PHP] header problem Thank you George you are right, Im looking for a redirector once details have been checked in the form and written in the database, but how can i do it what whould be the second option? i 've searching for javascript redirector but i cant find one. Could you please help me im stuck here. Regards, Mike - Original Message - From: george Pitcher [EMAIL PROTECTED] To: Michael P. Carel [EMAIL PROTECTED] Sent: Friday, February 22, 2002 5:44 PM Subject: Re: [PHP] header problem Michael, You cannot have any 'displayed' text prior to using the header function. You'll need to do this another way. Are you looking for automatic submission after completing a form or redirection once details have been checked. The first one is only possible with client-side scripting such as javascript (and I'm not sure if it's possible there). The second option is easy. HTH George On Fri, 2002-02-22 at 09:28, Michael P. Carel wrote: Hi , I have a problem in using the Header() function. I want to automatically redirect the page into another php script after a form completion but im receiving this error Warning: Cannot add header information - headers already sent by .. Heres the script line: header(Location: 8D_Anaform_Admin.php?action=form); Please help im stuck here. Regards, Mike _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- 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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] header problem
Thank you George you are right, Im looking for a redirector once details have been checked in the form and written in the database, but how can i do it what whould be the second option? i 've searching for javascript redirector but i cant find one. Could you please help me im stuck here. Regards, Mike - Original Message - From: george Pitcher [EMAIL PROTECTED] To: Michael P. Carel [EMAIL PROTECTED] Sent: Friday, February 22, 2002 5:44 PM Subject: Re: [PHP] header problem Michael, You cannot have any 'displayed' text prior to using the header function. You'll need to do this another way. Are you looking for automatic submission after completing a form or redirection once details have been checked. The first one is only possible with client-side scripting such as javascript (and I'm not sure if it's possible there). The second option is easy. HTH George On Fri, 2002-02-22 at 09:28, Michael P. Carel wrote: Hi , I have a problem in using the Header() function. I want to automatically redirect the page into another php script after a form completion but im receiving this error Warning: Cannot add header information - headers already sent by .. Heres the script line: header(Location: 8D_Anaform_Admin.php?action=form); Please help im stuck here. Regards, Mike _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] word wrapping again
Hi there, Is there any function that can i used in wrapping a continuous line of words that will be displayed in the HTML table to avoid destroying its table format. I've tried wordwrapping function but it only wraps word with spaces between them. I have a REPORT NO. that is continously incrementing that's why i need that approach. The table will be destroyed if it contains a continuous line of alhanumeric numbers. Please help. Regards, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] header problem
Hi , I have a problem in using the Header() function. I want to automatically redirect the page into another php script after a form completion but im receiving this error Warning: Cannot add header information - headers already sent by .. Heres the script line: header(Location: 8D_Anaform_Admin.php?action=form); Please help im stuck here. Regards, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] text box truncate
Hi there, I have here a problem regarding how to truncate the data that was written in the text box form? I want the data to be displayed in the html collumn in standard length and format. Setting the text box in WRAP will not solve the problem it will not add a new line. I want that instead of wrapping it will just add a newline(\n) to display it properly in the html column. Any idea? Please help me im stuck here. Regards, mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] wordwrap not working
Hi, Im testing the example in the http://www.php.net/manual/en/function.wordwrap.php and it seems not working it still printing the whole word and not wrapping. Im using php4.05 in my redhat 6.2 using an apache. Here's the sample: ? $text = The quick brown fox jumped over the lazy dog.; $newtext = wordwrap( $text, 20 ); echo $newtext\n; ? it should print like this: The quick brown fox jumped over the lazy dog. but it still printing like this: The quick brown fox jumped over the lazy dog. Please help Regards, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] date and time triggerring
Hi there, Is there any one who could give me an idea regarding the date and time triggering PHP script. This date and time script whould gives an output if ever it hit Jan 1 and print's it's year. Any idea? Thanks in advance, and also to all who keeps on helping a newbie like me. Regards, Mike -- 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] Form Problem
Hi there, I have a problem here regarding the form table name variable (i.e input name=Process type text), when i used Href tags to send the variable in the next script it does'nt recognized the $Process variable. I've tried the the submit type but but im having problem with other $variable in the table which is not part of the form. Here's the script: Option1: Using Submit ?FORM ACTION=addlist.php method=get? print(BR); print(TABLE WIDTH= 90%); print(/TABLEHR WIDTH= 90%BR); print(tableTRTD ALIGN=RIGHT bgcolor=grayB8D #: /TDTD $Dno /TD/TR TRTD ALIGN=RIGHT bgcolor=grayBMODE OF FAILURE: /TDTDTEXTAREA NAME=Mode ROWS= 5 COLS=40 WRAP/TEXTAREA/TD/TR TRTD ALIGN=RIGHT bgcolor=grayBPACKAGE:/TDTDinput name=Package type=text/TD/TR TRTD ALIGN=RIGHT bgcolor=grayBPROCESS:/TDTDinput name=Process type=text/TD/TR TRTD ALIGN=RIGHT bgcolor=grayBROOT CAUSE:/TDTDTEXTAREA NAME=Root ROWS=5 COLS=40 WRAP/TEXTAREA/TD/TR TRTD ALIGN=RIGHT bgcolor=grayBCORRECTIVE ACTION:/TDTDTEXTAREA NAME=Corrective ROWS=5 COLS=40 WRAP/TEXTAREA/TD/TR TRTD ALIGN=RIGHT bgcolor=grayBRESPONDENCE:/TDTDinput name=Respondence type=text/TD/TR TRTD ALIGN=RIGHT bgcolor=grayBCOMMITMENT:/TDTDinput name=Commitment type=text/TD/TR TRTD ALIGN=RIGHT bgcolor=grayBSTATUS:/TDTDTEXTAREA NAME=Status ROWS=5 COLS=40 WRAP/TEXTAREA/TD/TR TRTD ALIGN=RIGHT bgcolor=grayBREMARKS:/TDTDTEXTAREA NAME=Remarks ROWS=5 COLS=40 WRAP/TEXTAREA/TD/TR /table); ?centerinput type = submit name= submit value=UPDATE? Im having problem with the $Dno. Submit would not recognize this in sending the form. I'd like submit to add a Dno=$Dno in submitting the form but how? Option 2: Using HREF print(BR); print(TABLE WIDTH= 90%); print(/TABLEHR WIDTH= 90%BR); print(tableTRTD ALIGN=RIGHT bgcolor=grayB8D #: /TD$Dno/TD/TR TRTD ALIGN=RIGHT bgcolor=grayBMODE OF FAILURE: /TDTDTEXTAREA NAME=Mode ROWS= 5 COLS=40 WRAP/TEXTAREA/TD/TR TRTD ALIGN=RIGHT bgcolor=grayBPACKAGE:/TDTDinput name=Package type=text/TD/TR TRTD ALIGN=RIGHT bgcolor=grayBPROCESS:/TDTDinput name=Process type=text/TD/TR TRTD ALIGN=RIGHT bgcolor=grayBROOT CAUSE:/TDTDTEXTAREA NAME=Root ROWS=5 COLS=40 WRAP/TEXTAREA/TD/TR TRTD ALIGN=RIGHT bgcolor=grayBCORRECTIVE ACTION:/TDTDTEXTAREA NAME=Corrective ROWS=5 COLS=40 WRAP/TEXTAREA/TD/TR TRTD ALIGN=RIGHT bgcolor=grayBRESPONDENCE:/TDTDinput name=Respondence type=text/TD/TR TRTD ALIGN=RIGHT bgcolor=grayBCOMMITMENT:/TDTDinput name=Commitment type=text/TD/TR TRTD ALIGN=RIGHT bgcolor=grayBSTATUS:/TDTDTEXTAREA NAME=Status ROWS=5 COLS=40 WRAP/TEXTAREA/TD/TR TRTD ALIGN=RIGHT bgcolor=grayBREMARKS:/TDTDTEXTAREA NAME=Remarks ROWS=5 COLS=40 WRAP/TEXTAREA/TD/TR /table); print(A HREF=completelist.php?action=UpdateDno=$DnoMode=$ModePackage=$PackagePro cess=$ProcessRoot=$RootCorrective=$CorrectiveRespondence=$RespondenceCom mitment=$CommitmentStatus=$StatusRemarks=$Remarks[UPDATE]/A); Im having problem here in all the name string variable(ie. $Package, $Mode ...etc) except the $Dno. How could i make the Href tag recognize the name string variable in the table form? Any idea? Please help me regarding this im just a PHP newbie. Thanks in advance Regards, Mike -- 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] Displaying array of elements problem
Hi there, I have another problem out here. Im using the for loop to display an array of element in the checkbox form. My problem is how could i set the this if to an error message if their are a NULL selection. By default this will display blank for no selection which i whant to be avoided. I dont know what particular variable should i declare if there are NULL selection so that i can incorporate that in an error script. Please help me. Sample script: ? // check for $submit if (!$submit) { // and display form ? form action=test.php method=GET input type=checkbox name=artist[] value=Bon JoviBon Jovi input type=checkbox name=artist[] value=N'SyncN'Sync input type=checkbox name=artist[] value=BoyzoneBoyzone input type=checkbox name=artist[] value=Britney SpearsBritney Spears input type=checkbox name=artist[] value=Jethro TullJethro Tull input type=checkbox name=artist[] value=Crosby, Stills NashCrosby, Stills Nash br input type=submit name=submit value=Select /form ? } // or display the selected artists else { ? bAnd here are your selections:/b br ? -error script line should be here-- for($count = 0; $count sizeof($artist); $count++) { echo i$artist[$count]/ibr; } } ? Regards, Mike -- 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] mail smtp class file
Hi there, I've tried using the SMTP class file that was given by PHPGalaxy.com previously in the mailing list, and have difficuties in using it. upon the execution of the script im recieving the mail but the content of the mail was the HEADER. Here's the script: ? function sendmsg($to, $subject, $text, $from, $file, $type) { $content = fread(fopen($file,r),filesize($file)); $content = chunk_split(base64_encode($content)); $uid = strtoupper(md5(uniqid(time(; $name = basename($file); $header = From: $from\nReply-To: $from\n; $header .= MIME- Version: 1.0\n; $header .= Content-Type: multipart/mixed; boundary=$uid\n; $header .= --$uid\n; $header .= Content-Type: text/plain;\n; $header .= Content-Transfer-Encoding: 7bit\n\n; $header .= $text\n; $header .= --$uid\n; $header .= Content-Type: $type; name=\$name\\n; $header .= Content-Tranfer-Encoding: base64\n; $header .= Content-Disposition: attachment; filename=\$name\\n\n; $header .= $content\n; $header .= --$uid--; mail($to, $subject, , $header); return true; } $to = [EMAIL PROTECTED]; $subject = test message; $text = This is just a test message from the MIS group; $from = [EMAIL PROTECTED]; $file = test.zip; $type = application/zip; sendmsg($to, $subject, $text, $from, $file, $type); print(message sent); ? And the email content was this: MIME- Version: 1.0 Content-Type: multipart/mixed; bountry=4C67EBB57A700797D865BFD2E30B7E01 --4C67EBB57A700797D865BFD2E30B7E01 Content-Type: text/plain Content-Transfer-Encoding: 7bit This is just a test message from the MIS group --4C67EBB57A700797D865BFD2E30B7E01 Content-Type: application/zip; name=test.zip Content-Tranfer-Encoding: base64 Content-Disposition: attachment; filename=test.zip dGhpcyBpcyBqdXN0IGEgdGVzdCB6aXAgZmlsZSBrdW5vISEhIQ== --4C67EBB57A700797D865BFD2E30B7E01-- Any idea, im this new in this type of program. Regards, Mikecarel -- 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] mail smtp class file
thank you for that but we need a customized mailer system for our development and im just new with this type of system, i just want to make sure that i really understand the program flow of the mailer script .This is just a start and the sample script is very simple to understand for a newbie like me. Any idea with my problem? You may want to look at something a little more robust. Try http://phpmailer.sourceforge.net Adding attachments and numerous other options is extremely easy. Quoting Michael P. Carel [EMAIL PROTECTED]: Hi there, I've tried using the SMTP class file that was given by PHPGalaxy.com previously in the mailing list, and have difficuties in using it. upon the execution of the script im recieving the mail but the content of the mail was the HEADER. Here's the script: ? function sendmsg($to, $subject, $text, $from, $file, $type) { $content = fread(fopen($file,r),filesize($file)); $content = chunk_split(base64_encode($content)); $uid = strtoupper(md5(uniqid(time(; $name = basename($file); $header = From: $from\nReply-To: $from\n; $header .= MIME- Version: 1.0\n; $header .= Content-Type: multipart/mixed; boundary=$uid\n; $header .= --$uid\n; $header .= Content-Type: text/plain;\n; $header .= Content-Transfer-Encoding: 7bit\n\n; $header .= $text\n; $header .= --$uid\n; $header .= Content-Type: $type; name=\$name\\n; $header .= Content-Tranfer-Encoding: base64\n; $header .= Content-Disposition: attachment; filename=\$name\\n\n; $header .= $content\n; $header .= --$uid--; mail($to, $subject, , $header); return true; } $to = [EMAIL PROTECTED]; $subject = test message; $text = This is just a test message from the MIS group; $from = [EMAIL PROTECTED]; $file = test.zip; $type = application/zip; sendmsg($to, $subject, $text, $from, $file, $type); print(message sent); ? And the email content was this: MIME- Version: 1.0 Content-Type: multipart/mixed; bountry=4C67EBB57A700797D865BFD2E30B7E01 --4C67EBB57A700797D865BFD2E30B7E01 Content-Type: text/plain Content-Transfer-Encoding: 7bit This is just a test message from the MIS group --4C67EBB57A700797D865BFD2E30B7E01 Content-Type: application/zip; name=test.zip Content-Tranfer-Encoding: base64 Content-Disposition: attachment; filename=test.zip dGhpcyBpcyBqdXN0IGEgdGVzdCB6aXAgZmlsZSBrdW5vISEhIQ== --4C67EBB57A700797D865BFD2E30B7E01-- Any idea, im this new in this type of program. Regards, Mikecarel -- 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] - This mail sent through IMP: http://horde.org/imp/ -- 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] installation
Hi there, Im just a new in PHP, please help me in installing PHP with mysql support using the RPM's format. It is much easier to install packages in Redhat6.2 in RPM's but it does not automatically install PHP mysql support. Please help me, i keep on trying installing this but it doesnt work. Mike