Re: [PHP] HTTP_POST_FILES undefined - What happen?

2002-07-24 Thread Tom Rogers
in a function you will need to do: function whatever(){ global $HTTP_POST_VARS; . . . } Just a guess :) -- Best regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] HTTP_POST_FILES undefined - What happen?

2002-07-24 Thread Tom Rogers
Ravelomanana Rija R>> [EMAIL PROTECTED] R>> BP 1528 Port Vila R>> Vanuatu TR> If they are being used in a function you will need to do: TR> function whatever(){ TR> global $HTTP_POST_VARS; TR> . TR> . TR> . TR> } TR> Just a guess :) TR> -- TR> Be

Re: [PHP] Call func with variable num params (Dont confuse with making func variable params)

2002-07-26 Thread Tom Rogers
but still, it's MD> not a good practice, i'm sure there is a way to emulate real parameters when MD> they are needed and skip them in the call if you don't have them. MD> Can anybody help me out? MD> InsaneCoder Send the table list as an array then use count($array)

Re: [PHP] sessions and https

2002-07-28 Thread Tom Rogers
l have to hard code the session id in the url if this is the case. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] need help with uploading images

2002-07-28 Thread Tom Rogers
; $f = fread($fd,4); if($f == "JFIF") echo "JPEG "; fclose ($fd); endif; -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: need help with uploading images

2002-07-29 Thread Tom Rogers
jpeg's */ $im = getimagesize($_FILES['uploadFile'); if(!($im[2] == 2 && $im[0] > 0 && $im[1] > 0)){ echo "You can only upload jpg images."; exit(); } -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Re: need help with uploading images

2002-07-30 Thread Tom Rogers
timagesize($_FILES['uploadFile'); >> if(!($im[2] == 2 && $im[0] > 0 && $im[1] > 0)){ >> echo "You can only upload jpg images."; >> exit(); >> } The $im[2] being set to 2 means it is a jpeg other image types have a different

Re[2]: [PHP] Serialised Data & DBs

2002-07-30 Thread Tom Rogers
gt; >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> Another trap to fall into is if you have magic quotes on you will need to run strip slashes on any GET or POST variables BEFORE you serialize them, otherwise addslashes will escape the escapes. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] using Cascading style sheet

2002-07-30 Thread Tom Rogers
icles/css-or-not.shtml -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] mail () will send to everyone except my own domain

2002-07-31 Thread Tom Ray
Gareth- This sounds more like a sendmail issue to me. I've run into this a few times myself. What's happening is simple, sendmail has a file that it reads generally called "domains" this file tells sendmail what domains it should be handling mail for. When you submit your form the first thing

Re: [PHP] Problem with "" inside the PHP code, due to "?"

2002-08-01 Thread Tom Rogers
HP use it also. SF> --clip-- SF> $XML = "Apple"; SF> echo $XML; ?>> SF> Thanks, SF> FletchSOD Another variation with single quotes :) echo ''; -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problems with random again

2002-08-01 Thread Tom Rogers
Hi, Friday, August 2, 2002, 5:03:19 AM, you wrote: H> Is there some easy way to make rand() only use each number once in a loop, H> to avoid getting the same values more than once? H> Håkan Have a look at shuffle() it may do what you want -- regards, Tom -- PHP General Mailing L

Re: [PHP] question about references

2002-08-02 Thread Tom Rogers
t;; JV> $name->firstName = "marge"; JV> break; JV> } JV> } JV> ?> JV> JV> JV> JV> This should work: foreach ($names as $key=>$val) { if (strcmp($val->firstName, "homer") == 0) { echo "changing homer to marge"; $names[$key]->firstName = "marge"; break; } } -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mktime() question

2002-08-02 Thread Tom Rogers
Jun JB> May JB> Does this help... $now = time(); $i = 36; while($i > 0){ echo date('M-Y',$now).''; $now = strtotime('-1 month',$now); $i--; } -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] progress bar

2002-08-12 Thread Tom Kohnen
x27;t know if it works, but that's the way it'd do it ;) - Tom -Original Message- From: Serdar Sokmen [mailto:[EMAIL PROTECTED]] Sent: Monday, August 12, 2002 12:06 PM To: [EMAIL PROTECTED] Subject: [PHP] progress bar Hi, I would like to add a progress bar to an installt

RE: [PHP] image function

2002-08-12 Thread Tom Kohnen
Hi! Well you have to uncomment it AND restart apache afterwards! Plus, i assume that your extensions dir in the php.ini is correct, if not, apache will give you an error message ;) Have a nice day, - Tom -Original Message- From: NoWhErEMan [mailto:[EMAIL PROTECTED]] Sent: Monday, August

[PHP] php classes

2002-08-14 Thread Tom Kohnen
Hi! Can anyone recommend me some entry-level php-classes tutorials, because the php.net page about classes is not that helpful and difficult to understand IMO. Thanks in advance, - Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] PHP - class question

2002-08-14 Thread Tom Rogers
gt;a = new a(); } $this->a->test(); } } $a1 =& new a(); $a1->t = 'This is a test'; $b1 = new b(); ?> whether it is better depends on usage, but it should be good for a db class so you only make the one connection :) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Got another ripper for you all ;-)

2002-08-14 Thread Tom Rogers
Hi, Thursday, August 15, 2002, 3:20:47 PM, you wrote: >snip LM> Is there a way to get rid of any new lines in a string? LM> Because this is making my directory listing go whacko. LM> Cheers, LM> Liam trim($dir) -- regards, Tom -- PHP General Mailing List (http://w

Re: [PHP] Sessions...

2002-08-16 Thread Tom Rogers
rl and that is bookmarked then the session could be restarted before the timeout occurs in a new browser. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Replicate string or something similar

2002-08-19 Thread Tom Rogers
Hi, Tuesday, August 20, 2002, 1:04:12 PM, you wrote: S> In ASP I use the expression myvar = string(254,"A") S> to have a var filled with 254 characters 'A' S> What is the similar one in PHP? Try this: $string = array(); $string = array_pad($string,254,

Re[2]: [PHP] Replicate string or something similar

2002-08-19 Thread Tom Rogers
Hi, TR> $string = array(); TR> $string = array_pad($string,254,'A'); TR> -- TR> regards, TR> Tom Ignore this I was asleep :) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] xslt extensions

2002-08-20 Thread Tom Rogers
compile, I had to go back to version 0.90 -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] patch for sablotron

2002-08-20 Thread Tom Rogers
has 2 php patches here that appear to G> fix this: G> http://www.gingerall.com/charlie/ga/xml/d_sab.xml G> HOW do I apply the patches?? >From the same site :) To apply a patch, copy it to the Sablotron root directory (Sablot-x.xx) and type: patch -p1 < patch_filename -- rega

Re: [PHP] still problems with register globals set to on

2002-08-21 Thread Tom Rogers
TECTED]... >> Sure, turn register_globals on only for the oasis directory. In your >> httpd.conf add: >> >> >> php_value register_globals on >> >> >> -Rasmus >> >> On Mon, 19 Aug 2002, Andy wrote: You may need to add in the direc

Re[2]: [PHP] still problems with register globals set to on

2002-08-21 Thread Tom Rogers
Hi, Wednesday, August 21, 2002, 9:32:43 PM, you wrote: A> thanx tom, but this doen not seem to have anything to do with it. A> Regards, A> Andy A> "Tom Rogers" <[EMAIL PROTECTED]> schrieb im Newsbeitrag A> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

Re[3]: [PHP] still problems with register globals set to on

2002-08-21 Thread Tom Rogers
Hi, Wednesday, August 21, 2002, 10:53:48 PM, you wrote: TR> Hi, TR> Wednesday, August 21, 2002, 9:32:43 PM, you wrote: A>> thanx tom, but this doen not seem to have anything to do with it. A>> Regards, A>> Andy A>> "Tom Rogers" <[EMAIL PR

Re: [PHP] PHP/SQL - inserting into database null results

2002-08-21 Thread Tom Rogers
n> } ?>> n> Thanks in advance for your help n> Jennifer If you have the latest version of php (4.2.2 or 4.2.1) try if(!empty($_POST['memb_name']))$memb_name = add_slashes($_POST['memb_name']); if(!empty($_POST['bookname']))$bookname = add_slashes($_POST['bookname']); and so on, then add them to your query string. (add_slashes() will take care of any pesky quotes) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Best way to check for some certain text in a string

2002-08-21 Thread Tom Rogers
nt(1) if true, bool(false) if not b) strpos($nav->>userAgent, "search for this") > 0// gives me a boolean JJ> directly JJ> Any tips of which one I should use? JJ> /José Jeria you can do if(eregi("search for this", $string)) echo 'found';

Re[2]: [PHP] and or statement

2002-08-28 Thread Tom Rogers
ver... >> >> 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.n

Re[2]: [PHP] Average Number For Math Functions

2002-08-29 Thread Tom Rogers
t; Subject: [PHP] Average Number For Math Functions >> > > >> > > >> > > Ok I looked at all the math functions for PHP but saw no way of >> returning >> > > the average of a set of numbers - I plan on using this for a rating >> > system - &g

Re: [PHP] and validator problem

2002-08-30 Thread Tom Rogers
t; Peter Turcan what it is compaining about is the '&' symbol not the PHPSESSID, you need to change the '&' to index2.php?pg=2&PHPSESSID=195c0283f8 If you use session.use_trans_sid you need to change the outgoing seperator in php.ini(can't remember it's name

Re: [PHP] How to escape " in hidden field?

2002-09-02 Thread Tom Rogers
escape the "? MT> Martin Try this with single quotes: -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why doesn't the second instance work?

2002-09-02 Thread Tom Rogers
or productname. Clearly, I don't=20 MK> understand something here, can anyone tell me what? MK> Thanks for the time, MK> Michael To use the result a second time you will need to reset the internal mysql pointer like this: mysql_data_seek($result,0); After the first loop through. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] crontab programmed with mysql ??

2002-09-02 Thread Tom Rogers
dev/null 2> /dev/null -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: coockie expiration problems

2002-09-02 Thread Tom Rogers
;> > Thanx for any help on that, >> > >> > Andy >> > >> > >> >> According to netscape the cookie date value is expected to be in the GMT time zone only so that is not the problem. This is more likely the cause (from Netscape again) The expire

Re[2]: [PHP] How to escape " in hidden field?

2002-09-02 Thread Tom Rogers
ses MT> single- and/or double-quotes. How about this then... No need to decode the returned value -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] IE won't post on Windows, but will on Mac

2002-09-02 Thread Tom Rogers
POST the form. Can anyone tell me just what in tarnation JV> is going on here? JV> Many many thanks... JV> Jed what does echo $_SERVER['REQUEST_METHOD'] print out? -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] exit() function question

2002-09-03 Thread Tom Rogers
gt; echo "Version: ",phpversion(),"\n"; RL> exit(1); ?>> RL> # ./t3.php ; echo "last run exit value:"$? RL> Version: 4.2.2 RL> last run exit value:255 Try changing the commas to dots like echo "Version: ".phpversion()."\n"; -- r

Re: [PHP] turn register_globals on

2002-09-08 Thread Tom Rogers
oo late and won't have any effect. The only way is by .htaccess if you have apache. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Variable Assignment

2002-09-09 Thread Tom Rogers
to assign values to them then submit. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] QUery success, but blank results/variables

2002-09-09 Thread Tom Rogers
Hotmail. PH> http://www.hotmail.com You need to do this: if($result = mysql_query($detailqry)){ $row = mysq_fetch_array($result); } else{ echo "Error: Failed finding task details ".mysql_error(); } All your fields will be in the array $row. $result is just an identifier not the actual result set. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] random array sort

2002-09-10 Thread Tom Rogers
Hi, Wednesday, September 11, 2002, 12:22:05 AM, you wrote: RM> Could someone show me a quick and simple way to randomly sort array RM> elements? I can't seem to pinpoint the correct parameters in the docs. RM> Thanks! The function you need I think is shuffle() -- regards,

Re: [PHP] whois query

2002-09-12 Thread Tom Ray
Yes, but how do you format the information that comes back out of the whois? I'm doing this: $whois"; ?> But all the information is shown as one big line, no breaks or anything. How would I do this so it showed properly formatted output? Adam Williams wrote: >Have a php page that runs exec(

Re: [PHP] whois query

2002-09-12 Thread Tom Ray
Nope still comes up with everything in one big line. I'm running through different options right now..but I'm tired and my brain is starting to hurt :) Adam Williams wrote: >try with and see if that works. > > Adam > >On Thu, 12 Sep 2002, Tom Ray wrot

Re: [PHP] Re: whois query

2002-09-12 Thread Tom Ray
A working solution to the whois question $whois"; ?> Notice those are back ticks, not single quotes. This will give youthe information you need, and the tag puts it out in the proper format for you. yasin inat wrote: >Thanx friends > > > > > > -- PHP General Mailing List (http:/

Re: [PHP] numeric to word function

2002-09-13 Thread Tom Rogers
if($res > 0) $t = $this->words[0][$res]. " hundred".$and.$t; } } else{ $res = $res%10; if($res > 0){ ($left == 0)? $and = '':$and = ' and

Re: [PHP] numeric to word function

2002-09-13 Thread Tom Rogers
} } else{ $res = $res%10; if($res > 0){ ($left == 0)? $and = '':$and = ' and '; $t = $this->words[0][$res]. " hundred".$and.$t; } else{ if($left > 0)$t = ' and '.$t; } $num = intval($num/1000); num($num); } return $t; } } //usage $n2t = new num_to_text(); for($num = 0;$num < 1102;$num++){ echo $num.' '.$n2t->convert($num).''; } -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] numeric to word function

2002-09-13 Thread Tom Rogers
} TR> $num = intval($num/1000); >>>>>> $this->num($num); TR> } TR> return $t; TR> } TR> } TR> //usage TR> $n2t = new num_to_text(); TR> for($num = 0;$num < 1102;$num++){ TR&

[PHP] COOKIE Question.

2002-09-16 Thread Tom Ray
I'm having some issue's with $_COOKIE and $HTTP_COOKIE_VARS, I can't seem to retrieve data from them. First I set the cookie like so: setcookie ("Access", "Test_Value",time()+31536000); Then I check my Cookies in Netscape and I can see that I have the cookie stored. But when I go to the page t

Re: [PHP] COOKIE Question.

2002-09-16 Thread Tom Ray
cess. This may not be the problem, but case in names > seems to generally cause problems. > > Tom Ray wrote: > >> I'm having some issue's with $_COOKIE and $HTTP_COOKIE_VARS, I can't >> seem to retrieve data from them. >> >> First I set the cook

[PHP] Test

2002-09-17 Thread Tom Ray
Test message -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] adding unix account via system command

2002-09-17 Thread tim tom
php4.2.3 apache mod linux rh7.2 --- I am trying to add unix system account user via a simple php and shell script when i ran add.php on my browser, i get 254 user creation fail I created my add.sh file in /usr/bin and I have setuid it: -rwsr-xr-x1 root devel 21

RE: [PHP] adding unix account via system command

2002-09-17 Thread tim tom
Dear Pete, Yes, apache runs as nobody. But I have setuid add.sh. Wouldn't that be sufficient ? -- tim --- Peter Houchin <[EMAIL PROTECTED]> wrote: > you need to make sure that the web has permission to use that file .. my > guess is it don't have permission hence why you can run add.sh from the

Re: [PHP] callbacks to methods inside a class/object

2002-09-17 Thread Tom Rogers
>xml_parser, array(&$this,"start_element"),array(&$this,"end_element")); xml_set_character_data_handler($this->xml_parser,array(&$this,"character_data")); } function character_data($parser, $data) { } functi

Re: [PHP] COOKIE Question.

2002-09-18 Thread Tom Ray
Discovered my cookie issue. I wasn't setting the path in setcookie() so it defaulted to what ever directory the script ran in. I set it so it loads from the root of the website now, and it's working like a charm. Thanks to all that helped! John Holmes wrote: >>I do the print $_COOKIE["Accces

Re[4]: [PHP] numeric to word function

2002-09-18 Thread Tom Rogers
s[0][$res]. " hundred".$and.$t; } } else{ $res = $res%10; if($res > 0){ ($left == 0)? $and = '':$and = ' and '; $t =

[PHP] Calling on functions in a url

2002-09-19 Thread Tom Ray
I have a question that I have yet to figure out. Let's say I have a PHP script with multiple fuctions, how do I call on the script to perfom specific functions through a url? Ex: http://www.sample.com/script.php?fucntion1 TIA -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] adding unix account via system command

2002-09-19 Thread tim tom
Dear Marek, Where do find that? I am no C programmer. -- tim --- Marek Kilimajer <[EMAIL PROTECTED]> wrote: > It's a shell script, and your shell drops root privileges. Use a shell > that doesn't or use a C-wraper. > > tim tom wrote: > > >Dear Pete, >

[PHP] Script Modificaton question

2002-09-19 Thread Tom Ray
I have a chat script that I downloaded and according to the license I can modify it as much as I want, and I'm a little stuck on a simple modification I want to make. When you type in a message it stores in in a file called text.php and then the chat page does an include call for the text.php

Re: [PHP] Script Modificaton question

2002-09-19 Thread Tom Ray
Ahah! That's what I was thinking, thatnks for helping me clear that up! John Holmes wrote: >>I have a chat script that I downloaded and according to the license I >>can modify it as much as I want, and I'm a little stuck on a simple >>modification I want to make. When you type in a message it st

Re: [PHP] Date Time

2002-09-20 Thread Tom Rogers
ards P> Patrick A quick fix that won't account for daylight saving differences unless Sweden uses the same dates as the US... date("Y-m-j",strtotime(+8 hours)); -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Running a PHP script automatically?

2002-09-21 Thread Tom Rogers
Thanks! JS> Joseph JS> -- JS> PHP General Mailing List (http://www.php.net/) JS> To unsubscribe, visit: http://www.php.net/unsub.php I do this in cron 0,15,30,45 * * * * /usr/bin/lynx -dump http://domain.com/clkdown.php 1> /dev/null 2> /dev/null -- regards, Tom

Re: [PHP] mysql_num_rows error

2002-09-22 Thread Tom Rogers
ery = "select * from images where type = '$type'"; or if you prefer $query = "select * from images where type = '".$type."'"; PS check your comps date its a year out -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How do i assign Integers only and not real numbers?

2002-09-23 Thread Tom Callaghan
Thanks for the answers all, I`ve combined the floor and the precision answer and it does exactly what I want it to do. Cheers, Tom -Original Message- From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: 23 September 2002 16:24 To: Tom; [EMAIL PROTECTED]; Support @ Fourthrealm.com

[PHP] Encryption Question

2002-09-23 Thread Tom Ray
I want to compare a password to a encrypted password stored in my mySQL database using password('password'), what's the best way to compare the two? Encrypted the password sent by the user and compare or pull the password from the database based on username, decrypt it and then compare? --

[PHP] Another Encryption question

2002-09-23 Thread Tom Ray
I dipped into mcrypt about a month or so, and did this script back then. I had it working, it would kick out the encrypted data for me but today when I test it I get a Fatal error: Call to undefined function: mcrypt_create_iv() in test2.php on line 3. And I don't understand why...any help would

Re: [PHP] Another Encryption question

2002-09-23 Thread Tom Ray
also if I comment out $iv, I get the error "Call to undefined function mcrypt_encrypt()" on that line.. I just don't understand why it keeps doing this. I'm running 4.2.2 Tom Ray wrote: > I dipped into mcrypt about a month or so, and did this script back > then.

[PHP] Scripthash PHP security module updated

2002-09-24 Thread Tom Oram
eone finds this useful. Cheers Tom -- ******* Tom Oram SCL Computer Services URL http://www.scl.co.uk/ *** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Form and Arrays help

2002-09-24 Thread Tom Ray
I'm having a small problem with a form I'm designing and I hope someone can point me in the right direction here. The form's function is rather simple actaully. It's supposed to take the information, run through it to make sure all the required fields have data in them, if there is a blank require

Re: [PHP] domxml and setting the DOCTYPE

2002-09-24 Thread Tom Rogers
Thanks for your help. RB> Raph RB> PS:Having some troubles to send on the ML, I send this through the news RB> server (excuse if you get my request two times) One way to cheat :) ' ?> http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> doctype(); echo ''; prin

Re: [PHP] Re: Re: Cronjob

2002-09-25 Thread Tom Rogers
; > >> > >> > __ >> > Do you Yahoo!? >> > New DSL Internet Access from SBC & Yahoo! >> > http://sbc.yahoo.com >> > >> > -- >> > PHP General Mailing List (http://www.php.net/) >> > To unsubscribe, visit: >> http://www.php.net/unsub.php >> > >> DC> __ DC> Do you Yahoo!? DC> New DSL Internet Access from SBC & Yahoo! DC> http://sbc.yahoo.com make sure that register_argc_argv in your php.ini is set to true -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Encrypt data...

2002-09-25 Thread Tom Rogers
Hi, Thursday, September 26, 2002, 4:45:04 AM, you wrote: SF> How do I encrypt the data and decrypt it back using PHP? I do know that hte SF> random number can not be used becuase it will make it impossible to decrypt SF> it. SF> Thanks! Here is a simple class for encoding and decoding: class

Re: [PHP] replacing literal " in string

2002-09-25 Thread Tom Rogers
What am I missing? RM> Thanks! try $key = str_replace('"', '', $key); -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] New Question...tables

2002-09-26 Thread Tom Rogers
e data out of a table, and, ideally format the html into a table for display. Have them enter the data as a comma delimited list like this: [table] Name,Address,City,Country Tom,Home,Brisbane,Australia ... [/table] Then you could parse looking for [table] and work on the data after till [/table

Re: [PHP] navigatie doesn't work in this script

2002-09-29 Thread Tom Rogers
tal number of results,number of results to show,max number of pages on a sliding scale (ends up as 2x this number..ie 20) $limit = $page->get_limit(); $Query_beperkte_records = "SELECT woordenboek.* FROM woordenboek WHERE ".$taalkeuze. " LIKE '%" .$zoekwoord. "%' ORDER BY woordenboek.woord_ost ASC ".$limit; $result = mysql("oostends",$Query_beperkte_records) or die(mysql_error()); $hstring = $page->make_head_string('Results'); $pstring = $page->make_page_string("&zoekwoord=".$zoekwoord."&whatever=".$whatever);// add the other variables to pass to next page in a similar fashion echo "".$hstring.""; while($row = mysql_fetch_array($result)){ echo "".$show_data_here.""; } echo "".$pstring.""; } ?> this is of course untested with your code :) Note: the search variables on subsequent pages will be passed by GET method -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] xml encodeing with new_xmldoc("1.0");

2002-09-30 Thread Tom Rogers
mem(true)); echo ''; ?> When it saves the document it should then convert to iso-8859-1 Just make '' whatever the root element will be. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] echo writes number of chars written

2002-09-30 Thread Tom Rogers
rtwo"; DB> echo "$id->city"; DB> Makes this XML: DB> 1d DB> PO BOX 698 DB> 13 DB> DB> 1a DB> ABCDEF GHIJKL DB> Couldn't see anything in the bug report, ideas? DB> /B what exactly is $id? An object, array ? -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] error notice - valid code

2002-09-30 Thread Tom Rogers
valid code? No It should be $print_year = $year['year'] -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] conditional statement problems

2002-10-01 Thread Tom Rogers
o your expression, try ($adTitle != "") -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] inputbox?

2002-10-01 Thread Tom Rogers
they would like to JB> recharge. JB> -- JB> Jeff Bluemel You need something like this: function ask(){ if(document.form1.Message.value = prompt('Name','')) form1.submit(); } -- regards, Tom -- PHP General Mailing List (ht

Re[2]: [PHP] inputbox?

2002-10-01 Thread Tom Rogers
= prompt('Name','')) TR> form1.submit(); TR> } TR> TR> TR> TR> TR> TR> TR> TR> -- TR> regards, TR> Tom One too many heads...revised code: function ask(){ if(document.form1.Message.value = promp

Re[4]: [PHP] inputbox?

2002-10-01 Thread Tom Rogers
Hi, Wednesday, October 2, 2002, 12:21:29 PM, you wrote: JB> OK Tom - that script worked beautiful. JB> there are a few different applications that I need this for, and I'm JB> wondering if you can either help me with the coding, or refer me to a JB> webpage that can get me sta

Re: [PHP] Global variables

2002-10-02 Thread Tom Rogers
ogin.php I use the code AG> $first=mysql_result($result,0,"FIRST_NAME"); AG> and I want to print this $first variable all of my php site. AG> Thanks! If you are wanting it to be 'global' for the same visitor across your site use php session functions. -- re

Re: [PHP] Re: MySQL Problem

2002-10-03 Thread Tom Rogers
gt;> function CHOOSEDB ( $MyVars , $MyContents ) >> { >> mysql_select_db( $MyVars[DATABASE] , $this->DBLink[$MyVars[LINK]] ); >> } >> } >> >> >> Thanks! >> >> >> Lewis >> >> Looks like you change the name of the index from NAME to LINK and it should be $this->DBLink[$MyVars['LINK']] -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] recent encrpyt decrypt code... (problems)

2002-10-04 Thread Tom Rogers
s That is a class I put together. I use libmcrypt-2.5.2 configured with: configure --prefix=/usr --enable-ltdl-install=no and mcrypt-2.6.2 configured with: configure --prefix=/usr and in php configure: --with-mcrypt=/usr/src/mcrypt-2.6.2 (thats where it was untarred) and it works like a dream :

Re: [PHP] XML dom encode

2002-10-04 Thread Tom Rogers
ding of the xml document to ISO-8859-1 so it would look like this: DÖJ> DÖJ> - DÖJ> - DÖJ> sdfsdfsdf DÖJ> ssdfsdf DÖJ> DÖJ> - DÖJ> asdf DÖJ> asdf DÖJ> DÖJ> - DÖJ> sdfasdf DÖJ> ? DÖJ> DÖJ> DÖJ> Any Ideas ho

Re[2]: [PHP] XML dom encode

2002-10-04 Thread Tom Rogers
/Attach title and artist as children of item node $record->new_child("title", $title); $record->new_child("artist", $artist); } echo $doc->dumpmem(); } ?> -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] recent encrpyt decrypt code... (problems)

2002-10-04 Thread Tom Rogers
JB> error messages. I just recompiled using the latest versions of libmcrypt - mcrypt - mhash and it still works ok. I don't use dynamic loading of php it is built into apache statically. What version of PHP/apache are you using? .. I use 4.2.3 -- regards, Tom -- PHP General M

Re[2]: [PHP] recent encrpyt decrypt code... (problems)

2002-10-05 Thread Tom Rogers
ing truncated to 0 -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] recent encrpyt decrypt code... (problems)

2002-10-05 Thread Tom Rogers
; } to: class encrypt_decrypt{ var $secret; function encrypt_decrypt(){ $this->secret = 'this is a very long key, even too long for the cipher'; } -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessions 2!!!

2002-10-07 Thread Tom Rogers
= mysql_query("SELECT userid FROM users WHERE userpassword=PASSWORD('".$_SESSION['sspw']."') AND userid='".$_SESSION['ssun']."'", $db_link); SV> } SV> $norows = mysql_num_rows($result); SV> if($norows==1) SV> {

Re[2]: [PHP] Sessions 2!!!

2002-10-07 Thread Tom Rogers
Hi, Tuesday, October 8, 2002, 12:00:59 PM, you wrote: TR> After the successful first login you are not saving the $_POST variables TR> into the $_SESSION equivalents TR> -- TR> regards, TR> Tom Ok after looking a little harder I found you were setting it :) Your prblem is i

Re[2]: [PHP] File download doesn't work with SSL

2002-10-07 Thread Tom Rogers
or JWH> does opera have a method to view all the headers? JWH> ---John Holmes... You may find this very usefull: http://www.ethereal.com/ -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[4]: [PHP] File download doesn't work with SSL

2002-10-07 Thread Tom Rogers
John Holmes... Yes it is encrypted ... quite a mess :) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] File download doesn't work with SSL

2002-10-07 Thread Tom Rogers
LOPT_HEADER, 1); echo ''; if(!curl_exec ($ch)){ echo 'Error: '.curl_error($ch).''; } echo ''; curl_close ($ch); ?> -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Installing both static and dynamic modules

2002-10-08 Thread Tom Rogers
gt; Thanks, JD> Jonathan Duncan They are not talking about the cgi version, they mean don't compile php into apache as a permanent module and also try to load it as a dynamic one at the same time cgi is treated as a completely seperate program so it can co-exist with an internal apache ph

Re[2]: [PHP] register_global variables on Mac OS X

2002-10-08 Thread Tom Rogers
ion. >From the manual.. copy and rename the php.ini-dist file to your "bin" directory from your PHP 4 source directory: cp php.ini-dist /usr/local/bin/php.ini or (if your don't have a local directory) cp php.ini-dist /usr/bin/php.ini might be of help

Re: [PHP] Found the problem with the libmcrypt.....

2002-10-09 Thread Tom Rogers
#x27;m allowed to use the open source code instead SF> of the compiled codes. You dont normally need to specify anything in php.ini for it to work just make sure you have --with-mcrypt=/usr/src/mcrypt-2.6.x (thats where it was untarred) when you configure php. I have it working with nothing set in php.ini -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: POST method not allowed

2002-10-09 Thread Tom Rogers
int "my name is $name"; ?>> MK> Try If that works lookup register_globals on www.php.net -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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