[PHP] Database sessions and file sessions

2003-09-08 Thread CDitty
Can database sessions and file system sessions co-exist on the same server. I have 2 applications that use sessions. One uses the standard php sessions and the other uses sessions that are stored in the database. Neither of these can be changed. Can anyone offer any advice on this? Chris

Re: [PHP] How can I change ? to %3F

2003-08-14 Thread CDitty
DUH Thanks all. This is exactly what I was looking for. Couldn't remember the exact term of the chars though. Thanks again. Chris At 05:19 PM 8/5/2003, David Nicholson wrote: Hello, This is a reply to an e-mail that you wrote on Tue, 5 Aug 2003 at 23:16, lines prefixed by '>' were originall

[PHP] How can I change ? to %3F

2003-08-14 Thread CDitty
Is it possible to change the ?, :, & and / characters to their respective hex(?) values automatically? That is without having to use str_replace for each one? Anyone know how? Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reading a file from another server

2003-07-26 Thread CDitty
Have you tried downloading the file to your server and then read it from there? I do this at least 15 times a day with several different sites and I rarely have any problems. CDitty At 11:28 AM 7/26/2003, Thomas wrote: I know the url is good, cause I can go on to this domain and look at all

Re: [PHP] PHP CGI mode and command line variables

2003-07-24 Thread CDitty
That worked like a charm. Thanks Chris. I've added this to my snippet collection. :) At 12:02 AM 7/24/2003, Chris Shiflett wrote: --- CDitty <[EMAIL PROTECTED]> wrote: > Thanks man. That got rid of the error, however it is not using the > variable in the script. You have t

Re: [PHP] PHP CGI mode and command line variables

2003-07-23 Thread CDitty
Thanks man. That got rid of the error, however it is not using the variable in the script. I can't run this via wget or the browser since the importing files are rather large. Any other ideas? Chris At 11:33 PM 7/23/2003, Chris Shiflett wrote: --- CDitty <[EMAIL PROTECTED]> wrot

[PHP] PHP CGI mode and command line variables

2003-07-23 Thread CDitty
I have written a script that runs fine when I run it via the command line. However, when I tack on variables to the command line, I get an error. This works. php -q ./import.php This doesn't php -q ./import.php?feed=eastwood This is the error that it returns - Could not open input file: ./i

[PHP] php4_module is already loaded

2003-07-14 Thread CDitty
I just updated my 4.2.x to 4.3.2 and when I restart the apache, I get the error [warn] module php4_module is already loaded, skipping. Can anyone offer any suggestions? I searched the archives, but didn't see anything that would help. Apache/PHP seem to be running ok, but I would like to get

[PHP] Using TTF within an image

2003-07-03 Thread CDitty
Can someone please show me how to change the display font to a TTF in this code? I looked at the online manual under imageloadfont(), but I did not understand it enough. I have the MS TTFs installed on my server and they are working correctly. Thanks Chris $im = @imagecreate ($width,$heigh

Re: [PHP] Foreach loop with empty values

2003-06-13 Thread CDitty
Got it fixed. Never mind. Thanks At 10:49 PM 6/13/2003, CDitty wrote: I have a foreach loop in a while loop that retrieves information from my database. The foreach loop works fine if there is data in the database for that loop. But if nothing is found in the database, I get a "In

[PHP] Foreach loop with empty values

2003-06-13 Thread CDitty
I have a foreach loop in a while loop that retrieves information from my database. The foreach loop works fine if there is data in the database for that loop. But if nothing is found in the database, I get a "Invalid argument supplied" error. Can anyone suggest a fix for this? The foreach lo

[PHP] PHP and base32 encryption

2003-06-04 Thread CDitty
Someone has sent me a line of text that is base32 encrypted that I need to decrypt. Does anyone know of a php module or snippet that can decrypt this? I have searched on google and the php.net site, but was unable to find anything that can help. Thanks CDitty -- PHP General Mailing List

Re: [PHP] A cool PHP tool - Pusher

2003-03-28 Thread CDitty
At 11:24 PM 3/28/2003, Pete James wrote: BTW. After some re-factoring I may release the code to the community. I for one would really like this. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Can't connect to mysql

2003-03-28 Thread CDitty
function: mysql_connect() I am using MySQL 4.0.12. I installed MySQL from rpms and installed the following ones. client, devel, server, shared, embedded Anyone have any ideas? CDitty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Session Management

2003-03-23 Thread CDitty
Got it fixed. Turns out there are typos in the book Thanks Jason for the help. Chris At 08:50 AM 3/23/2003, CDitty wrote: Hello all. I am trying to figure out some session management that is in the O'reilly book - Web Database Applications. I am getting the following error - Error

[PHP] PHP Session Management

2003-03-23 Thread CDitty
Hello all. I am trying to figure out some session management that is in the O'reilly book - Web Database Applications. I am getting the following error - Error 1045 : Access denied for user: '[EMAIL PROTECTED]' (Using password: YES) Normally, I would think that this is because the userid and/

Re: [PHP] fopen and PHP 4.3.x

2003-03-10 Thread CDitty
At 09:42 PM 3/10/2003, Liam Gibbs wrote: > This is the code around line 30. > $local_file = $feed; > $fp = fopen($local_file, "r"); > > Anyone have any ideas? I have looked over the manual and the only thing I > could find similar to this is in the comments. Apache was restarted. I get the sa

[PHP] fopen and PHP 4.3.x

2003-03-10 Thread CDitty
Apache was restarted. CDitty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fgetcsv quit working......

2003-03-09 Thread CDitty
through some debug code around the area that is failing. Jason On Sun, 2003-03-09 at 18:50, CDitty wrote: > I have a customer who's webhost upgraded their server recently and a script > that was working fine quit working. The error they are getting is this > "fgetcsv(): supplie

[PHP] fgetcsv quit working......

2003-03-09 Thread CDitty
I have a customer who's webhost upgraded their server recently and a script that was working fine quit working. The error they are getting is this "fgetcsv(): supplied argument is not a valid stream resource". I don't know what they did with Apache, but as far as I know, nothing else changed.

[PHP] Fusebox & PHP 4.3.1 on AIX

2003-03-01 Thread CDitty
Has anyone successfully gotten fusebox for php to work on AIX w/ 4.3.1? The server I am using has globals turned off, but I have this in the index file, extract($_SERVER); extract($_GET); extract($_POST); extract($_COOKIE); but all I get is a blank screen. The code is fine because when it is r

[PHP] MySQL/PHP Associative Array Insert

2003-02-01 Thread CDitty
A co-worker is teaching me to move to the next level in php. I have started using associative arrays for my scripts, but I am having a problem using them to do an insert into MySQL. Can someone give me an example of how to do an insert to the database using these arrays? My array is this...$item['i

[PHP] Problem importing LARGE text file.....

2002-11-30 Thread CDitty
believe it could be some type of problem or limitation with php. Can anyone offer any advice on how to track this down? When I look at the core file, this is what it says..."core: ELF 32-bit LSB core file of 'php' (signal 11), Intel 80386, version 1" CDitty -- PHP Genera

Re: [PHP] Mail Headers problem.......

2002-05-24 Thread CDitty
I have looked at it and from what I understand, it should be working but it's not. At 12:18 PM 5/24/2002, you wrote: >Hi: > > > Per your request.. > >[... code snipped ...] >My request was really for you to examine your code, not to send the code >to me: > > > > >... I'm guessing the $Mime_V

Re: [PHP] Mail Headers problem.......

2002-05-24 Thread CDitty
); } if(IsSet($Mime_Version)){ $Mime_Version = "MIME-Version: $Mime_Version\r\n"; } if(IsSet($Content_Type)){ $Content_Type = "Content-type: $Content_Type\r\n"; } At 11:55 PM 5/23/2002, you wrote: >On Thu, May 23, 2002 at 10:19:51PM -0500, CDitty wrote: > >

RE: [PHP] Mail Headers problem.......

2002-05-23 Thread CDitty
Actually tried that earlier. No difference in the result. Chris At 10:48 PM 5/23/2002, you wrote: >dunno if this helps, but try using "\r\n" instead of just "\n" when you >create $headers > >-----Original Message- >From: CDitty [mailto:[EMAIL PROTECTED]]

[PHP] Mail Headers problem.......

2002-05-23 Thread CDitty
ascii"; format=flowed test 1234 Can anyone give me any tips? Thanks CDitty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Running php program when mail received

2002-05-19 Thread CDitty
it to ZendOptimiser.so and ran it again. No error, but still getting the code output. Chris At 11:17 PM 5/19/2002, you wrote: >On 05/20/2002 12:38 AM, Cditty wrote: >>Hello all. I am trying to write a small program that will run everytime >>an email is received at a certai

[PHP] Running php program when mail received

2002-05-19 Thread CDitty
Hello all. I am trying to write a small program that will run everytime an email is received at a certain mailbox on my sever. I had this running at one time, but for some reason, it will not run. I am not getting any errors and I can't figure out what is going on. Below is the code that I

[PHP] Array loop help

2002-05-09 Thread CDitty
Can someone offer any help with the code below? I have a cookie that is set and is separated by pipes (|). For each segment, I have to look up the id in a text file. I can loop through the cookie and get each segment, but when I open the text file and loop through it, it only matches the first seg

[PHP] Stripping characters.....

2002-04-27 Thread CDitty
]> or Chris Ditty <[EMAIL PROTECTED]> I need to be able to strip the quotes and everything between them and the < > signs from the first one and then the name and the < > signs from the second. Does anyone know how to do this quickly and easily? Thanks CDitty

Re: [PHP] Mass Mail {?!}

2002-04-21 Thread CDitty
How about something like this. This should be all you need. I used something similar to crash my work's email system by accident. :) Whoops. CDitty At 12:40 PM 4/22/2002 +1000, Liam MacKenzie wrote: >Hey all, >I was just wondering if someone's written a script that

[PHP] Search & replace text

2001-02-11 Thread CDitty
strongest point. Also, at what point should I start writing the file out? Wouldn't there be a permissions error if I was reading and writing at the same time? Thanks CDitty $oldemail = "[EMAIL PROTECTED]"; $newemail = "[EMAIL PROTECTED]"; $user = "cditty"; $f

Re: [PHP] Unexpected character in input: '\' (ASCII=92) state=1

2001-02-09 Thread CDitty
My apologies. I should have said what line the error was on. The problem lines was $text = "\n";. I tried an experiment and put a space before the \ and that got rid of the error. Go figure. Chris At 06:53 PM 2/9/01, Gobins, Debbie wrote: >You might try this, putting the escape character a

[PHP] Unexpected character in input: '\'

2001-02-09 Thread CDitty
; fwrite($fp, $text); fclose($fp); I am getting this error BEFORE it tries to write the file. Can anyone offer any ideas or solutions? Thanks CDitty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

[PHP] Date/Time from Unix timestamp

2001-01-24 Thread CDitty
give me an example? iewhat date/time does 977676902 come out to? Thanks CDitty -- 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] Array help needed

2001-01-18 Thread CDitty
Thanks. Didn't see that myself. Thanks for the help Chris At 10:28 AM 1/18/01, [EMAIL PROTECTED] wrote: >Addressed to: CDitty <[EMAIL PROTECTED]> > [EMAIL PROTECTED] > >** Reply to note from CDitty <[EMAIL PROTECTED]> Thu, 18 Jan 2001 >06:58:22

Re: SV: [PHP] Array help needed

2001-01-18 Thread CDitty
array_keys($count) as $s) >{ >echo "Number: " . $s. " count: " . $count[$s] . ""; >} > > > > > > -Opprinnelig melding- > > Fra: CDitty [mailto:[EMAIL PROTECTED]] > > Sendt: 18. januar 2001 12:40 > > Til: [EMAIL PROTECTE

[PHP] Array help needed

2001-01-18 Thread CDitty
Hello all, I have 6 numbers that are in an array. I need to know how many times each number shows up in that array. ex Numbers: 1,3,5,1,4,1 Output needed: (Not necessarily like this) 1 3 3 1 5 1 4 1 Can anyone help me with this? I looked in the manual, but couldn't find anything that