[PHP] Re: session.cookie_domain

2003-09-01 Thread Tom Percival
Diana I'm pretty sure that if you use: ini_set("session.cookie_domain","interhotel.com"); (i.e. no dot before the domain) then that should work tommy "Diana Castillo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > I am using > ini_set("session.cookie_domain",".interhotel.com"

Re: [PHP] function returning array

2003-09-07 Thread Tom Rogers
That should work what do you get with this: $array = getData(); print_r($array); -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] function returning array

2003-09-07 Thread Tom Rogers
inclHeader); L> $header=$xls->header; L> $data = $xls->getData(); L> $xls->close(); L> unset($xls); Well from what is there that should work...very strange does print_r show an empty array or nothing? is $theArray created in the getData() function or is part of the clas

Re: [PHP] Single Quotes vs Double Quotes

2003-09-08 Thread Tom Rogers
So if you don't need it to do $val substitution or "\n" type stuff use single quotes. You can always use the dot operator (.) to mix quotes and variables like this: echo ''."\n"; -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dynamic Multi Dimensional Arrays

2003-09-09 Thread Tom Rogers
ork. Is there any way I can have "objects" saved in BP> sessions? BP> Bobby you would have to give $user another key value $options = array('income'=>10000.'age'=>25); $HTTP_SESSION_VARS[$user] = $options; $HTTP_SESSION_VARS[$user]['status'] = 'registered'; also in these cases print_r($HTTP_SESSION_VARS[$user]) can be your friend. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] argg - new install of php 4.3.3 on iis/w2k - post variables are empty

2003-09-09 Thread Tom H
, but as yet I'm unable to track it down. Thanks in advance for any pointers on fixing this one!! Cheers Tom H -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Integrating an Applet with PHP

2003-09-11 Thread Tom Rogers
ditor/ekit.php >> >>Todd >> >> What I do in a similar situation is to pass the data in a hidden field and then pass that to the java applet. As it is html you will be passing you have to use rawurlencode($data) in the php script In the html part .. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Integrating an Applet with PHP

2003-09-12 Thread Tom Rogers
nge the contents :) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Calling a function.

2003-09-12 Thread Tom Rogers
$function(); >> >> Better still: >> >> $functon(); // [sic] CJWH> LOL... No, you don't have to worry about that. Isn't PHP smart enough to CJWH> know what I mean?? CJWH> ---John Holmes... I think the ini file has enable_smart_typist set to on by default, causes me all types of hassles :) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Text into a url

2003-09-13 Thread Tom Wollaston
Hi I am havening a problem retrieving url from a mysql database. I have the url's stored as text and am using the following code to retrieve them $query = "SELECT name,url FROM clubs WHERE url>'' ORDER BY name"; $result = @mysql_query($query) or die ("Query failed"); if (mysql_num_rows($resul

Re: [PHP] change PHP include directory

2003-09-13 Thread Tom Rogers
path - but my next job (which is already committed to this same TT> host) is fairly large and will be a necessity for the change to occur. TT> Thanks TT> -Tim You can do this at the top of each page if all else fails ini_set('include_path','new_include_path:'.ini_get(&#

[PHP] win32 php on win2000 does not seem to be searching its own C:\php\dlls folder???

2003-09-16 Thread Tom H
Hi, Im using php 4.3.3 on win 2000 server, and ive enabled extensions like so; extension=php_gd2.dll extension=php_gettext.dll and set the extension_dir to C:\php\extensions and php loads the gd2 library ok, it just fails to open the gettext dll. with a "PHP Warning: Unknown(): Unable to load dyna

Re[2]: [PHP] Control Structure problem

2003-09-16 Thread Tom Rogers
ething EL> } EL> it doesn't do: EL> if (($var === 'TEST-1') || ($var === 'TEST-1') || ($var === 'TEST-1')) EL> { EL> do something EL> } You can do it this way I think :) switch (true) { case ($va

Re: [PHP] MySQL timestamp to desired date function

2003-09-17 Thread Tom Rogers
echo ""; CA> echo $date2; CA> echo ""; CA> echo ""; CA> } CA> How can I do this and make it work? CA> Thanks in advanced, CA> Cesar Aracena CA> www.icaam.com.ar strtotime() retur

Re[2]: [PHP] MySQL timestamp to desired date function

2003-09-17 Thread Tom Rogers
Hi, Thursday, September 18, 2003, 2:53:53 PM, you wrote: CA> Thanks Tom, but using only the strtotime() and later the date() CA> functions, the page throus the following error: CA> Warning: unexpected error in date() in e:\wwwroot\videoteca\index.php on CA> line 52 CA> Now my

[PHP] include not returning true under zend debugger - possible bug?

2003-09-19 Thread Tom H
Hi, if I have a statement like this; $success = @include "somefile.inc"; under normally runnning in win2000 php 4.3.3 $success is true if the file somefile.inc exists, but when run under the server debugger, $success is false, unless somefile.inc has a return statement such as; return 1; in i

Re: [PHP] Brain cramp with arrays

2003-09-19 Thread Tom Rogers
content'=>'The username that you choose must'), 1 => array( 'title' =>'password', 'content'=>'The password that you choose must)); Then it is easy to navigate as the next and previous will always be numerical keys -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File Upload Issues

2003-09-20 Thread Tom Rogers
echo "File Name: " . $_FILES['userfile']['name'] . ""; SK> echo "File Type: " . $_FILES['userfile']['type'] . ""; SK> output: SK> Temp Name: SK> File Name: news.pdf SK> File Type: SK> Shad Kaske what do you get in $_FILES['userfile']['error'] It might give you a clue -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] session_start() || shell access problem......

2003-09-21 Thread Tom Rogers
;> >> >>>My eyes are completely fried -- anyone feel like saving my vision? >> >> >> >>This often is difficult to detect when there's is implicit output >> >>outside of the > >>script and see if there is any whitespace or newlines preceding the tag. >> >> >> >>HTH, >> >>Rob. >> >>-- >> >>.. >> >>| InterJinn Application Framework - http://www.interjinn.com | >> >>:: >> >>| An application and templating framework for PHP. Boasting | >> >>| a powerful, scalable system for accessing system services | >> >>| such as forms, properties, sessions, and caches. InterJinn | >> >>| also provides an extremely flexible architecture for | >> >>| creating re-usable components quickly and easily. | >> >>`' >> > >> > Try this in.php contains: '; phpinfo(32); echo ''; echo $_SERVER['argv'][1]; ?> That should do what you want if I understand the problem :) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [php] formmail.pl formmail.php

2003-09-21 Thread Tom Rogers
$tail = "FROM: ".$_POST['Email']; else: $tail = "FROM: ".$_POST['email']; endif; } else{ $tail = "FROM: Unknown

Re[2]: [PHP] CAN I CASH the output of PHP SCRIPT?

2003-09-23 Thread Tom Rogers
===== RR> Nobody is free until everybody is free. RR> --William T. Atkins you can download it from here http://sourceforge.net/project/showfiles.php?group_id=69426 -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Function in php

2003-09-23 Thread Tom Rogers
ame text.php on line 33 UST> is there any other way to avoid displaying this warning error..?? UST> Regards, UST> Uma Don't do a search with an empty token :) $pos = false; if(!empty($token)){ $pos = strpos($string,$token); } if($pos){ do whatever; } -- regards, Tom -- P

Re: [PHP] About php String function

2003-09-24 Thread Tom Rogers
it is taking UST> as zero value and executing the steps under equal to zero loop..Is there UST> any method avoid doing that ?? UST> Regards, UST> Uma You need to use if ($pos !== false) { //pos found } -- regards, Tom -- PHP General Mailing List (http://www.php.net

Re[2]: [PHP] PHP Editor - which to use?

2003-09-25 Thread Tom Rogers
you're supporting a >>>programmer, and not a company. >>> >> >>-- >>PHP General Mailing List (http://www.php.net/) >>To unsubscribe, visit: http://www.php.net/unsub.php >> DM> ______

Re: [PHP] Timezones and Daylight Savings Time

2003-09-25 Thread Tom Rogers
o.com You could put this at the top of each page putenv('TZ=Asia/Bangkok'); That will correct all PHP functions, not sure about database times though -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Vpopmail

2003-09-26 Thread Tom Rogers
ciated. H> Haseeb H>   IncrediMail - Email has finally evolved - Click Here call up the vpopmail executables using system() calls should work just as well. Also probably more reliable as they will lock the qmail files before changing values. -- regards, Tom -- PHP General Mai

Re: [PHP] Re: register_globals won't turn off!

2003-09-27 Thread Tom Rogers
wrote in message DK> news:[EMAIL PROTECTED] Sounds like your web host has put an auto-prepend file with a kludge to emulate globals being on to get rid of all the complaints about scripts failing :) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Q on setlocale...

2003-09-28 Thread Tom Rogers
Hi, Sunday, September 28, 2003, 5:39:53 PM, you wrote: j> I found this function, setlocale... j> now, is there a way to GET the LOCALE setting of a machine? j> Walter call setlocale with 0 (zero or NULL) as the second parameter and it returns the current setting -- regards, Tom

Re: [PHP] Re: wml and php

2003-09-28 Thread Tom Rogers
hp which is running on the server. Split it into 2 pages and change the first href to Then on the second page it will show up as $_REQUEST['nummer'} I think you are trying to do too much in one go :) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] PHP & Rading excel files

2003-09-29 Thread Tom Rogers
There are still a few display bugs to iron out but it will be a good start :) It will only work with ole2 xls files at the moment. Let me know if it will help and I will send you the files. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A _post question I guess

2003-09-29 Thread Tom Rogers
n do if(isset($_POST['exercise'])){ foreach($_POST['exercise'] as $key=>$val){ echo 'Key '.$key.' val '.$val.''; } } -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Avoiding "Warning - Page Expired"

2003-09-30 Thread Tom Rogers
orth it I think. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Q on setlocale...

2003-09-30 Thread Tom Rogers
Hi, Wednesday, October 1, 2003, 1:25:09 AM, you wrote: j> returns the current setting j> Thanks Tom... j> Now, if I understand this properly, j> This should return French_France... j>setlocale (LC_ALL, 'fr_FR'); j>echo setlocale (LC_ALL, '');

Re[4]: [PHP] Q on setlocale...

2003-09-30 Thread Tom Rogers
Hi, Wednesday, October 1, 2003, 2:15:10 AM, you wrote: j> "Tom Rogers" <[EMAIL PROTECTED]> wrote in message j> news:[EMAIL PROTECTED] >> Those locales actually have to be available or they will be ignored and j> that >> will depend on what type of system yo

Re: [PHP] PHP OOP

2003-10-01 Thread Tom Rogers
a works and not worry about how it stores its data. With this method if we change the variable name in class a to $new_a the code will still work, where as $class_b->a->var_a will now fall in a heap. Hope this helps -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] exec shell command from php

2003-10-01 Thread Tom Rogers
i didn't manage .. so i decided to do N> it this way N> any comment ? You are better using something like vpopmail that creates virtual accounts without the need for system accounts. http://www.inter7.com/vpopmail.html needs qmail but the other mail systems can do similar things and not

Re: [PHP] upapck() woes

2003-10-01 Thread Tom Rogers
ptr = 0; $word1 = (ord($binary_data[$ptr+1]) << 8) | ord($binary_data[$ptr]); $ptr +=2; $word2 = (ord($binary_data[$ptr+1]) << 8) | ord($binary_data[$ptr]); or $str = substr($binary_data,0,2); $up = unpack("vword1/vword2",$str); will give you an array $up['word1'] a

Re: [PHP] unexpected results using sprintf() with %u

2003-10-02 Thread Tom Rogers
*** CP> -- CP> PHP General Mailing List (http://www.php.net/) CP> To unsubscribe, visit: http://www.php.net/unsub.php -86 actually looks like FFAA which if you then look at unsigned is pretty big :) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] unexpected results using sprintf() with %u

2003-10-02 Thread Tom Rogers
Hi, TR> -86 actually looks like FFAA which if you then look at unsigned is pretty TR> big :) TR> -- TR> regards, TR> Tom Maybe what you need is the abs() function which ignores the sign of a number -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] ImageColorAllocate() Problem

2003-10-02 Thread Tom Rogers
es in my variables wouldn't be passing? JRB> Thanks in advance, JRB> Jed R. Brubaker Use hexdec() function $hex1 = hexdec(substr($color,0,2}); $hex2 = hexdec(substr($color,2,2}); $hex3 = hexdec(substr($color,4,2}); and it just passes normal numbers to ImageColorAllocate($im, $hex1,

Re[4]: [PHP] unexpected results using sprintf() with %u

2003-10-02 Thread Tom Rogers
Hi, Friday, October 3, 2003, 4:39:32 PM, you wrote: CP> Yeah abs() looks like it would do the trick CP> I wonder if the same output would be generated using C's sprintf() CP> Too bad i dont have access to C... oh well >> -Original Message- >> From: Tom Roger

Re: [PHP] mysql query

2003-10-03 Thread Tom Rogers
#x27;Image', 'desc') CM> VALUES ('2419091.jpg', 'stone')' at line 1 CM> --- end error-- CM> I found if i just try and record the name value it works fine but if i try CM> to add the description i get the error. CM> Any clues? C

Re[2]: [PHP] OO parent/child relationship

2003-10-05 Thread Tom Rogers
lass']; else: $this->mysql = new mysql_class(); endif; if(!empty($this->mysql)): $this->con = $this->mysql->get_handle($this->db); endif; . . } . . } This way there is only need for 1 instance of the mysql class. I use global as a bad habit, but you can do the same with $GLOBALS['class_ref'] -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_ENV not working for me with PHP 4.2.0

2003-10-05 Thread Tom Rogers
dvance, JW> John Wilcox JW> __ JW> Do you Yahoo!? JW> The New Yahoo! Shopping - with improved product search JW> http://shopping.yahoo.com Do this to see what is available in your enviroment, it would seem that USER is not being set by the system o

Re[2]: [PHP] OO parent/child relationship

2003-10-05 Thread Tom Rogers
rtable with and works for you. Of course you have to keep security issues under control as well, it would be no good doing this if you run with register globals set to on as the array could very easily be trashed. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re[4]: [PHP] OO parent/child relationship

2003-10-06 Thread Tom Rogers
Hi, Monday, October 6, 2003, 2:10:46 PM, you wrote: RC> On Sun, 2003-10-05 at 23:37, Tom Rogers wrote: >> Hi, >> >> Well I must have missed that one :) >> My answer, if GLOBALS were not meant to be used they wouldn't be there.. >> So if they make life easier

Re: [PHP] allowing access to php page by IP

2003-10-07 Thread Tom Rogers
AW> elseif (getenv("REMOTE_ADDR")) AW> { AW> $ip = getenv("REMOTE_ADDR"); AW> } AW> else $ip = "UNKNOWN"; AW> Thanks, AW> Adam Convert the ip numbers to integers and check if the incoming ip is within range. You can use ip2long(); -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Re: PHP & CSS

2003-10-08 Thread Tom Rogers
Hi, Thursday, October 9, 2003, 1:37:57 AM, you wrote: RR> On Tue, 7 Oct 2003 23:22:02 -0700 RR> Raquel Rice <[EMAIL PROTECTED]> wrote: >> On Tue, 7 Oct 2003 17:06:13 -0500 >> "erythros" <[EMAIL PROTECTED]> wrote: >> >> > you probably just want what everyone wants... a seperation of >> > design f

Re[4]: [PHP] Re: PHP & CSS

2003-10-08 Thread Tom Rogers
w use templates so it is redundant. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Appropriate Content

2003-10-08 Thread Tom Rogers
. " EN> -Leo Nikolaevich Tolstoy I personally like to hear about anything even slightly involving PHP. if it is of no immediate interest then I ignore it. Sometimes it makes a welcome change to all the 'chatter' :) (Before anybody screams the 'chatter' has taught me a lo

Re: [PHP] problem transferring a variable using POST

2003-10-09 Thread Tom Rogers
icketed]"; $sql = 'UPDATE wo SET status = 1 WHERE ticket = '.$HTTP_POST_VARS[ticketed]; The other good habit is to put the value in single quotes: $sql = "UPDATE wo SET status = 1 WHERE ticket = '$HTTP_POST_VARS[ticketed]'"; $sql = "UPDATE wo SET status = 1

Re: [PHP] pad numbers

2003-10-10 Thread Tom Rogers
thanks, DC> Diana $num = sprintf("%02d",$num); is what you need -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Did anyone have success with the require() function??

2003-10-10 Thread Tom Rogers
hp.net/manual/en/security.filesystem.php CZ> HTH, CZ> Curt CZ> -- Or drop the quotes they are not needed if there are only variables involved -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [xml] character data

2003-10-10 Thread Tom Rogers
gt; # the output is without $content : DA> Array DA> ( DA> [info] => DA> [file] => DA> [orig-file] => DA> [orig-author] => DA> [bitmap-src] => DA> [orig-date] => DA> [svg-date] => DA> ) DA> */ the function characterData

Re: [PHP] Detecting devices i.e. PDA, Mobile

2003-10-11 Thread Tom Rogers
VER['HTTP_USER_AGENT']) || eregi("Nokia",$_SERVER['HTTP_USER_AGENT']) || eregi("Wapalizer",$_SERVER['HTTP_USER_AGENT']))$mode = "XML"; This was from a while ago but you get the idea -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Re: Detecting devices i.e. PDA, Mobile

2003-10-12 Thread Tom Rogers
Hi, Sunday, October 12, 2003, 4:53:27 PM, you wrote: JF> On Sunday, October 12, 2003, at 12:02 PM, Manuel Vázquez Acosta wrote: >> Take a look at what is printed by: >> >> var_dump($_SERVER); >> >> Maybe the HTTP_USER_AGENT can lead you to somewhere out of this >> problem. >> >> Manu. >> >> "Sh

Re: [PHP] https detection

2003-10-12 Thread Tom Rogers
nnection if you make one. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] https detection

2003-10-12 Thread Tom Rogers
, R> Rosen looks like a good start :) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] https detection

2003-10-12 Thread Tom Rogers
connections as all other attempts should be ditched by apache or whatever before php gets involved...in theory anyway :) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] https detection

2003-10-12 Thread Tom Rogers
> SSL and non-SSL virtualhosts. :-) EL> And $_SERVER['HTTPS'] is so much easier to check for existence! I couldn't remember what variables were set so I said to use phpinfo and see what pops upyou are probably right :) -- regards, Tom -- PHP General Mailing List (http:

Re[2]: [PHP] php variable

2003-10-13 Thread Tom Rogers
hing like this OK> value=¨¨> OK> but it doesn't work. Maybe you mean something totaly different, can you OK> show me what you mean. Make sure you put the hidden part between form tags -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] reading linux wtmp file

2003-10-14 Thread Tom Rogers
en if that file gets corrupted. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] reading linux wtmp file

2003-10-14 Thread Tom Rogers
well. TR> NOTE do not meddle with the wtmp file by opening it in anything other than TR> readonly mode as all kinds of nasty things can happen if that file gets TR> corrupted. TR> -- TR> regards, TR> Tom This may help if you are on a newish Linux: $len)? $len:$left;

Re[4]: [PHP] reading linux wtmp file

2003-10-15 Thread Tom Rogers
s with the utmp and wtmp files. You can uncomment the hexDumpChar($buf,16);line to see what it looks like. BTW that unknown field is the micro second bit of the time -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[4]: [PHP] reading linux wtmp file

2003-10-15 Thread Tom Rogers
Hi, Wednesday, October 15, 2003, 5:13:39 PM, you wrote: LM> Crap entry 1546673160 LM> This one gave me this error. Every line on the wtmp entry. If you are using netdate that writes crap wtmp entries (at least mine did till I fixed it :) -- regards, Tom -- PHP General Mailing List

Re[4]: [PHP] Re: Detecting devices i.e. PDA, Mobile

2003-10-15 Thread Tom Rogers
t;;> Welcome tomy test page. then hit test.php with your phone and see what turns up -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newbie question about Class

2003-10-15 Thread Tom Rogers
t_tag_data". A> And, it appears the object is gone after I leave the page. A> Will the class structure do this for me or must I save the values in A> $GLOBAL or something? A> Thanks You need to pass the values to the next page or save them in a session -- regar

Re[2]: [PHP] preg help please :)

2003-10-16 Thread Tom Rogers
e. JF> I think I need: JF> "/$quote(*)$quote:$quote(*)$quote/" JF> Where is substituted for the correct expression -- but my JF> skills aren't there yet :) JF> Justin I think you need (.*?) to stop the * being greedy, but I am no guru on this martian language

Re[2]: [PHP] SESSION Not behaving II: permission denied(13)

2003-10-18 Thread Tom Rogers
return $this->message; } function getmodulename(){ return $this->modulename; } function getid(){ return $this->sessionid; } function getlifetime(){ return $this->sessionlife;

Re: [PHP] session hijacking

2003-10-19 Thread Tom Rogers
RA> problem how can we stop him by making changes on our server or what to RA> do? RA> Please HEAALP (help) RA> Cheers, RA> -Ryan encrypt the numbers and decrypt them before use, if they wont decrypt to a nuber ditch the connection. If you need a class for that I can se

[PHP] Re: Tom->Re: [PHP] session hijacking

2003-10-19 Thread Tom Rogers
Hi, Monday, October 20, 2003, 10:38:23 AM, you wrote: RA> Hi Tom, RA> Thanks for replying. >> encrypt the numbers and decrypt them before use, if they wont decrypt to a RA> nuber >> ditch the connection. If you need a class for that I can send it to you RA> Yes please,

[PHP] Re[2]: Tom->Re: [PHP] session hijacking

2003-10-19 Thread Tom Rogers
de them. If he is inventing url variables that happen to match ones you are using then setting them at the start will be enough -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Calling object variables is untidy and lengthy - any other ideas?

2003-10-20 Thread Tom Rogers
= $height; } function b(){ $b =& $this->a; echo 'height '.$b['height']; echo ' width '.$b['width'].''; } } cuts down on the $this-> and maybe more readable.question of taste really :) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Re: Tom->Re: [PHP] session hijacking

2003-10-20 Thread Tom Rogers
Hi, Tuesday, October 21, 2003, 12:52:33 PM, you wrote: OMH> Hi Tom, OMH> I've got a question for you regarding this encrypt class of yours.. Just OMH> wanted to understand how well it would work against a guy with a sniffer OMH> such as ethereal. (presuming he's on the LAN/

Re[4]: [PHP] Re: Tom->Re: [PHP] session hijacking

2003-10-20 Thread Tom Rogers
sign your own certs :) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How does unpack works?

2003-10-20 Thread Tom Rogers
base/ cnbl/ clang/ Vnewbanner/ vdownload/ a20free/ cthema/ a8nom/ a13prenom/ a61adres/ a31ville/ a13teld/ a13telp/ a41home/ a7gra/ a13priv/ a7filtre/ a13pass/ czip",$input); print_r($array); -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] How does unpack works?

2003-10-20 Thread Tom Rogers
; cnbl/ TR> clang/ TR> Vnewbanner/ TR> vdownload/ TR> a20free/ TR> cthema/ TR> a8nom/ TR> a13prenom/ TR> a61adres/ TR> a31ville/ TR> a13teld/ TR> a13telp/ TR> a41home/ TR> a7gra/ TR> a13priv/ TR> a7filtre/ TR> a13pass/ TR&

Re: [PHP] Test Connection - fsockopen()

2003-10-21 Thread Tom Rogers
JW> Can anyone help me out here? JW> Thanks, JW> Jason Williard change your call to @fsockopen() which will tell it to ignore errors -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] bad quality with imagecopyresampled [PHP4]

2003-10-21 Thread Tom Rogers
you use ImageCreateTrueColor() for the second image. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[6]: [PHP] How does unpack works?

2003-10-21 Thread Tom Rogers
ping!!! VE> Greetz, Vincent This should now work: -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Random Quotes...

2003-10-22 Thread Tom Rogers
sql have a look at 'order by random' and limit -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Images being uploaded in ASCII format

2003-10-22 Thread Tom Rogers
I've looked through both my php.ini and httpd.conf and can't PG> seem to find anything there that would remedy this problem. PG> Does anyone have any advice as to where I should be looking to fix this PG> problem? PG> Thanks much in advance. PG> Cheers, PG> Pablo make

Re: [PHP] fsock sending bad request

2003-10-22 Thread Tom Rogers
eq); deo> while (!feof($fp)) { deo> //read the data returned... deo> $res = fgets ($fp, 1024); deo>echo $res; deo> } deo> fclose ($fp); deo> } you probably don't need this in the header $header.= "$req\n"; but I have no idea what $req contains -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] fsock sending bad request

2003-10-23 Thread Tom Rogers
Hi, Thursday, October 23, 2003, 10:32:18 PM, you wrote: deo> $req = "&field=1"; deo> its the data i need to post But you are sending it twice, and there has to be a cr/lf between the header and the data I think. -- regards, Tom -- PHP General Mailing List (htt

Re[2]: [PHP] Images being uploaded in ASCII format

2003-10-23 Thread Tom Rogers
Hi, Friday, October 24, 2003, 2:11:43 AM, you wrote: PG> Hi Tom. >> make sure you have ENCTYPE="multipart/form-data" in the form tag PG> Thanks for the tip, but that's not the problem. My code is below, and PG> as you can see there is nothing in the code that wou

Re[2]: [PHP] Images being uploaded in ASCII format

2003-10-23 Thread Tom Rogers
Hi, Friday, October 24, 2003, 2:11:43 AM, you wrote: PG> Hi Tom. >> make sure you have ENCTYPE="multipart/form-data" in the form tag PG> Thanks for the tip, but that's not the problem. My code is below, and PG> as you can see there is nothing in the code that wou

Re: [PHP] HTTP request contents

2003-10-24 Thread Tom Rogers
k you, HI> Ivo HI> -- HI> PHP General Mailing List (http://www.php.net/) HI> To unsubscribe, visit: http://www.php.net/unsub.php You probably need this if on apache apache_request_headers() -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] DOM XML difference between PHP versions 4.2.1 and 4.3.3

2003-10-24 Thread Tom Rogers
"//[EMAIL PROTECTED]'portalroot']"); $portalroot = $nodes->nodeset[0]; $new_xml = $portalroot->append_child($newnode); -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Php/mysql error....why?

2003-10-24 Thread Tom Rogers
A> What am i missing? RA> Thanks, RA> -Ryan You have a backtick instead of a quote (`%) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Got myself confused

2003-10-24 Thread Tom Wollaston
I have been trying to write some code for a simple menu system. The idea was that every item on a menu should be tied to anouther to give a menu structure. To do this I have tried to use the following code. Some of it I have added in to try and understand why its not really working. My first probl

[PHP] Trying to organise an array

2003-10-25 Thread Tom Wollaston
I have made this function which should be quite simple but doesn't seem to do what it is meant to. What I want it to do is create an array where there is a numbered key (the rows of the table) and the colume headings as the second key. It doesn't seem to work. If I set $pid=0 then I get no results

[PHP] Oh why won't it work

2003-10-27 Thread Tom Wollaston
I am having problems sorting stuff into an array. It doesn't seem to work quite how everything I read says it should. It is probably my understanding of it but either way I don't really know whats going on. I am trying to put everything out of a table into an array so I can call up the individual

Re[2]: [PHP] Code optimization: single vs. double quotes?

2003-10-28 Thread Tom Rogers
; CWP>." $somevalue\n" CWP>." \n" CWP> ."\n"; I find the . operator to be very slow with strings :) (slow being relative of course) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RE: Verify bUixCtJf for jay.blanchard@niicommunications.com

2003-10-28 Thread Tom Rogers
an awful lot of spam :) http://www.bluebottle.com/ -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RE: Verify bUixCtJf for jay.blanchard@niicommunications.com

2003-10-28 Thread Tom Rogers
Hi, Sorry that link was not what I was thinking of, here is a better one. http://hr.uoregon.edu/davidrl/confirm/ -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Oh, for a "sureset()" (orthogonal to isset())

2003-10-31 Thread Tom Rogers
x27;value']; }else{ $name = 'No Supplied'; } I now type $name = req::post('value','Not Supplied'); The class is very small and just needs including (I have it in an auto prepend file) and you don't need to create an instance as it has no internal variables to worry about. You may find it useful.. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] deleting characters from strings

2003-11-01 Thread Tom Rogers
he OR first like this $string = ''; for($x=0;$x<4;$x++){ if(!empty($string)) $string .= ' OR '; $string .= 'word'; } This way OR only gets added if there is already something in the string -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php executable and environmental variables

2003-11-06 Thread Tom Diamond
mple php pages this thing works fine. But (obviously) it does not work for pages requiring parameters. So my question is what exactly the php executable searches for in the environment? Which are the (CGI???) variables I'll have to set so that it will process POST and GET correctly? Tnx i

Re: [PHP] Problem Understanding Code in 2nd edition Welling/Thomson PHP?MySQL Web Development Book

2003-11-08 Thread Tom Rogers
ername and ST> 'pass' as the password, as that was one of the two combinations the ST> first bit of code above inserted into the table auth. After submitting, ST> I got the customized error message: "Go Away! You are not authorized to ST> view this resource." ST

Re: [PHP] Creating a line break between letter groupings

2003-11-19 Thread Tom Rogers
{ $key = $char;//first result set key else{ if($key != $chat){ echo ''; $key = $char; } } //rest of loop } -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    2   3   4   5   6   7   8   9   10   11   >