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

 srand((double)microtime()*100);
 $anticache= md5(rand(0,999));

and then


echo IMG
src=\drawpic.php?arg1=blaharg2=blah.anticache=$anticache\ 
\n;

Since this addition, i have never had a problem with cache,

HTH

Todd.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




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.
- Original Message -
From: Martin Towell [EMAIL PROTECTED]
To: Php-General@Lists. Php. Net [EMAIL PROTECTED]
Sent: Friday, November 08, 2002 4:23 PM
Subject: [PHP] Quick question


 what is the technical difference between using

   else if

 and

   elseif

 ??

 Are they interpretted the same internally?

 --
 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] 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 string that will be
in a valid format for use with imagecreatefromstring.

Any help at all would be greatly appreciated.

Cheers,

Todd.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




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 Bluemel [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, 2 October 2002 10:35 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Re: inputbox?


 anybody???

 anyway to pop up an inputbox that will get a variable?  also, and yes / no
 or ok / cancel boxes I can make pop up?


 Jeff Bluemel [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  is there a way to for an input box to come up looking for a
 value?  I know
  there are a few ways I could resolve my current issue, but I
 would prefer
 to
  display an inputbox, and use that value in my query.
 
  basically I would do a $HTTP_SERVER_VARS['PHP_SELF'] as the action of a
  form, but then I would have to get a value to pass to the query.  this
 would
  be for prepaid phone cards.  if somebody selected to recharge
 then I would
  like an input box to be displayed asking the amount they would like to
  recharge.
 
  --
  Jeff Bluemel
 
 



 --
 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




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 oracle on another host


 Hi!

 I've been writing PHP scripts for a long time but never needed to get data
 from an Oracle database. Till now.

 Can somebody give me a hand? The Oracle database is running on another
 server.

 The information I have been given is:

 host (e.g.  somewhere.somewhere.com)
 username (e.g. USER_NAME)
 pw   (e.g. MY_PW)
 databse : PROD
 Function: F_CLAVE_SI_NO(loginnr)

 Basically what I need to do is contact this databsae, execute the function
 F_CLAVE_SI_NO($myloginnr), and get the results.

 The function F_CLAVE_SI_NO is a function from the Oractle database itself;
 it is no one written in PHP.

 Thank you for your help!

 Kind regards,


 Juan Antonio Ruiz Zwollo
 www.acalli.org






 --
 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




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 possible if you write an applet, otherwise, pretty much the only
thing you should be able to write to the hard drive is a cookie.

HTH

Todd.

 -Original Message-
 From: Diana Castillo [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, 29 September 2002 12:03 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] export data to text file

 8---


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




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 after parsing i want to redirect the user to the
home page.

header() doesn't work in this circumstance, what can I do else?

Greetings

Sascha



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




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 guys, just wondering if anyone could recomend a good editor
 that is based on windows.  Thanks, Bryan



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




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 Johnson [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, 21 September 2002 5:10 PM
 To: Chris Shiflett; Ramesh Nagendra Pillai
 Cc: [EMAIL PROTECTED]
 Subject: [PHP] question about taking post to session


 hello,

 how could i take all the variables in $_POST[] and move them to
 $_SESSION[]?

 example

 $_POST[name]=$_SESSION[name]


 Thanks in advance


 Randy



 --
 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] 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 appropriateness of LOC as a measurement, I
have chewed up a lot of time with discussion over this so I'm not going to
bite this time :)

Thanks,

Todd.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




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 (\n).
Since Microsoft Windows uses the sequence \r\n as a line terminator, your
heredoc may not work if you write your script in a Windows editor. However,
most programming editors provide a way to save your files with a UNIX line
terminator.
(http://www.php.net/manual/sv/printwn/language.types.string.php#language.typ
es.string.syntax.heredoc)

It doesnt matter whether you use EOD or EOT or any other (naming convention
compliant) identifier.

I hope this helps,

Todd.

 -Original Message-
 From: Voisine [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, 3 September 2002 3:10 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Re: unexpected T_SL


 Your lucky :) because I'm using the same version and I have this
 parse error.

 Erwin wrote:

  Voisine wrote:
   Hi,
  
   What is wrong witht his code? Parse error: parse error, unexpected
   T_SL in c:\program files\easyphp\www\tutorial\eod.php on line 2
  
   ?php
   $str = EOD
   Example of string
   spanning multiple lines
   using heredoc syntax.
   EOD;
   ?
 
  To be honest, there is nothing wrong. It works in version 4.2.2
 (at least,
  here it does) ;-))
 
  Grtz Erwin


 --
 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




Re: [PHP] SESSION ARRAY

2002-09-01 Thread Todd Pasley

Ooops, thats right. I should check over before i send i guess.

Sorry,

Todd

 $_SESSION is a predefined variable, session_start()
 session_register('BILLARRAY') should work though :)

 Keith Vance
 Vance Consulting LLC
 www.vanceconsulting.net
 (206) 355-2399

 Try my open source PHP 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,  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 PROTECTED]
  To: phplist [EMAIL PROTECTED]; [EMAIL PROTECTED]
  Sent: Friday, August 30, 2002 9:08 AM
  Subject: [PHP] SESSION ARRAY
 
 
   What is the proper syntax for storing an array in a session?
  
   is it $_SESSION[BILLARRAY]=$ARRAY?
  
  
   Randy
  
  
  
   --
   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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




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 tell me way this will work at the command line but will
 not work using PHP I also tried exec and system. from the command line
 it adds all the files and directors. But using the script below from
 PHP it creates an empty archive.
 
 shell_exec(cd /home/sites/www.directphp.net/ | tar --create --verbose
 --file=/home/sites/www.directphp.net/sitebackup/backup.192002.tar web);
 
   
 
 -- 
 Best regards,
  rdkurth  mailto:[EMAIL PROTECTED]
 
 
 -- 
 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




RE: [PHP] using shell_exec

2002-09-01 Thread Todd Pasley

Only just noticed this when I read my post...

Why do you want to use verbose?

If you want to capture the output for some reason, use this

exec(cd /change/to/dir; tar cvf /place/for/backup.tar files,
$capturedoutput);

otherwise drop the v (or --verbose) which will chew less resources.

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.


  -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 tell me way this will work at the command line but will
  not work using PHP I also tried exec and system. from the command line
  it adds all the files and directors. But using the script below from
  PHP it creates an empty archive.
 
  shell_exec(cd /home/sites/www.directphp.net/ | tar --create --verbose
  --file=/home/sites/www.directphp.net/sitebackup/backup.192002.tar web);
 
 
 
  --
  Best regards,
   rdkurth  mailto:[EMAIL PROTECTED]
 
 
  --
  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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




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: Madjid Nasiri [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, 31 August 2002 9:44 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Submit form from javascript code


 Hi all
 I need submit a form from javascript code. My code near this code:

 !-- My Code --
 form name=myform action=... method=POST
 input type=hidden name=id value=0
 /form
 script language=javascript
 function submitform(iId)
 {
   document.myform.elements['id'].value=iId;
   document.myform.submit();
   alert(foo); // This is code is dummy
   retrun false;
 }
 /script
 a href=... onMouseDown=submitform(1);Id One/abr
 a href=... onMouseDown=submitform(2);Id Two/abr
 
 a href=... onMouseDown=submitform(1000);Id 1000/abr
 !-- End My Code --

 If I remove alert() call in submitform function, this code noting
 work, but
 if i used alert() or confirm() function this code working, Why?
 How can i remove alert() function and my code work?

 Thanks for Answer

 Madjid Nasiri
 [EMAIL PROTECTED]
 http://www.kawacomputer.com




 --
 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] 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 
this in PHP?

By changing the useragent will this also resolve problems with javascript?, I'd like 
the target server to think that I can view/run it.

Thanks heaps,

Todd.



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 output from header


 i execute a system function which works great only prob is it breaks the
 header so what i need to know is how i can prevent the output from this
and
 append it to a variable, i allready tried appending to variable but still
 outputted
 Regards
 Mark



 --
 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] .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 the extension type very 
carefully before opening it, it is most likely a virus. 

We dont want something like this attacking inboxes clogging up an already very full 
mail list, along with all your freinds/contacts if you do run it.

Once again, I'm sure you guys are aware, but its better to be safe than sorry. There 
is a remote chance that it is not a virus, but i dont trust microsoft and i dont trust 
executable attachments.

Cheers, 

Todd.



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. Im sure
you can relate.

Todd.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Useragent and file [SOLN]

2002-08-30 Thread Todd Pasley

Hi

I found an alternative to using file to get web content.

using fsockopen you can specify a useragent as per rfc-something which
handles it all very very nicely.

Its also nicer that what I was using to post and is looking more likely to
store cookies/sessions... but ill get to that later :)

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 and file


 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 this in PHP?

 By changing the useragent will this also resolve problems with
 javascript?, I'd like the target server to think that I can view/run it.

 Thanks heaps,

 Todd.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




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 PROTECTED]
To: phplist [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, August 30, 2002 9:08 AM
Subject: [PHP] SESSION ARRAY


 What is the proper syntax for storing an array in a session?

 is it $_SESSION[BILLARRAY]=$ARRAY?


 Randy



 --
 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




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, $pagecontents));
}

For me, that takes all the links in $pagecontents and modifies the links for
a recorder I am building. You could do something simular with it, although
if you need the name, you might want...

$search '/a (.*?)href=(.*?)(.*?)(.*?)\/a/im';
And $4 would be your name.

I hope this helps.

Todd.


- Original Message -
From: Charles Fowler [EMAIL PROTECTED]
To: Justin French [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, August 30, 2002 10:14 AM
Subject: Re: [PHP] How can I strip the code from HTML pages to extract
thecontents of a HTML page.


 I was looking into stripping HTML files that contain alot of links. I
 was trying to avoid the manual way of data entry. The contents i need
 are the name of the link (plain text which sits out side the HTML code)
 and all the a href tags. I would like the a href  (ie.the hyperlink)
 tags to be displayed on the HTML output as plain text. All other HTML
 tags would be kept in place.

 The reason why I am doing this is that I am placing a link's name and
 the http:// link in to flat files, where they can be updated just by
 appending to them. The srcipt that I have does the rest.

 I have looked into the functions suggested but do find the concepts and
 use of the opperators to strip the HTML involved esoteric and tricky.

 ¬¬Chuck¬¬








 --
 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




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 multiple character by using  * or + or alternative
- having A-Za-Z instead of A-Fa-F

I hope this helps

Todd.

Note: I used /i to be non case dependant, maybe dropping it and having A-F
as well would be quicker.. not too sure.

- Original Message -
From: Adam Alkins [EMAIL PROTECTED]
To: PHP List [EMAIL PROTECTED]
Sent: Friday, August 30, 2002 3:19 PM
Subject: [PHP] Simple regexp


Hi,

I'm trying to do a simple regexp to validate if a whole string only contains
the numbers 0 to 9, Letters a - f and A - F and the character :

Why isn't ereg([a-zA-Z0-9:],$string) working?

Guidance appreciated.
--
Adam Alkins
http://www.rasadam.com
--



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[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/)
To unsubscribe, visit: http://www.php.net/unsub.php




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 working fine throughout
the entire site... just wondering.. is it actually inhibiting you from doing
anything?

todd.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




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 be
true.

Is there something im missing?

Todd

 What is the and or statement in php?

 I need this to see if the first statement is whatever, and or the second
 statement is whatever...

 if (!isset($PHP_AUTH_USER) and or blah($blah)) {}

 Thank you

 - vic

 __
 Post your free ad now! http://personals.yahoo.ca

 --
 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




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 - Fatal error: 


 Hello I get this error:
 
 Fatal error: Cannot redeclare class dmsql in
 /usr/local/apache/htdocs/dm/inc/sql.inc.php on line 4
 
 It happens when a user presses the back button, otherwise when the page
 is first loaded it works fine.
 
 Here's the file called with web browser
 
 include('class_dmsql.inc.php');
 include('class_b.inc.php');
 
 $r = new class_b
 
 Please note that class_b extends class dmsql,
 
 Can anyone help me ?
 
 Thanks
 
 
 -- 
 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