RE: [PHP] Store PHP Code in MySQL?

2001-06-20 Thread Ray Hilton
... Ray Hilton - [EMAIL PROTECTED] http://rayh.co.uk -Original Message- From: Joseph Koenig [mailto:[EMAIL PROTECTED]] Sent: 19 June 2001 23:23 To: [EMAIL PROTECTED] Subject: [PHP] Store PHP Code in MySQL? I've been playing a little bit trying to store some PHP code in MySQL and get

RE: [PHP] inserting a variable into a variable

2001-06-20 Thread Ray Hilton
What on earth are you trying to do? :) I'm not sure what your getting at, do you mean defining a variable based on another variables name? Perhaps try using an array, and specifying $rm($cat) Sorry, im not too sure what you mean Ray Hilton - [EMAIL PROTECTED] http://rayh.co.uk -Original

RE: [PHP] time

2001-06-20 Thread Ray Hilton
well, if its a server side script, the only clock available to it is the one on the server... Ray -Original Message- From: Jon Yaggie [mailto:[EMAIL PROTECTED]] Sent: 20 May 2001 15:51 To: [EMAIL PROTECTED] Subject: [PHP] time quickly can some one tell me if time() return server

RE: [PHP] General Coding Question

2001-06-21 Thread Ray Hilton
I don’t think that’s XHTML complient... Correct me if im wrong? -Original Message- From: Chris Lee [mailto:[EMAIL PROTECTED]] Sent: 20 June 2001 23:50 To: [EMAIL PROTECTED] Subject: Re: [PHP] General Coding Question im here to start a flamewar. dont use then. why not use ' ? echo

[PHP] Time Language Settings

2001-06-21 Thread Ray Hilton
How do I go arround getting php to output the time() function in a different language? I have tried the setlocale() function to no avail, perhaps my system doesn't have the appropriate locale to do this? If so, then how do install them on Red Hat 7? Cheers, Ray Hilton - [EMAIL PROTECTED] http

[PHP] Easy to copy MySQL table??

2001-06-25 Thread Ray Noel
Hi, Is there any easy way to copy a template mysql table to enable data to processed in batches? I would prefer to just copy a table rather than hard-code a table create query, if possible. Regards Ray -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] configuring with gd for TTF

2001-07-03 Thread Ray Hilton
was not built with TrueType font support in /home/ray/webroot/rayh/htdocs/gfx/image.php on line 48 Etc etc... Can anyone point me in the right direction? Am I right in thinking that you can either use gd's native ttf support or compile freetype into php seperatley? ./configure --with-xml

RE: [PHP] Shell scripting and PHP.

2001-07-03 Thread Ray Hilton
I think it's the same as perl, using the backtick operator, ie: $result = `uptime`; That's ` NOT ' -Original Message- From: Johan Vikerskog (ECS) [mailto:[EMAIL PROTECTED]] Sent: 03 July 2001 09:41 To: [EMAIL PROTECTED] Subject: [PHP] Shell scripting and PHP. Hi all! If i want to

RE: [PHP] configuring with gd for TTF

2001-07-03 Thread Ray Hilton
PROTECTED]] Sent: 03 July 2001 09:40 To: Ray Hilton; 'PHP Mailing List' Subject: RE: [PHP] configuring with gd for TTF Ok. Well, given mine works, I thought I would tell you what I have! My phpinfo says exactly the same: GD Support enabled GD Version 1.6.2 or higher FreeType Support enabled

RE: [PHP] configuring with gd for TTF

2001-07-03 Thread Ray Hilton
: Warning: libgd was not built with TrueType font support in /home/ray/webroot/rayh/htdocs/gfx/image.php on line 48 Every single time... Ray Hilton - [EMAIL PROTECTED] http://rayh.co.uk -Original Message- From: Brian White [mailto:[EMAIL PROTECTED]] Sent: 03 July 2001 09:08 To: Ray Hilton

RE: [PHP] Fatal Error: Call to undefined function: sybase_connect() in

2001-07-03 Thread Ray Hilton
Have you sompiled in sybase support? By defauly php doesn't compile with sybase functions, you must specifcally tell it too... -Original Message- From: nelo manuel [mailto:[EMAIL PROTECTED]] Sent: 03 July 2001 09:27 To: [EMAIL PROTECTED] Subject: [PHP] Fatal Error: Call to undefined

RE: [PHP] Fatal Error: Call to undefined function: sybase_connect() in

2001-07-03 Thread Ray Hilton
(according to mastering linux book, install and configuring php to access data from sybase) can some else pls help me :( From: Ray Hilton [EMAIL PROTECTED] To: 'nelo manuel' [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: [PHP] Fatal Error: Call to undefined function: sybase_connect() in Date: Tue

[PHP] RE: html in my form? bad things! help help help!

2001-07-15 Thread Ray Dow
Everything removed by strip_tags(), including a href=somelinkclick me/a (you original example) See the problem? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, 16 July 1979 3:46 PM To: Ray Dow; [EMAIL PROTECTED] Subject: Re: html in my form

RE: [PHP] RE: html in my form? bad things! help help help!

2001-07-16 Thread Ray Dow
what the possibilities are. Strip all tags and use a custom system is my advice -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, 16 July 1979 3:59 PM To: Ray Dow; [EMAIL PROTECTED] Subject: Re: [PHP] RE: html in my form? bad things! help help help

[PHP] PHP Security

2001-07-18 Thread Ray Parish
Hey All, For a virtual hosting stand point, which is better to run, the module or the cgi version of php? Can you also explain why one is better than the other..? Thanks Ray Parish, RHCE -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [PHP] How do you send stylized email?

2008-02-26 Thread Ray Hauge
certain wars to beef up the population again. http://en.wikipedia.org/wiki/Polygamy#Christianity I typically don't use wikipedia for sole sources, but everything else I could find was some religious site that was very biased. How's that for off topic? -- Ray Hauge www.primateapplications.com

Re: [PHP] How do you send stylized email?

2008-02-26 Thread Ray Hauge
because of this. I'm just glad there's a lot of sinners out there, or at least people who aren't that crazy :) -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Ray Hauge
the speaker ended up being in charge of maintaining that program, and it was a nightmare. To make a long story short. I generally do what's easiest. It's typically faster to develop and easier to maintain. Unnecessary complexity can start a snowball effect. -- Ray Hauge

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Ray Hauge
still remember some of the great discussions with Richard and others about OOP. Great times :) -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Database Abstraction Idea

2008-02-27 Thread Ray Hauge
have misses some sort of security issue. I only had a work week to finish the entire project. We only have MySQL databases, so I didn't need to abstract different types of databases or anything. Thanks, -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net

Re: [PHP] Database Abstraction Idea

2008-02-27 Thread Ray Hauge
Daniel Brown wrote: Should catch(e) really be catch(Exception $e) ? Something like that. I was paraphrasing, which seems weird, since I was looking at the code for the class description anyway :) Thanks for the info. -- Ray Hauge www.primateapplications.com -- PHP General Mailing

Re: [PHP] Are these Truthful Proof about PHP ??

2008-02-27 Thread Ray Hauge
/article/mephisto-ruby.shtml http://terrychay.com/blog/article/is-ruby-the-dog-and-php-the-dogfood.shtml -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Guidance

2008-02-27 Thread Ray Hauge
in really handy. I still use w3cschools to look up the property names I can't remember, but it's got a lot of great resources to point you in the right direction. http://www.w3schools.com/ -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net

Re: [PHP] Performance Problem

2008-02-27 Thread Ray Hauge
, but it was at least interesting for me to read the progression of events and learn a little bit myself :) -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sometimes I wonder why I even started programming...

2008-02-27 Thread Ray Hauge
will never run. Maybe I missed something though. -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sometimes I wonder why I even started programming...

2008-02-27 Thread Ray Hauge
. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424-9337 www.raoset.com [EMAIL PROTECTED] You could return an array with string keys. $array['table'] = 'asdf'; $array['authenticated'] = false; return $array; That's just one option, but it would work. -- Ray Hauge

[PHP] Test

2008-02-27 Thread Ray Hauge
I recently figured out how to use two SMTP accounts in Thunderbird. Hopefully this will help the list to not count me as spam so much (I was using my own host to send as gmail... doesn't work so well). Thanks, -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http

Re: [PHP] Functions not available when run as Scheduled Task?

2008-02-27 Thread Ray Hauge
the output of phpinfo(); or C:\php5\php.exe -v (I think that'll work on Windows). -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ZCE guidance needed

2008-02-28 Thread Ray Hauge
for me was just setting a date and stop procrastinating. The test was easier than I was expecting, though there were a few things that I didn't know on there. The tests were my best training though. -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net

Re: [PHP] ZCE guidance needed

2008-02-28 Thread Ray Hauge
. There were a lot of odd functions in there. I can't even remember the ones that I didn't even know existed. There were also questions about how to configure PHP, so look at the php.ini options as well. -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net

Re: [PHP] auto-wrap on posts

2008-02-28 Thread Ray Hauge
use IMAP forwarding). -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] auto-wrap on posts

2008-02-28 Thread Ray Hauge
Daniel Brown wrote: On Thu, Feb 28, 2008 at 10:25 AM, Ray Hauge [EMAIL PROTECTED] wrote: Since we're talking about post issues I'll include this. I don't seem to receive my own emails. Does the list not send them back to you? I haven't been able to find anything yet. I just like to see

Re: [PHP] echo returnArray()['a']; // workaround

2008-02-28 Thread Ray Hauge
, so I tried: // sillyFunc returns array(0=1, 1=2); ArrayClass::create(sillyFunc())-{0} I just tested it, and that works. If you leave off the curly braces and quotes, then you obviously get a parse error. The curly braces are necessary. -- Ray Hauge www.primateapplications.com -- PHP

Re: [PHP] Sometimes I wonder why I even started programming...

2008-02-28 Thread Ray Hauge
. I've tried Quanta as well, but I use Linux for my desktop. -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessions

2008-02-28 Thread Ray Hauge
that the information will be available tomorrow, next week, etc. You *could* increase the session cookie lifetime, but I wouldn't count on the data being available through a session, especially if they close their browser. -- Ray Hauge www.primateapplications.com -- PHP General Mailing List

Re: [PHP] auto-wrap on posts

2008-02-29 Thread Ray Hauge
or are the words in sentences where they belong ? thanks, -nathan Your emails come through to my gmail account as you first described, Nathan, ie, sometimes with just one word on a line, and just like the marc archives. thanks, ill just have to be careful editing from gmail then.. Ray, if I start

Re: [PHP] Weird Results from Curl

2008-02-29 Thread Ray Hauge
Wolf wrote: Ray Hauge [EMAIL PROTECTED] wrote: Wolf wrote: I'm curling a site to process some data, all well and good but the results are baffling... $result = curl_exec($ch); curl_close($ch); echo HR.gettype ($result); Of course that's not all the code, but the results contain

Re: [PHP] Weird Results from Curl

2008-02-29 Thread Ray Hauge
from curl? gettype should be returning a string, so I wouldn't think that gettype would be returning the numbers. Are you using the CURLOPT_RETURNTRANSFER option? If so, then $result would have the text of the site on success, and false on error. -- Ray Hauge www.primateapplications.com

Re: [PHP] What design patterns do you usually use?

2008-02-29 Thread Ray Hauge
! :) PS. Happy Friday!!! PPS. I'm hopped up on caffeine so ignore any stupid remarks. -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Anyone jump from Studio 5.5.x - Zend Eclipse?

2008-03-02 Thread Ray Hauge
Eclipse now since the day it came out. Next week I'm going to switch back to regular Zend Studio. It was nicer on the RAM and for the most part Just Worked(TM). That's my experience. I'd be interested to hear other people's experiences. -- Ray Hauge www.primateapplications.com -- PHP

Re: [PHP] Preserving URL after redirect?

2008-03-05 Thread Ray Hauge
about it anymore. -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] CVS Scripts

2008-03-06 Thread Ray Hauge
= escapeshellcmd('/path/to/module/configure'); $output = shell_exec($cmd); echo done!; ? Something like that anyway. That's overly simplified of course, but it should get you a start if you want to write it yourself. -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net

Re: [PHP] CVS Scripts

2008-03-06 Thread Ray Hauge
have been complicated. We didn't have the time to work on it. I think Trac is somewhat similar. PS. sorry for the thread hijack :) -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Transferring files between computers using php

2008-03-06 Thread Ray Hauge
connecting to B or C). rsync can work over SSH as well, and you could create a simple script to run rsync as often as you need. haha, I guess that's not exactly seconding NFS, more seconding not transferring files over HTTP. -- Ray Hauge www.primateapplications.com -- PHP General Mailing List

Re: [PHP] SMTP

2008-03-09 Thread Ray Hauge
SMTP server is MS Exchange, and it requires authentication. If that is the case, then search for php SMTP authentication: http://www.google.com/search?q=php+smtp+authenticationie=utf-8oe=utf-8aq=trls=org.mozilla:en-US:officialclient=firefox-a -- Ray Hauge www.primateapplications.com -- PHP

Re: [PHP] Unexcepted $this

2008-03-10 Thread Ray Hauge
' || $extension || 'png' || $extension == 'jpg') { // do something } That might help, but I would think that the way you had it would also work. Let us know what happens when you use the variable like I showed above. Thanks, -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http

Re: [PHP] Unexcepted $this

2008-03-10 Thread Ray Hauge
Philip Thompson wrote: On Mar 10, 2008, at 8:32 AM, Ray Hauge wrote: Murat BEŞER wrote: I can't under stood but PHP gaves me an error: UnExcepted $this for || $this-getFileExtension($file) == 'jpg' When I removed jpg extension check it's okay... PHP script runs well. What is the problem

Re: [PHP] CSV speed

2008-03-11 Thread Ray Hauge
imports of a million or more records from CSV files, and PHP is a lot slower than MySQL at importing them :) -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] setcookie

2008-03-12 Thread Ray Hauge
already been sent to the client (I ran into an included file having a space after ?) you can use http://us3.php.net/manual/en/function.headers-sent.php before you call setcookie(); If nothing else it'll help with diagnosing this error when you run into it again. -- Ray Hauge

Re: [PHP] A Quick Reminder....

2008-03-12 Thread Ray Hauge
because it keeps the conversation flow more in tact. GMail does a good job regardless of bottom or top posting though. -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Ray Hauge
he's funny. http://terrychay.com/blog/article/php-ruby-evil-good.shtml -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Ray Hauge
Ray Hauge wrote: Greg Donald wrote: On 3/12/08, Robert Cummings [EMAIL PROTECTED] wrote: Just because someone got a flashy new toy doesn't mean I want it. I've got better things to do than play with flashy toys for the mere purpose of playing with flashy toys. I like to use tools that get

Re: [PHP] What's wrong the __autoload()?

2008-03-13 Thread Ray Hauge
Greg Donald wrote: On 3/12/08, Ray Hauge [EMAIL PROTECTED] wrote: You come to a PHP mailing list to proclaim that RoR is better? No dumbass, I have already been here for a long time: This is my last post on this thread. It's obvious nobody is going to convince anyone else of their being

Re: [PHP] Unexcepted $this

2008-03-13 Thread Ray Hauge
if that's the case, though I'd think that your editor would display them as well. Usually an Unexpected means that you missed a parenthesis or curly brace, etc. -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] php and Ajax problem

2007-05-29 Thread Arpad Ray
Richard Kurth wrote: if(response.indexOf('|' != -1)) { Spot the misplaced bracket. if($_GET['takeaction']==delete){ $uid=$_GET['uid']; echo $uid; This is wide open to XSS attacks, you need to be just as careful with scripts intended to be accessed via javascript as you do with

Re: [PHP] Removing Spaces from Array Values

2007-07-03 Thread Arpad Ray
Jim Lucas wrote: foreach ( $someArray AS $k = $v ) { $someArray[$k] = preg_replace('!\s!', '', $v);// Removes white space ' ', \n, \r\n, etc... $someArray[$k] = str_replace(' ', '', $v);// Removes only spaces } str_replace() also operates on arrays so there's no need for

Re: [PHP] magic quotes

2007-07-17 Thread Arpad Ray
Phil Princely wrote: What do people on this list usually do with this kind of problem. To me, the .htaccess seems the easiest solution, since I don't have to change any scripts. I would certainly turn it off in php.ini or apache config files if possible (the .htaccess line should be php_flag

Re: [PHP] magic quotes

2007-07-17 Thread Arpad Ray
Phil Princely wrote: thanks for all the help. My code was wrong in the first post, I just copied it straight from the web. This one works: if (get_magic_quotes_gpc()) { stripslashes_array($_GET); stripslashes_array($_POST); stripslashes_array($_REQUEST);

Re: [PHP] regular expression and forbidden words

2007-07-17 Thread Arpad Ray
Nicolas Quirin wrote: Hi, i'm french, i'm using regular expressions in php in order to rewrite hyperlink tags in a specific way before apache output is beeing sent to client. Purpose is to replace href attribute of any A html tag by a javascript function calling an ajax loader. Currently I

Re: [PHP] repetition of tedious references

2007-07-18 Thread Arpad Ray
Olav Mørkrid wrote: consider the following statement: $language = isset($_SERVER[HTTP_ACCEPT_LANGUAGE]) $_SERVER[HTTP_ACCEPT_LANGUAGE] != ? $_SERVER[HTTP_ACCEPT_LANGUAGE] : *; when using strings in arrays that may be non-existing or empty, you have to repeat the reference *three* times,

Re: [PHP] repetition of tedious references

2007-07-19 Thread Arpad Ray
. It remains to be seen in the final version whether that notice is raised or that this operator exists at all Arpad it would be great if php 6 could have a solution for this. php is sweet when it's compact! On 18/07/07, Arpad Ray [EMAIL PROTECTED] wrote: You can use empty() to take one of them out

Re: [PHP] PHP preg_replace help

2007-09-17 Thread Arpad Ray
Jim Lucas wrote: Here is a nice little hack that I use. Little hack it is, nice it isn't. Ideally just turn off magic_quotes_gpc - you can do so in php.ini, or perhaps your web server configuration files (httpd.conf, .htaccess etc.). If you don't have access to any of the above then

Re: [PHP] Re: PHP preg_replace help

2007-09-18 Thread Arpad Ray
Apologies if you already received this message, I tried to send it earlier from my webmail but it doesn't seem to have worked. Al wrote: Just use stripslashes() on your submitted data and forget about testing for magic_quotes. It's good practice anyhow. \ is not legit text regardless.

Re: [PHP] $previous variable ?

2006-07-12 Thread Ray Hauge
serve no purpose at all. echo $previous; would be better. -- Like Music? http://l-i-e.com/artists.htm A bit off topic, but I hadn't heard about short tags being a bad idea. What reasons make short tags worse than the regular tags. Just curious. Ray -- Ray Hauge Programmer/Systems

Re: [PHP] $previous variable ?

2006-07-12 Thread Ray Hauge
. Thanks. -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2006-07-14 Thread Ray Hauge
myself. I had to not use --skip-networking. I use Slackware linux, so that was in the /etc/rc.d/rc.mysqld script. I don't know why that would make PHPMyAdmin not work though. HTH -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com

Re: [PHP] Return XML using PHP and Content-Type with UTF-8 breaks the UTF-8

2006-07-19 Thread Ray Hauge
=1.0 encoding=utf-8? HTH -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Basic PHP knowledge test

2006-07-19 Thread Ray Hauge
. I'd definitely be interested in that info though, because we're still looking, and I'm not totally happy with mine, as I didn't have a whole lot of time to write it. -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP

Re: [PHP] Basic PHP knowledge test

2006-07-19 Thread Ray Hauge
. I did basic questions to show they understood OOP, recursion, pass-by-reference, etc. I also had to be in the interview. There were a lot of odd moments of silence when people were looking at me to ask some questions. I just wanted him to do the quiz and that was pretty much it ;) -- Ray

Re: [PHP] Basic PHP knowledge test

2006-07-20 Thread Ray Hauge
at least the fundamentals of PHP security. -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session breaks when form data submitted

2006-07-20 Thread Ray Hauge
the PHPSESSID via a form. That leads to people being able to hijack sessions from file='php.ini' ; After this number of seconds, stored data will be seen as 'garbage' and ; cleaned up by the garbage collection process. session.gc_maxlifetime = 1440 /from HTH -- Ray Hauge Programmer/Systems

Re: [PHP] [Case Closed - Idiot Found Behind Keyboard] Re: [PHP] APC - problems with CLI odd return values from apc_clear_cache()

2006-07-29 Thread Ray Hauge
technically get you to call the script from the cli, but it should clear the webserver cache. Ray -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Retrieving response headers from an off-site page

2006-07-31 Thread Ray Hauge
;) HTH -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] writing to fild on another server

2006-08-04 Thread Ray Hauge
. -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cron running 'Hello world' script dies with Could not startup.

2006-08-08 Thread Ray Hauge
/executable, as well. I think he's asking if the php program is executable to you, the user. It is possible that it would only have execute for owner and group, not other. -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099

Re: [PHP] Cron running 'Hello world' script dies with Could not startup.

2006-08-08 Thread Ray Hauge
On Tuesday 08 August 2006 09:01, Ivo F.A.C. Fokkema wrote: On Tue, 08 Aug 2006 09:01:42 -0500, Ray Hauge wrote: On Tuesday 08 August 2006 08:47, Ivo F.A.C. Fokkema wrote: Does the user running the cron have permission to execute the php binary? Yes, the file's owner is me and it's my

Re: [PHP] Create an EUC-JP encoded file just for download, not to be kept on server

2006-08-09 Thread Ray Hauge
... specifically mb_convert_encoding: http://us2.php.net/manual/en/function.mb-convert-encoding.php HTH -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Best way to get PHP5

2006-08-09 Thread Ray Hauge
you want. This allows you to keep your install as minimal as possible for your needs, which increases the performance of PHP. -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net

[PHP] Compiling and iconv

2006-08-11 Thread Ray Hauge
all the iconv_* and iconv compiler flags etc. I can also vouch that using iconv on the command line works just fine. Thanks, -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net

[PHP] Problem Loading Extension

2006-08-11 Thread Ray Hauge
? Thanks, -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem Loading Extension

2006-08-11 Thread Ray Hauge
On Friday 11 August 2006 18:15, Michael B Allen wrote: On Fri, 11 Aug 2006 17:50:12 -0500 Ray Hauge [EMAIL PROTECTED] wrote: Hello everyone, I successfully compiled PHP 4.4.3 and PHP 5.1.4 today. I'm having a problem with loading the PDFLib extension (pdflib_php.so). It works fine

Re: [PHP] Compiling and iconv

2006-08-14 Thread Ray Hauge
On Sunday 13 August 2006 22:00, Chris wrote: Ray Hauge wrote: I use Slackware linux, and XMLRPC is not compiled in by default with my distro, so I'm compiling PHP myself. It's always been a simple enough task. First I get and install the required xmlrpc-epi libraries, and then I compile

[PHP] OT? XUL XML-RPC Client

2006-08-14 Thread Ray Hauge
with XUL? Thanks, -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Capturing System output

2006-08-15 Thread Ray Hauge
, but it should at least point you in the right direction. Just do a search for stderr and you should find some good info. -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net

Re: [PHP] Capturing System output

2006-08-15 Thread Ray Hauge
. -Brad Best example I found was: $shell_return = shell_exec($shell_command. 21); that should redirect stderr to stdout and thus you'd get both. -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List

Re: [PHP] Creating User Friendly URLS

2006-08-17 Thread Ray Hauge
to this. Mostly it's about how to force a download with a correct filename, but the last part of the article should get you pointed in the right direction if you don't want to use mod_rewrite with apache. http://richardlynch.blogspot.com/ -- Ray Hauge Programmer/Systems Administrator American

Re: [PHP] active directory and PHP

2006-08-17 Thread Ray Hauge
that would make it more secure. Kerberos is more secure than LDAP, and you _could_ set it up so that the browser forwards the ticket on to mod_kerb for authentication, thus not needing a sign-on other than to the domain. From my experiences that isn't exactly easy to set up though. -- Ray

Re: [PHP] Dhtml/javasript layer tips or software (0.T)

2006-08-18 Thread Ray Hauge
a library to do what you want though. It could be as simple as using a div, and then the buttons change text with innerHTML (as long as you're not expecting to use that text after the submit). -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com

Re: [PHP] Emphasizing first letter of string?

2006-08-22 Thread Arpad Ray
?php foreach ($strings as $key = $string) { $strings[$key] = 'em' . $string[0] . '/em' . substr($string, 1); } ? Micky Hulse wrote: Hi, It is getting late, and I do not think I am thinking clearly... What would be the best way to wrap em/em tag around the first letter of a string? I

Re: [PHP] Overriding core functions

2006-08-22 Thread Arpad Ray
You can't just define a new function with the same name. The only way I know to literally redefine the function is using the runkit extension - http://pecl.php.net/package/runkit That allows you to rename functions as well as moving them, so you could rename it to something like

Re: [PHP] Overriding core functions

2006-08-22 Thread Arpad Ray
Brad Bonkoski wrote: Some already good workarounds given for this question... BUT. Is it even possible to override a core function? Like I wrote a function called 'exit' and I got a parser error, which leads me to believe it is not even possible to override the core functions. Is this true of

Re: [PHP] switch it button

2006-08-23 Thread Arpad Ray
Ford, Mike wrote: How about something like: a href=?php echo $_SERVER['PHP_SELF'] ??session_switch=?php $_GET['session_switch']?0:1 ?switch/a Beware that PHP_SELF is injectable like several other $_SERVER variables, so you must at least encode it to prevent XSS attacks. Eg.

Re: [PHP] switch()

2006-08-29 Thread Ray Hauge
doing : if(something1){ // true 1 } if(something2){ // true2 } hope that helps. -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] switch()

2006-08-29 Thread Ray Hauge
On Tuesday 29 August 2006 13:44, Ray Hauge wrote: Using a switch like this is more equivalent of if(something){ // true } else { // false } Actually, it's more like an if/elseif/else (if you use default:) or if/elseif (without default:) -- Ray Hauge Programmer/Systems Administrator

Re: [PHP] switch()

2006-08-29 Thread Ray Hauge
On Tuesday 29 August 2006 14:12, [EMAIL PROTECTED] wrote: No. They are two if statements because they are indepedent. On Tuesday 29 August 2006 13:44, Ray Hauge wrote: Using a switch like this is more equivalent of if(something){ // true } else { // false } Actually, it's

Re: [PHP] Re: Format of Encrypted Password

2006-09-06 Thread Ray Hauge
new accounts are created (if there is code to do that). That should tell you what's going on. -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Newbie question about ?= ?

2006-09-09 Thread Ray Hauge
of templating system instead of adding the complexity of smarty or other templating systems (which are fine). Is it possible, or will it be possible, to use ?php=blah ? -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP

Re: [PHP] Ajax and PHP: XMLHTTP

2006-09-11 Thread Arpad Ray
Micky Hulse wrote: ?=$_SERVER['PHP_SELF']? Can I replace the above with some sort of XMLHTTP request? As noted, that's a javascript question. However your PHP code is vulnerable to XSS attacks; you should at least encode the output with htmlspecialchars() so that URLs like

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Ray Hauge
(necessarily) run under your user account. Other than that I have no idea. HTH -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Ray Hauge
own permissions for files. I'm not sure if they stuck with the BSD type file permissions or implemented their own. I'd check that first. If that doesn't work, what is the error that you get? Access Denied? -- Ray Hauge Programmer/Systems Administrator American Student Loan Services

<    1   2   3   4   5   6   7   8   9   >