Re: [PHP] Graphics question

2002-11-07 Thread Todd Pasley
Jeez, this is simple. The browser is caching the image. There's no real way to fix that. There are some headers that may encourage the browser to not cache, but there is no sure way to control whether the users will have this setting overridden. I use

Re: [PHP] Quick question

2002-11-07 Thread Todd Pasley
Realistically, there is no difference. It is *slightly* quicker to parse, but thats about it. I think it was introduced to satisfy those that have used this type of syntax in other languages, like C and Perl (which users elsif). I usually use elseif as its a bit nicer looking (IMHO) Todd. -

[PHP] imagecreatefromstring

2002-10-01 Thread Todd Pasley
Hi, I asked a question similar to this earlier, but I thought it may have required simplification/rewording. According to the doco, imagecreatefromstring has the following declaration: resource imagecreatefromstring ( string image) Does anyone know how an image can be transformed into a

RE: [PHP] Re: inputbox?

2002-10-01 Thread Todd Pasley
What you seem to be looking for are the javascript functions, alert, confirm and/or prompt. for a billion examples see... http://www.google.com/search?num=20hl=enlr=ie=UTF-8oe=UTF-8newwindow=1; safe=offq=confirm+alert+promptbtnG=Google+Search Todd. -Original Message- From: Jeff

RE: [PHP] Connect to oracle on another host

2002-10-01 Thread Todd Pasley
Try looking at the following paper, it looks very good. http://conf.php.net/pres/slides/oci/paper.txt HTH Todd. -Original Message- From: Juan Antonio Ruiz Zwollo [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 2 October 2002 11:28 AM To: [EMAIL PROTECTED] Subject: [PHP] Connect to

RE: [PHP] export data to text file

2002-09-28 Thread Todd Pasley
Hi If what you mean is... you want to be able to write to a file on the browsers computer, then please let us know if you find a way. To my knowledge, there is not any intended way to do this... you wouldn't want any old website to be able to manipulate your hard drive would you? It might be

Re: [PHP] Redirection

2002-09-22 Thread Todd Pasley
I use meta http-equiv=refresh content=DELAY;url=http://place.to.redirect.to Todd. - Original Message - From: Sascha Braun [EMAIL PROTECTED] To: PHP Mailingliste [EMAIL PROTECTED] Sent: Monday, September 23, 2002 9:42 AM Subject: [PHP] Redirection Hi, I want to post a form and

RE: [PHP] Editor

2002-09-21 Thread Todd Pasley
You can get vi/vim for windows, without a doubt the best editor of all time if you can be bothered learning the commands. Todd. -Original Message- From: Bryan McLemore [mailto:[EMAIL PROTECTED]] Sent: Saturday, 21 September 2002 11:16 PM To: PHP GEN LIST Subject: [PHP] Editor Hi

RE: [PHP] question about taking post to session

2002-09-21 Thread Todd Pasley
Sure you can, however, 1) u prob. want $_SESSION['name'] = $_POST['name']; 2) remember that if you are calling this within the scope of a function you will have to use $GLOBALS to declare $name as a global before you utilise session_register. Todd. -Original Message- From: Randy

[PHP] LOC counters

2002-09-04 Thread Todd Pasley
Hi, Firstly, please resist the opportunity to flame I'm looking for a PHP (among other things) Line Of Code counter. Has anyone used any descent ones? I was thinking of writing one myself, but, if there are others available, I might as well save the time. There is much debate over the

RE: [PHP] Re: unexpected T_SL

2002-09-02 Thread Todd Pasley
Hiya, There are two reasons that I can pick up that you may be experiencing this area: 1) You are not using PHP4 or later 2) you are using windoze and. Probably the nastiest gotcha is that there may also not be a carriage return (\r) at the end of the line, only a form feed, AKA newline

Re: [PHP] SESSION ARRAY

2002-09-01 Thread Todd Pasley
authentication system, Rampart by visiting http://rampart.sourceforge.net/. Commercial support is available at, http://www.vanceconsulting.net/support/. On Fri, 30 Aug 2002, Todd Pasley wrote: What is the proper syntax for storing an array in a session? is it $_SESSION[BILLARRAY]=$ARRAY? Yep

RE: [PHP] using shell_exec

2002-09-01 Thread Todd Pasley
Use ; instead of | e.g. shell_exec(cd /change/to/dir; tar cvf /place/for/backup.tar files); Todd. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, 2 September 2002 9:40 AM To: php-general Subject: [PHP] using shell_exec Can somebody

RE: [PHP] using shell_exec

2002-09-01 Thread Todd Pasley
. Todd. -Original Message- From: Todd Pasley [mailto:[EMAIL PROTECTED]] Sent: Monday, 2 September 2002 1:32 PM To: Richard Kurth; php-general Subject: RE: [PHP] using shell_exec Use ; instead of | e.g. shell_exec(cd /change/to/dir; tar cvf /place/for/backup.tar files); Todd

RE: [PHP] Submit form from javascript code

2002-08-31 Thread Todd Pasley
Hi Instead of retrun false; im sure you meant return false; The reason its working with confirm and the like is because of their return code which is actually true. Try changing it to return true, im pretty sure that will fix it. Cheers, Todd. -Original Message- From:

[PHP] Useragent and file

2002-08-30 Thread Todd Pasley
Hi Im using file() to get the contents of a webpage. e.g // get a web page into an array $fcontents= file ($targeturl); However I dont know how to mimic a different useragent. Using LWP::UA (in perl) i can pretend to be iexplore6 running on win2k or anything i want.. Is there a way i can do

Re: [PHP] hide system output from header

2002-08-30 Thread Todd Pasley
You can use exec($command, $result); which will throw any stdout output into $result Im not sure if it works with stderr as well, you will have to try it :) Todd. - Original Message - From: Mark [EMAIL PROTECTED] To: Sent: Friday, August 30, 2002 7:06 PM Subject: [PHP] hide system

[PHP] .scr Attachments

2002-08-30 Thread Todd Pasley
Hi all, As I'm sure you are all aware (but this email is incase you are not), files with the extension .scr are executable on all windows platforms. Just now from someone on the list I have received two emails with .scr attachments. If you receive an attachment from this list, please check

RE: [PHP] OT - .scr Attachments

2002-08-30 Thread Todd Pasley
Hi If people are daft enough to be using M$ software AND they're daft enough to execute unsolicited executables then they deserve whatever they get. Yep I agree, although, I would prefer if people didnt then be email me again with already hundreds of emails a day... I dont need this as well.

RE: [PHP] Useragent and file [SOLN]

2002-08-30 Thread Todd Pasley
:) thanks to anyone who thought about replying :) Maybe this discovering might help someone else also, hence my post. Later, Todd. -Original Message- From: Todd Pasley [mailto:[EMAIL PROTECTED]] Sent: Friday, 30 August 2002 6:19 PM To: [EMAIL PROTECTED] Subject: [PHP] Useragent

Re: [PHP] SESSION ARRAY

2002-08-29 Thread Todd Pasley
What is the proper syntax for storing an array in a session? is it $_SESSION[BILLARRAY]=$ARRAY? Yep, providing youre using session_start() and session_register(_SESSION) you can assign any type of data, just like a regular hash. Todd. - Original Message - From: Randy Johnson [EMAIL

Re: [PHP] How can I strip the code from HTML pages to extract thecontents of a HTML page.

2002-08-29 Thread Todd Pasley
Hi Charles, Not sure exactly what you are after, but function displayLinks ($pagecontents) { $search = '/a (.*?)href=(.*?)(.*?)\/a/im'; $replace = 'a $1href=recordstep.php?clientid=$clientidtestid=$testidlink=$2$3/a'; return (preg_replace ($search, $replace,

Re: [PHP] Simple regexp

2002-08-29 Thread Todd Pasley
Hi, you would be better off with preg_match, as its a little quicker apparently. try: preg_match(/^[:0-9a-f]*$/i,$string) or change the * to a + to ensure $string is not null the main problems you had: - not ensuring that only those characters are found by using ^ and $ - not allowing

[PHP] Scheduling tasks

2002-08-28 Thread Todd Pasley
Hi, I'm trying to work out how to schedule tasks in php. I would like to use at but are having a few difficulties. Does anyone have any suggestions on an alternate way to schedule a command to run on the system via php. Thanks a lot, Todd. -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] PHPSESSID on entry page only

2002-08-28 Thread Todd Pasley
On a clients first visit to a site, the PHPSESSID gets written into the URL, but not on any additional requests. Has anyone had this problem? It wasn't happening before the upgrade. Running: Redhat 7.3 PHP 4.2.2 Apache 1.3.26 The same thing happens to me, however, sessions are

Re: [PHP] and or statement

2002-08-28 Thread Todd Pasley
Apologies if im not quite understanding this... but to me it reads you want... if ((X and Y) OR Y) . which mathematically is simply if (Y). If this is what u actually mean, then all u need is if (blah($blah)) because the value of the first predicate is going to have still depends on Y to

Re: [PHP] Class problem - Fatal error:

2002-08-28 Thread Todd Pasley
Fatal error: Cannot redeclare class dmsql in It looks like you are after include_once http://www.php.net/manual/en/function.include-once.php Todd - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 29, 2002 2:48 PM Subject: [PHP] Class problem -