[PHP] domxml?
I am trying to compile PHP 4.3RC2 and enable the domxml library but when I compile PHP it doesn't seem to work? ./configure --with-xml --with-domxml Any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 4.3.0 safe_mode
I am running Apache 1.3.27 with PHP loaded as a module and I have several sites on the server running. I want to enable safe_mode so that PHP can be more secure on the server so one user can't read another users files. However I notice that with safe_mode enabled it denies readfile function, but the include and require functions are allowed to read the file. Is there a way to get it so that any include or require statements will have the UID checked like readfile does? Any help would greatly be appreciated. Thanks Devin Atencio -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] exec, passthru calling /usr/local/bin/php4 problem
I am currently using Apache 1.3.27, PHP 4.3.2 and our server is configured to force all users to use PHP as a script by calling #!/usr/local/bin/php at the top of each script causing suexec to control scripts. I noticed a really strange thing from one of our users. I have tested the following and get error message about unable to fork ("/usr/local/bin/php") error. I created a simple test.php file that contains: #!/usr/local/bin/php The somefile.php contains: However when I run test.php from within a browser I get the following as the output: Content-type: text/html X-Powered-By: PHP/4.3.2 Content-type: text/html X-Powered-By: PHP/4.3.2 Content-type: text/html X-Powered-By: PHP/4.3.2 Content-type: text/html X-Powered-By: PHP/4.3.2 Content-type: text/html X-Powered-By: PHP/4.3.2 Content-type: text/html X-Powered-By: PHP/4.3.2 Warning: passthru(): Unable to fork [/home/u/utefans/public_html/ftml_templates/test.php] in /home/u/utefans/public_html/ftml_templates/test.php on line 4 Does anyone have any idea what is happening? It appears as if the PHP binary runs over and over until it finally freaks out and gives "unable to fork" error message. Any help would greatly be appreciated. Devin Atencio -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Generating Message-ID when sending messages
I am trying to make it so that my PHP script generates it's own Message-ID's when sending mail through Sendmail. For some reason it is not working as I hoped. I have tried the mail() command by using: mail("[EMAIL PROTECTED]","Subject","message","Message-ID: <[EMAIL PROTECTED]>"); That doesn't seem to work when I look at my e-mail client it seems to have it's own message-id for the e-mail i sent, can anyone help me on this? I am actually using the Mail Pear Class but unable to get that to work either. Devin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] MCrypt and Encrypting Data
Dear PHP Users, I am trying to take like an e-mail message and then encrypt it into a database and then be able to decrypt it and get the same result back. I have been unsuccessful in doing so. I have libmcrypt 2.5.6 installed, I also installed mhash 0.8.13 and have PHP compiled to support both of them. Can anyone give me some sample code on how to do this? It seems like once my form gets to long it gets weird and it doesn't encrypt or decrypt correctly. It seems ok if it is only 1 word. Any ideas? Devin -- 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] MCrypt and Encrypting Data (fwd)
Dear PHP Users, I am trying to take like an e-mail message and then encrypt it into a database and then be able to decrypt it and get the same result back. I have been unsuccessful in doing so. I have libmcrypt 2.5.6 installed, I also installed mhash 0.8.13 and have PHP compiled to support both of them. Can anyone give me some sample code on how to do this? It seems like once my form gets to long it gets weird and it doesn't encrypt or decrypt correctly. It seems ok if it is only 1 word. Any ideas? Devin -- 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] Create Online Test Program
Dear PHP Users, I am in the process of trying to create an Online Program that will give questions and possible answers then score the test. I was wondering if anyone has done this type of thing already and might be able to give me some pointers on what the best method of doing this might be? Devin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] XSLT - Sablotron
I am trying to find out a way I can pass a variable that is basically an XML document to xslt_process and make it all work. My script works if I have: $xp = xslt_create(); $result = xslt_process($xp, 'test.xml', 'test.xsl'); however, if I try to do: $xp = xslt_create(); $result = xslt_process($xp, $xmldata, 'test.xsl'); it won't work. $xmldata contains an XML document, but for some reason it errors out on me, any ideas on how to make this work? I basically have the XML data generated dynamically from a database and then I want to pass it to the XSLT to process the page. Any help would greatly be appreciated.
[PHP] mail problem Sendmail 8.12.4
I am trying to get PHP to send mail through my FreeBSD machine and my machine is running Sendmail 8.12.4, and I have the path to sendmail in my /usr/local/lib/php.ini. I am using PHP 4.2.3 but it fails to send mail. My /var/log/maillog shows the attempt but nothing happens: Oct 8 11:12:18 stardust sendmail[84142]: g98HCIsQ084142: from=nobody, size=331, class=0, nrcpts=0, msgid=<[EMAIL PROTECTED]>, relay=nobody@localhost Any ideas about what could be going on here? Devin Atencio -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail problem Sendmail 8.12.4
Yes I do have -t -i at the end of the path but it still doesn't work. Any other ideas? On Tue, 2002-10-08 at 11:17, Adam Voigt wrote: > In your sendmail path, do you have -t -i appended to the path? > Like: /usr/bin/sendmail -t -i > > Adam Voigt > [EMAIL PROTECTED] > > On Tue, 2002-10-08 at 13:15, Devin Atencio wrote: > > > > I am trying to get PHP to send mail through my FreeBSD machine > > and my machine is running Sendmail 8.12.4, and I have the path > > to sendmail in my /usr/local/lib/php.ini. I am using PHP 4.2.3 > > but it fails to send mail. My /var/log/maillog shows the attempt > > but nothing happens: > > > > Oct 8 11:12:18 stardust sendmail[84142]: g98HCIsQ084142: from=nobody, > > size=331, class=0, nrcpts=0, > > msgid=<[EMAIL PROTECTED]>, > > relay=nobody@localhost > > > > Any ideas about what could be going on here? > > > > Devin Atencio > > > > > > > > > > > > -- > > 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 Chat Program?
Dear PHP Users, I have a client who currently has a website setup with iChat which is several years old and we are currently having problems with it. I need to find a PHP Chat program that will be very easy and simple. I just wanted to see if anyone here has used a program and really likes it and can recomment it ? Devin Atencio -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Floating point exception (8)
Dear PHP, I am not sure if this is the mailinglist I need to address but I recently installed Apache 1.3.26 (Unix) PHP/4.2.1 mod_perl/1.27 AuthMySQL/2.20 mod_ssl/2.8.9 OpenSSL/0.9.6a, running on FreeBSD 4.3-STABLE. I notice that in my error logs for Apache I see the following line every few seconds. [Wed Jun 26 16:59:00 2002] [notice] child pid 85595 exit signal Floating point exception (8) Is there a fix for this? Devin Atencio -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php script
I have a PHP Script that runs in cron and does some database searches. Every now and then I notice that my FreeBSD box bitches about the following: chsh: updating the database... chsh: done msql: not found that is coming from my script. My script doesn't do anything with chsh so not sure why it's even showing anything with that? Any ideas? /'^'\ ( o o ) --oOOO--(_)--OOOo Devin Atencio ArosNet Systems Administration .oooO EMail: [EMAIL PROTECTED] ( ) Oooo. \ (( )- \_)) / (_/ -- 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] PHP 4.0.4pl1 as CGI
I am trying to compile PHP 4.0.4pl1 as a CGI on my FreeBSD 3.4-STABLE box and I seem to be having problems for some reason. My configure line reads: /'^'\ ( o o ) --oOOO--(_)--OOOo Devin Atencio ArosNet Systems Administration .oooO EMail: [EMAIL PROTECTED] ( ) Oooo. \ (( )- \_)) / (_/ -- 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] PHP 4.0.4pl1 as CGI
I am trying to get PHP 4.0.4pl1 to run on my FreeBSD 3.4-STABLE box and every time I run the binary file and do "./php -v" it core dumps and gives me "Floating Point Exception" error. It does this as well on my FreeBSD 3.5-STABLE boxes. I tried 3 machines and the same thing happens on all 3 of them. My configure line reads: ./configure --with-mysql --disable-debug --enable-trans-sid --with-ftp --wit h-gd=/usr/local --enable-discard-path Anyone have any Idea why It might be doing this. I noticed this started since 4.0.4, release. I got 4.0.3 to compile as CGI just fine but not since then. /'^'\ ( o o ) --oOOO--(_)--OOOo Devin Atencio ArosNet Systems Administration .oooO EMail: [EMAIL PROTECTED] ( ) Oooo. \ (( )- \_)) / (_/ -- 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] PHP4 CGI Problem
I am running PHP 4.0.4pl1 as a CGI and I have a PHP file that is something like this: #!/usr/local/bin/php4 but for some reason it doesn't return anything in the browser, but when I run the php file from unix it works just fine, any ideas? /'^'\ ( o o ) --oOOO--(_)--OOOo Devin Atencio ArosNet Systems Administration .oooO EMail: [EMAIL PROTECTED] ( ) Oooo. \ (( )- \_)) / (_/ -- 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] Finding Duplicate Numbers?
I have a SQL Table that has over 1,000 records and I was wanting to write a script that would find duplicate phone numbers and then list the duplicate phone numbers. I have been trying to think on how to do this but I can't think of a way. Can someone please help me on some code I could write to do this? Thanks in advance. /'^'\ ( o o ) --oOOO--(_)--OOOo Devin Atencio ArosNet Systems Administration .oooO EMail: [EMAIL PROTECTED] ( ) Oooo. \ (( )- \_)) / (_/ -- 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] PHP 4.0.5 & Apache 2.0
I was wondering if anyone has gotten Apache 2.0 Beta to install with DSO Support and got PHP 4.0.5 to compile as a DSO using Apache 2.0? I am using FreeBSD 4.3 and can't seem to get it to work for the life of me. /'^'\ ( o o ) --oOOO--(_)--OOOo Devin Atencio ArosNet Systems Administration .oooO EMail: [EMAIL PROTECTED] ( ) Oooo. \ (( )- \_)) / (_/ -- 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] Encoding Code
I have mcrypt installed and I would like to encrypt Like say a block of code then insert it into a database. It looks like when I encrypt more than 1 word it seems To get weird on me and doesn't encrypt or decrypt Correctly. Does anyone know how I can encrypt like a paragraph And then beable to have it decrypt the entire thing Correctly? __\/__ . / ^ _ \ . |\| (o)(o) |/| #.OOOo--oo--oOOO.---# # # # Devin Atencio [EMAIL PROTECTED] # # Sys Admin Dept # #_Oooo._# .oooO ( ) ( )) / \ ((_/ \_) -- 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] PHP Errors?
Dear PHP Group, I noticed that recently when one of my PHP scripts has a problem that it doesn't display to the browser screen any more the 'parse error near line 5' or whatever to the screen it just comes up with a blank page. I am using PHP 4.1.1 and I didn't know if something changed that I was unaware of to why the webpages no longer show the error message? __\/__ . / ^ _ \ . |\| (o)(o) |/| #.OOOo--oo--oOOO.---# # # # Devin Atencio [EMAIL PROTECTED] # # Sys Admin Dept # #_Oooo._# .oooO ( ) ( )) / \ ((_/ \_) -- 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] Reading File into Array and Searching
Dear Users, I basically want to do the following. I have file that contains everyone that logs into our mail server a day and then I want to basically load that file into an array and then search the array to find out how many times that person logged in and then take the last login and capture that information from the file. I have tried doing something like this but it doesn't seem to work: $fcontents = file("/tmp/popper.test"); while (list ($line_num, $line) = each ($fcontents)) { $new_array[$line_num] = $line; } $key = array_search("wasatch.com",$new_array); print count($new_array)." matches found.\n"; Can anyone shed some light to help me? I'm using PHP 4.1.0 :) -- 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] Encoding/Decoding
Dear PHP Users, I was wanting some input on your ideas. I want to be able to encrypt data and then store it into a database and then decrypt the information and display it when I need the data. I have played around with a few things from the PHP website but have problems with a few things. Does anyone currently have a kewl encode/decode function that they could send me to look at? Any help would be appreciated. __\/__ . / ^ _ \ . |\| (o)(o) |/| #.OOOo--oo--oOOO.---# # # # Devin Atencio [EMAIL PROTECTED] # # Sys Admin Dept # #_Oooo._# .oooO ( ) ( )) / \ ((_/ \_) -- 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] Imap-uw Horde::IMP
I am currently running an old version of imap v4 from FreeBSD 4.1, and I was going to install the latest 2001c library onto my computer. I realize that after installing the library i should recompile PHP, but is there any problems that anyone knows that will affect anything by doing this upgrade?
[PHP] Reading PHP Session Files?
I have a program that saves session information into the database. It saves the session info much like the PHP4 session files. I need to allow my script to pull the session info out of the database then update one of the fields and then write back out the entire session string back to the database, how can i do this? The session info in the database looks like this: a:1:{i:0;a:7:{s:2:"id";s:16:"Default identity";s:8:"fullname";s:13:"Devin Atencio";s:9:"from_addr";s:0:"";s:12:"replyto_addr";s:0:"";s:9:"signature";s:0:"";s:10:"sig_dashes";i:0;s:9:"sig_first";i:0;}}
[PHP] Sessions and transferring between sessions?
I was wondering if I had a session going under a non-ssl and then have the URL go to a secure session, the session Id changes, is there a way to keep the same session id so i don't loose any data in the non-ssl session? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Sessions / Serialized Data
If i have a session going with PHP4 and I want to basically pull the entire serialized data and then insert it into the database is there a variable that contains the serialized data or would I have to just basically read the /tmp/sess_sessid file and then save that into the database? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Reading Session File from /tmp directory
I am trying to read a session file from the /tmp directory then restore the PHP variables from this but I can't get it to work, i'm doing the following: $acontents = file("/tmp/sess_$sessid"); $data = $acontents[0]; unserialize($data); $sessid is a valid session id, but unserialize doesn't give me the values for $hostname, $username, etc? Any help? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Getting All Variables?
Is there an easy way in PHP to have it display to screen all the variables that it has in memory? So i can see what variables there is and what they are set to? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Regular Expressions
I need to check a variable to see if the format fits one of the following: [EMAIL PROTECTED] or *@domain.com or *@*.domain.com How can I do this with regex? Any help would be greatly appreciated. Devin Atencio -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Formatting Time
I want to a kewl script that will format time from seconds. I have a script that returns the number of seconds a person has been an employee and I want to format it in human readable format like: 1 year 6 months 14 days, etc. Any help would be appreciated it.
[PHP] Emulating POST ?
I need to somehow write a PHP Script that will POST XML type stuff to UPS like this: TEST262223144CAT testUser testPW Example 1 1.0001 Track activity 1Z12345E1512345676 How could I do this? Any help would be greatly appreciated? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Talking XML over SSL with PHP?
I am trying to write a program that will talk to UPS. It appears that the requirements is that i must talk SSL and then submit XML type documents as a POST. Would it be easy in PHP to talk SSL via Socket Layer? Any help would be appreciated. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Block IP Script?
I was wondering If I made a database to store a list of IP CIDR in a database to block, how I could take an IP of a customer coming in and find a quick way if it matches a blocked IP in the database? For instance, in the database I would store something like this: 208.219.20.0/24 Then if someone came in on 208.219.20.22, it would know that the entire class C was blocked. Is there an easy way to deal with this type of thing in PHP/MySQL? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Incrementing number by .1 or substracting .1
Dear PHP Users, I am trying to figure out how to write a script to increase a number by .1 or decrease a number by .1 but the number needs to be in the syntax of x.x. For instance the counting of 5.0 to 6.0 would go: 5.1,5.2,5.3,5.4,5.5,5.6,5.7,5.8,5.9,6.0 or vise versa for subtract. How could I do this? Any help would greatly be appreciated. Devin Atencio -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Apache/PHP4 Question
I have a Server Running Apache 1.3.14 and it has PHP4 running as a module. For our customers we require that they use .cgi for all of their scripts and so if a user wants to run a php4 script on our server they use www.blah.com/myphpfile.cgi with of course the first line being #!/usr/local/bin/php4, then our server runs the php4 script as the user rather than running as the server username. I noticed a security whole if a customer stuck a .htaccess file in the Directory and then added the following, it would allow them to stick .php files in their home directory and have it run as the server and be parsed automatically. Is there a way to make it so that they can't do this and me not have to disable the AllowOverride FileInfo, cause right now I have to disable that feature cause of the security problem that it allowed to happen. Anyone have any idea of what I can do? /'^'\ ( o o ) --oOOO--(_)--OOOo Devin Atencio ArosNet Systems Administration .oooO EMail: [EMAIL PROTECTED] ( ) Oooo. \ (( )- \_)) / (_/
[PHP] Back/Forward
I have a page that brings up the info on a rock, I wanted to add the functionality of doing like a and option to go thru all the rocks in my database. I can't figure out how to exactly do this, could someone give me some help? -- 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] SWF and PHP 4.0.6
I am trying to get SWF installed into PHP for a customer and I am having some problems. I downloaded the file dist.99.freebsd.tar.Z and uncompressed the file. Then reading the page on swf on the PHP.net website I did as one user suggested and copied the libswf.a into the /usr/local/lib and then copied swf.h into /usr/local/include and then compiled php with ./configure --with-swf=/usr/local and then it bombed on the compiling of PHP doing. /bin/sh /home/d/dreamboy/php-4.0.6/libtool --silent --mode=link gcc -I. -I/home/d/dreamboy/php-4.0.6/ -I/home/d/dreamboy/php-4.0.6/main -I/home/d/dreamboy/php-4.0.6 -I/home/d/dreamboy/php-4.0.6/Zend -I/usr/local/include -I/home/d/dreamboy/php-4.0.6/ext/mysql/libmysql -I/home/d/dreamboy/php-4.0.6/ext/xml/expat/xmltok -I/home/d/dreamboy/php-4.0.6/ext/xml/expat/xmlparse -I/home/d/dreamboy/php-4.0.6/TSRM -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2 -o php -export-dynamic stub.lo libphp4.la .libs/libphp4.a(swf.o): In function `php_if_swf_openfile': /home/d/dreamboy/php-4.0.6/ext/swf/swf.c(.text+0x7ef): undefined reference to `swf_openfile' .libs/libphp4.a(swf.o): In function `php_if_swf_closefile': /home/d/dreamboy/php-4.0.6/ext/swf/swf.c:236: undefined reference to `swf_closefile' .libs/libphp4.a(swf.o): In function `php_if_swf_labelframe': /home/d/dreamboy/php-4.0.6/ext/swf/swf.c(.text+0x970): undefined reference to `swf_labelframe' ... cut because of length ... Is there a better way to do this? Is there a better library to use for Flash with PHP? Any suggestions would be appreciated?
[PHP] MySQL Ability
I would like to begin coding a online website creation tool for clients of my small web design firm, and I'd like to use MySQL for the backend. I only have one question - is MySQL fast enough and robust enough to handle large amounts of data? For example entire pages of text, etc. Thanks for any help, Devin -- 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]