[PHP] Date functions differences between php 4 and 5

2007-03-22 Thread Paul Nowosielski
The code is a pretty bad hack (why use the echo statement once when you can use it 207 times). www:/srv/www/htdocs/admin # grep -ic "echo" calendar/calendar.html 207 Any knowledge of this would be greatly appreciated. Thank you, -- Paul Nowosielski Webmaster -- PHP General Mailing

[PHP] Sessions timing out, php5

2007-03-21 Thread Paul Nowosielski
Dear all, I'm having an issue where sessions timeout after inactivity. I have session.cache_expire set to 1440. But some users have reported sessions timing out after a couple hours. Is there another php.ini setting I need to address?? Thank you, -- Paul Nowosielski Webmaster --

Re: [PHP] Just upgraded to php 5, html emails showing up as text

2007-03-15 Thread Paul Nowosielski
That was the issue , thanks! On Thursday 15 March 2007 11:56, Erik Jones wrote: > Are you including a mime-type header in your mail calls? > > On Mar 15, 2007, at 1:45 PM, Robert Cummings wrote: > > On Thu, 2007-03-15 at 12:24 -0700, Paul Nowosielski wrote: > >> Dear

[PHP] Just upgraded to php 5, html emails showing up as text

2007-03-15 Thread Paul Nowosielski
Dear All, I've just upgraded our systems to apache2 and php5 and all our emails are showing up as text now and not html. Any ideas?? Thank you, -- Paul Nowosielski Webmaster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] dynamically generated rotating gif

2006-07-31 Thread Paul Nowosielski
Dear All, I'm trying to create a dynamically generated rotating gif. I want to add layers of text from a database to the image. Is this possible? If so , can someone give me some pointers or a link to a good class or tutorial please? Thank you, -- Paul Nowosielski Webmaster -- PHP Ge

Re: [PHP] Re: Stripping weird characters again...

2006-07-24 Thread Paul Nowosielski
It works, thank you! On Monday 24 July 2006 16:21, Paul Nowosielski wrote: > I understand I need to do a string replace. > > Should I do it like so? > > $search = array(chr(145),chr(146),chr(147),chr(148),chr(150),chr(151)); > $replace = array("'","'&q

Re: [PHP] Re: Stripping weird characters again...

2006-07-24 Thread Paul Nowosielski
I understand I need to do a string replace. Should I do it like so? $search = array(chr(145),chr(146),chr(147),chr(148),chr(150),chr(151)); $replace = array("'","'",'"','"','-','-'); Is this what you mean? Thank

[PHP] Stripping weird characters again...

2006-07-24 Thread Paul Nowosielski
ote. I have these from some of the data dumps. I can't figure out what exactly to strip. When I view the file in vi they appear like <92> <93> <94> (highlighted in blue like controll characters. Can someone point me in the right direction to purge this from my feed? Thank y

[PHP] Cleaning bad characters from var

2006-07-21 Thread Paul Nowosielski
"\xe2\x80\x9c", // left double quote "\xe2\x80\x9d", // right double quote "\xe2\x80\x94", // em dash "\xe2\x80\xa6" // elipses ); $fixedwordchars=array(

Re: [PHP] Zend Studio, phpMyAdmin, and mysql.sock

2006-07-14 Thread Paul Nowosielski
You could make a symbolic link from /tmp/ to whereever the real socket is. Then you won't have to change your other configurations. Thank you, -- Paul Nowosielski On Thursday 13 July 2006 22:53, Dave M G wrote: > PHP List, > > I am trying out Zend Studio for editing and de

[PHP] Message-ID showing up in html emails outlook

2006-07-12 Thread Paul Nowosielski
ED]"; $subject = "My Subject"; $body = $html; $to = $recip; $headers = 'From:[EMAIL PROTECTED] ' . "\r\n" . 'Reply-To:[EMAIL PROTECTED] ' . "\r\n" .'Content-type: text/html;' . "\r\n" . '

[PHP] Scrubbing URL's

2006-07-12 Thread Paul Nowosielski
CURL to check server response. Does any one know of a function or class that already does this? Your thoughts would be greatly appreciated. TIA! -- Paul Nowosielski Webmaster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Update or add?

2006-06-30 Thread Paul Nowosielski
Good advice , Thank you! -- Paul Nowosielski Webmaster On Friday 30 June 2006 15:45, Adam Zey wrote: > Paul Nowosielski wrote: > > On Friday 30 June 2006 14:37, Brian Dunning wrote: > >> I have a table where I want to update each record with today's date > >> a

Re: [PHP] Update or add?

2006-06-30 Thread Paul Nowosielski
uery() returns a resource on success, or FALSE on error. For other type of SQL statements, UPDATE, DELETE, DROP, etc, mysql_query() returns TRUE on success or FALSE on error. So if($result == 0){ do something; } -- Paul Nowosielski Webmaster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Weird Safari Stalling Issues Sessions?

2006-06-06 Thread Paul Nowosielski
On Tuesday 06 June 2006 12:26, tedd wrote: > At 11:55 AM -0600 6/6/06, Paul Nowosielski wrote: > >Dear All, > > > >I'm having a very frustrating issue w/ Apples Safari web browser. > >The browser will stall when I try and initiate a sessions on login . > &g

[PHP] Weird Safari Stalling Issues Sessions?

2006-06-06 Thread Paul Nowosielski
7;Pragma: no-cache'); to the header and still no luck. I've found many similar incidents on the WWW with no real solutions. Has anyone had similar issues and found a workaround for this problem? I believe this is a Safari issue and not a PHP problem. But I'm hoping someone

[PHP] suse php apache2 sessions problem

2006-04-04 Thread Paul Nowosielski
ions and frankly I'm dumbfounded as to why my phpinfo() is still not even listing sessions as a modules??! Any suggestions would be greatly appreciated. TIA! -- Paul Nowosielski -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Stripping control M character (^M)

2005-09-07 Thread Paul Nowosielski
ate|$country|$tdId\n"; // validate the string if(preg_match("/.*.|||.*.||.*.|.*.|.*.|.*.|.*.n\//", $line)){ // record is correct so write line to file fwrite($handle,$line); } } So ^M slips right by trim and my preg_match line. Any ideas?? TIA -- Paul Nowosielsk

[PHP] Sending post data from a script

2005-08-05 Thread Paul Nowosielski
be appreciated. TIA! -- Paul Nowosielski Webmaster CelebrityAccess.com 303.440.0666 ext:219 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] preg_replace single quote

2005-08-03 Thread Paul Nowosielski
Hi All, I'm trying to strip single quotes using preg_replace() with no luck. Can someone give me some advice on achieving this? TIA! -- Paul Nowosielski -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] removing chars from string

2005-06-27 Thread Paul Nowosielski
Hi, If a have a string thats 11 characters long how can I strip off the last two characters? TIA! Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] formatting paragraphs in to strings

2005-06-13 Thread Paul Nowosielski
iage returns. I tried using trim() and rtrim() with no luck. The data is still formatted exactly like it was inputed. Any ideas why this is happening and how I can format the text properly?? TIA! -- Paul Nowosielski Webmaster CelebrityAccess.com 303.440.0666 ext:219 -- PHP General Mai

[PHP] Building array ?

2005-05-18 Thread Paul Nowosielski
t;UID $row[user_id]"; echo "AUID $uidToAdmin[0]"; } So how can I continue adding to this array in the while loop? TIA -- Paul Nowosielski Webmaster CelebrityAccess.com 303.440.0666 ext:219 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] date counting/subtracting MySQL and PHP

2003-10-20 Thread Paul Nowosielski
Hello, Can some lend advice regarding date functions using mysql and php please? I have a table set up like so (DESCRIBE nuke.position) hiddenid int(5) PRI NULL auto_increment id varchar(40) contact_email varchar(64) title varchar(60) salary mediumtext disc

[PHP] validation library?

2003-06-25 Thread Paul Nowosielski
Can any point me to a nice GNU php validation library? Looking for something thats strips bad user input and validates email, tel etc etc... Paul Nowosielski -- "What good are computers? They can only give you answers." ~ Pablo Picasso -- PHP General Mailing List (http://www.ph

RE: [PHP] ereg_replace and quotation marks

2003-06-25 Thread Paul Nowosielski
PHP might take you tomorrow. > > > -----Original Message- > From: Paul Nowosielski [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2003 8:45 PM > To: [EMAIL PROTECTED] > Subject: [PHP] ereg_replace and quotation marks > > > I'm trying to strip quotat

[PHP] ereg_replace and quotation marks

2003-06-24 Thread Paul Nowosielski
I'm trying to strip quotation marks out of user from input but it doesn't seem to work correctly. $string=ereg_replace("\"","",$string); I get a \ mark after I run a quote through the form. When I want the quote turned to nothing. Any suggestions?? Paul -- PHP General Mailing List (http:/