[PHP] How do I use a Javascript variable in PHP?

2002-09-23 Thread Tom
wer from persistent javascript data to using framesets to hold the variable but to no avail. I know its quite a bit of javascript, but its mixed in with PHP too so I thought it`d be the right place. Anyways, I hope someone can provide the answer to my problem. Thanks in advance, Tom --

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

2002-09-23 Thread Tom
what function would do this? Sorry if I`m wasting your time if its a really obvious one! thanks in advance, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Randomizing 3 different numbers.

2003-10-27 Thread Tom
Just to give you something to chew on, try the code below. It is slightly more generic, and you can change things a little without having to modify a whole bunch of if() statements. -Original Message- From: Ian Gray [mailto:[EMAIL PROTECTED] Sent: 27 October 2003 12:26 To: [EMAIL PROTE

[PHP] Best way to split a string of numbers into segments.

2003-12-02 Thread Tom
Hi. Is there an easy, non expensive way to do the perl-equivalent of: $date=20031202; ($year, $month, $day) = ($date =~ /(\d{4})(\d{2})(\d{2})/; I looked through the preg_* functions online, but couldn't see anything to help me. Am I stuck with substr() :P ? Thanks. -- PHP General Mailing List (h

Re: [PHP] Best way to split a string of numbers into segments.

2003-12-02 Thread Tom
g too much perl, as it seems such a neat solution to me :P preg_match should do it... $mydate = "20031202"; $date = array(); preg_match("/(\d{4})(\d{2})(\d{2})/", $mydate, $date); print_r($date); substr would be much quicker though On Tue, 2003-12-02 at 13:14, Tom wrote: Hi.

Re: [PHP] Best way to split a string of numbers into segments.

2003-12-02 Thread Tom
David Otton wrote: On Tue, 02 Dec 2003 13:14:20 +, you wrote: Is there an easy, non expensive way to do the perl-equivalent of: $date=20031202; ($year, $month, $day) = ($date =~ /(\d{4})(\d{2})(\d{2})/; I looked through the preg_* functions online, but couldn't see anything to help me. Am I

[PHP] Non American strtotime

2004-01-16 Thread Tom
Is there a way I can force PHP's time functions not to read date strings in the American MM-DD- format? I am using strtotime and strftime and date at various points (mainlty to avoid some niggly 0/NULL problems between PHP and mySQL and datefields). My date calculations (which are done in mySQL

Re: [PHP] Non American strtotime

2004-01-16 Thread Tom
Ford, Mike [LSS] wrote: On 16 January 2004 11:14, Tom wrote: Is there a way I can force PHP's time functions not to read date strings in the American MM-DD- format? [*snip*] Is there a way I can have strtotime read "10-01-2004" (and all other such date connotations)

Re: [PHP] Please help me as fast as possible.. very important!!

2004-01-20 Thread Tom
Radwan Aladdin wrote: Hi all Is it possible in mySQL to put a timer that changes a value inside a row in a table every while? For example : Add "1" to the value very 10 minutes for example.. Field number = 5 after ten minutes = 6 after another 10 minuste = 7..Etc.. Is it possible?And how? Rega

[PHP] Display who is onlin

2001-01-14 Thread TOM
Is it possible to find out who is logged in a site and display their name in PHP? -- best wishes, enethk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [

[PHP] Upgrade PHP3 to PHP4

2001-01-15 Thread TOM
I would like to upgrade PHP3 to PHP4 on my Turbo Linux, does anyone has experience on this? -- best wishes, enethk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators,

[PHP] configure for WDDX functions

2001-03-04 Thread Tom
hpinfo() output either) Any clues as to what I am missing? Many thanks, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] unset()- newbie question

2001-05-20 Thread Tom
#x27;element']); but it doesn't work. Does anyone know why? Does anyone know of a way to use array_diff() to delete elements from an array? Thanks, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

[PHP] Pls Help with this newbie question

2001-05-21 Thread Tom
#x27;element']); but it doesn't work. Does anyone know why? Does anyone know of a way to use array_diff() to delete elements from an array? Thanks, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

[PHP] Array Problem

2001-05-22 Thread Tom
What is the best way to delete an element from an array? I tried using unset(), and it didn't work. Thanks in advance. Tom Malone Web Designer HurstLinks Web Developmenthttp://www.hurstlinks.com/ Norfolk, VA 23510(757)623-9688 FAX 623-0433 PHP/MySQL - Ruby/Perl -

[PHP] GD fonts and ImageLoadFont

2002-02-27 Thread Tom
a hosting company who does not have freetype installed (much less current versions of gdlib and php). Is there something I can do to get the GD fonts to space properly? Thanks, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Hosting companies that offer PHP?

2002-02-27 Thread Tom
large, preferably of hosts that offer shell accounts. Regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Hosts with PHP support

2002-03-03 Thread Tom
if it offered Truetype support, so that I can use functions like ImageTTFText. I will check out the recommendations at this point. Thanks very much. Tom >Datasnake.co.uk would be able to help you out > >Alastair > >> -Original Message- >> From: Tom [mailto:[EM

[PHP] Coding for email response forms

2009-01-26 Thread Tom
input is greatly appreciated. Tom Contact Form Have a Question?. Please include Name, Email address and a short message when replying. Your questions will be answered shortly

Re: [PHP] Coding for email response forms

2009-01-26 Thread Tom
mail.com... > On Mon, Jan 26, 2009 at 15:57, Tom wrote: >> I am a new user of PHP, and am using Dreamweaver CS3 for the webpages. >> The >> following page has my form but the submit button is not working properly. >> http://www.richlandmtg.com/contacts.html >> What co

Re: [PHP] Coding for email response forms

2009-01-26 Thread Tom
"Shawn McKenzie" <> wrote in message news:a0.87.62571.3d92e...@pb1.pair.com... > Tom wrote: >> My Hosting site said that I needed to include the PHP otherwise the form >> won't work. I need to know where to include my email info to get this set >>

Re: [PHP] Coding for email response forms

2009-01-26 Thread Tom
"Daniel Brown" wrote in message news:ab5568160901261347h1dab427bo29a1313494cd...@mail.gmail.com... > On Mon, Jan 26, 2009 at 16:34, Tom wrote: >> >> Shawn, >> So would that look something like this: >> > if ($_SERVER['REQUEST_METHOD'] == &q

Re: [PHP] Coding for email response forms

2009-01-26 Thread Tom
"Shawn McKenzie" wrote in message news:497e3ab9.2060...@mckenzies.net... > > > Shawn McKenzie wrote: >> >> Tom Scott wrote: >>> - Original Message - From: "Shawn McKenzie" >>> >>> Newsgroups: php.general >>>

Re: [PHP] Coding for email response forms

2009-01-26 Thread Tom
"Eric Butera" wrote in message news:6a8639eb0901261509s1008e1b1j89c2a8f63669e...@mail.gmail.com... > On Mon, Jan 26, 2009 at 4:47 PM, Daniel Brown wrote: >> On Mon, Jan 26, 2009 at 16:34, Tom wrote: >>> >>> Shawn, >>> So would that look something

Re: [PHP] Coding for email response forms

2009-01-27 Thread Tom
"Edmund Hertle" wrote in message news:f7ed91b20901261644y125f71aer3e0b70735c949...@mail.gmail.com... > 2009/1/26 Tom > >> >> "Shawn McKenzie" wrote in message >> news:497e3ab9.2060...@mckenzies.net... >> > >> > >> > S

Re: [PHP] Coding for email response forms

2009-01-28 Thread Tom
"Clancy" wrote in message news:c77vn4pri9tsbaqg9avv3i7dnfb8nvk...@4ax.com... > On Mon, 26 Jan 2009 17:57:29 -0600, obeli...@comcast.net ("Tom") wrote: > > .. >>> >>> Also make sure there aren't line returns or any nonsense like that in &g

Re: [PHP] Coding for email response forms

2009-01-30 Thread Tom
"Shawn McKenzie" wrote in message news:47.36.08436.e8b80...@pb1.pair.com... > Tom wrote: >> "Clancy" wrote in message >> news:c77vn4pri9tsbaqg9avv3i7dnfb8nvk...@4ax.com... >>> On Mon, 26 Jan 2009 17:57:29 -0600, obeli...@comcast.net ("Tom&q

Re: [PHP] time

2007-01-29 Thread tom
test Jay Blanchard : [snip] I am writing a program for managing leads and contacts. I would like to add the ability to see what TIME it is where the contact is not there server time. So if you looked at a list of contacts from all over the country you would see different times compared to what ti

[PHP] Re: Parsing mail file

2007-02-01 Thread tom
Easy!! Pierre Pintaric : Hello there, I'm sure this question was ask 1,000 times, but I didn't find any archive about this, that's why I need help... Here is my problem: I receive mail file from my MTA (ie QMail), that works fine. Now, I would to find a class or a function that parse the mai

[PHP] XSLTProcessor issue

2010-03-21 Thread Tom
I have located what appears to me to be bug in the XSLTProcessor in PHP5.2.13 but want to insure that I am not overlooking something before reporting it. Any advice will be appreciated. The issue is apparent discrepancies in output sort order in an XSLTProcessor generated list. Following is a deta

Re: AW: [PHP] export mysql to csv prob

2005-02-11 Thread Tom
If your mysql server has access (or can have access) to the directory where you want to dump the file, you can just use the "SELECT INTO OUTFILE FIELDS TERMINATED BY ','..." syntax as your query, which is very fast. Mirco Blitz wrote: Hi, Probably the Pear Excel_Syltesheet_Writer works for

[PHP] Implementing compulsory fields in a mySQL driven, SMARTY templated site?

2004-04-22 Thread Tom
Hello. As per the subject: I am using PHP, mySQL and Smarty for a web site with lots of forms everywhere. The site is split into display, content and logic. And I want to introduce the concept of mandatory fields. Manually editing all the content files to mark the mandatory fields and matching the

[PHP] Upgrading SAPI from 4.2.2 to 4.3.6 on RH9 with Apache 2

2004-05-10 Thread Tom
n of me of the upcoming problems I am bound to face? :) Thanks. Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] WHERE clause...getting closer

2004-05-05 Thread Tom
Ray Hunter wrote: On Tue, 2004-05-04 at 19:18, msa wrote: $query_rsENews = 'SELECT * FROM NewsArchive WHERE YEAR(datePublished) = ' . YEAR('NOW'()) . ' AND MONTH(datePublished) = ' . MONTH('NOW'()) . ' ORDER BY sortBy DESC'; this is supposed to return only the records that have the current month an

[PHP] Client does not support authentication protocol...

2007-05-28 Thread Tom
ation protocol requested by server; consider upgrading MySQL client Which can the cause of this error be? Am I able to make something to solve it or does a problem belong exclusively to the administrator of the server? Thank you very much, Tom. -- PHP General Mailing List (http://www.ph

[PHP] The data get lost when click back button

2007-06-16 Thread Tom
when the user returns to the form all the data of the fields disappeared! Then the user has enter all the information again. How can I make in simple way that, the data in the fields don't get lost when the user returning to the form? Ahead of time, thank you very much, Tom. -- PHP

[PHP] problem using imagejpeg function all

2006-11-21 Thread Tom
'XPM Support' => false 'XBM Support' => true 'JIS-mapped Japanese Font Support' => false Would I need to have T1Lib support in order for this it work? As a quick example, here is some code I’ve been playing around with that I found somewhere.

RE: [PHP] problem using imagejpeg function all

2006-11-21 Thread Tom
Can you show me what your gd dump looks like? Is that way I got mine. Also, what php version are you using? I'm using 5.1.6. Thanks for the info. Tom -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: November 21, 2006 11:40 PM To: Tom Cc: php-ge

[PHP] Using linkDisplayFields of FormBuilder

2006-04-25 Thread Tom
e2's other fields). This may fall more into how to structure my application. I want to separate the generated do code from my 'business logic' and separate the form/display details from the business logic. Any help/advice is greatly appreciated. Thanks, Tom -- PHP General Mail

Re: [PHP] Using linkDisplayFields of FormBuilder

2006-04-25 Thread Tom
x27;t turn up anything specific to this concern), does anyone have other specific resources regarding FormBuilder? Tom Richard Lynch wrote: On Tue, April 25, 2006 4:26 pm, Tom wrote: I've successfully generated my DataObjects for my database and have a ... My question concerns usi

[PHP] Session variables on Windows

2006-06-05 Thread Tom
x27;t understand why... The same system in a Linux server runs well always ¿? Ahead of time, thank you very much, Tom. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php File upload

2008-08-06 Thread Tom
deletes the tmp file. Why don't php use swap memory ? Greets Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php File upload

2008-08-07 Thread Tom
No, ist'not a php limit. The upload is written in main memory, if i look with vmstat, free is going to 0 and the php upload breaks at 0 bytes free. Nothing swap used. Any other ideas? "Per Jessen" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] Tom w

Re: [PHP] php File upload

2008-08-07 Thread Tom
running, take a look at memory with vmstat. free is goin to 0, no swap is used. I don't know, that is a suse 10.2 effcet only. "Per Jessen" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] Tom wrote: > No, ist'not a php limit. The upload is writte

Re: [PHP] php File upload

2008-08-07 Thread Tom
smaller files is no problem. The error occoured, if the uploaded File is bigger than the installed main memory. Ok, i know that http ist not designed for big uploads. But on a big website with upload enabled and 30 users upload simultan a 20 MB File, they lost the upload while php hold all in m

Re: [PHP] php File upload

2008-08-07 Thread Tom
hmm, memory buying is okay, not the final solution. I think php design fault on this function. It's not comprehensible why php use such a lot main memory for an upload. ""Richard Heyes"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Well, you lost me right about... Well

Re: [PHP] php File upload

2008-08-07 Thread Tom
nd can't solve it :-( "Per Jessen" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] Tom wrote: > hmm, memory buying is okay, not the final solution. I think php design > fault on this function. It's not comprehensible why php use such a >

Re: [PHP] php File upload

2008-08-07 Thread Tom
>Ah, so it's not PHP and it's not apache using up your memory - it's your >filesystem cache. Check how many files you have in the tmp directory >and the destination directory. Okay, thats light in the darkness. But i don't have any idea what i can do here. tmp is empty. Look at the first entry,

Re: [PHP] php File upload

2008-08-07 Thread Tom
i use ext3 Im realy on no limit. destination ist /tmp and is fairly empty. The question is now, if cache full => must hypothetical swap used? ok, im glad to see your result. "Per Jessen" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] Tom wrote: >&g

Re: [PHP] php File upload

2008-08-07 Thread Tom
Hi Per, your result is on a suse 8.2 ? hmm, i don't know the reason why my suse 10.2 machines do that failure. My limits for for post_max_size and upload_max_size is both 1500M. Greets & thanx, Tom "Per Jessen" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL P

[PHP] Re: php File upload

2008-08-08 Thread Tom
0% working file uploads if memory lower than the file size :-) ""Tom"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Hi, > > on a linux system (Suese 10.2) with 1 GB memory its not possible to upload > via http a 1 Gb File. Thats n

Re: [PHP] Re: php File upload

2008-08-08 Thread Tom
What is set this limit? "Per Jessen" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] Tom wrote: > Im very glad to fix this problem, but the next one is here: Other > machine (but 2 GB Ram), same suse version, same (working now) php.ini > with limits

Re: [PHP] php File upload

2008-08-08 Thread Tom
sbeitrag news:[EMAIL PROTECTED] Tom wrote: > Hi Per, > > your result is on a suse 8.2 ? > hmm, i don't know the reason why my suse 10.2 machines do that > failure. My limits for for post_max_size and upload_max_size is both > 1500M. > > Greets & thanx, Tom Tom,

Re: [PHP] php File upload

2008-08-08 Thread Tom
fails. I don't know if this is the overhead. http://www.guildmeets.de/index.php?onlydirid=78 (in Folder "Neue Game Demos") "Per Jessen" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] Tom wrote: > Hi Per, > > Execution Time ist set to 7

Re: [PHP] php File upload

2008-08-08 Thread Tom
Andrew write the answer: -1149239296 Bytes is indiz for to big. This time I had set the upload_file_size and post_max_size to 3000Mb each, which probably didn't work. When I tried the 1900Mb file again I got this error: [Fri Aug 08 16:57:28 2008] [error] [client 192.168.2.113] PHP Warning: POST

Re: [PHP] php File upload

2008-08-08 Thread Tom
> PUT is raw (AFAIK) That sounds good. Have you any link to a basicly methode description? This is a really new methode for me but sounds better than http upload btw. resume function is not bad. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

php-general@lists.php.net

2004-01-28 Thread Tom
Gerard Samuel wrote: > On Wednesday 28 January 2004 09:32 am, Stuart wrote: > >> Diana Castillo wrote: >> >>> is there any function that will always replace a "&" with a "&" in a >>> string? >> >> >> $string = str_replace('&', ' ', $string); >> > > > Just a heads up on using the above method. > If

[PHP] array walk and class member functions

2005-01-12 Thread Tom
ing; } } Can anyone help me to get either solution to a working state? By the way... apache 2.0.49 php-5.0.2 Thanks very much Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] array walk and class member functions

2005-01-12 Thread Tom
needed now as I have the worker defined as a private function and can access it from the public one as array_walk($anArray,array($this,'aFunction'); Thanks Tom Jochem Maas wrote: Tom wrote: Hi I'm batting my head against a wall on this one... I have a class that has a constructor

Re: [PHP] Re: php style guides

2005-01-12 Thread Tom
easier and it leaves the main code tree legible! All down to personal preference though. The only hard and fast rule is to keep it consistent and comment well so that when you pick it up again a few months down the line you can still maintain it! eg Tom But what I'm really wanting to ge

[PHP] mysql improved extensions affected_rows

2005-01-13 Thread Tom
I've just started playing with the php5 improved mysqli extensions. I have the following code:- $updateQuery = "UPDATE client SET status = 'INACTIVE' WHERE clientName = 'Tom'"; if ($mysqli->query($updateQuery)) { $updateCount = $mysqli->affected_

Re: [PHP] mysql improved extensions affected_rows

2005-01-14 Thread Tom
Richard Lynch wrote: Tom wrote: I've just started playing with the php5 improved mysqli extensions. I have the following code:- $updateQuery = "UPDATE client SET status = 'INACTIVE' WHERE clientName = 'Tom'"; if ($mysqli->query($updateQuery)) { $updateC

Re: [PHP] Execute shell script from PHP

2005-01-18 Thread Tom
shell_exec() Tom Khan wrote: Hello, I have a shell script for ading users to LDAP. It looks like this: #!/bin/bash MUID=userlogin FULLNAME="First Last" LASTNAME="Last" DOMAIN=example.org SERVER=qmail.example.org PASS=userpass cat > .ldif.tmp.$MUID << EOF dn: uid=$MUID,

Re: [PHP] strtotime time zone trouble

2005-01-18 Thread Tom
d, but the suggested alternative in the docs doesn't work at all: print date('Y-m-d H:i:s', strtotime('now UTC-0800'))."\n"; try print date('Y-m-d H:i:s', strtotime('now') -0800)."\n"; Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Execute shell script from PHP

2005-01-18 Thread Tom
Khan wrote: Tom wrote: shell_exec() yes, I have try that but nothing happenes. here is my code. Is this correct? looks fine to me, except that I tend to run a check to make sure that it has run ok, like $myReturn = shell_exec('/test/acct.sh'); or if (shell_exec('/test/acct

Re: [PHP] strtotime time zone trouble

2005-01-18 Thread Tom
Marcus Bointon wrote: On 18 Jan 2005, at 10:53, Tom wrote: PST = UTC - 8, therefore if you ask for strtotime in PST it will give you now + 8. This is standard in most languages, you are just reading the functionality back to front. ie when you say strtotome('now PST'), what you are

Re: [PHP] PHP Cache

2005-01-25 Thread Tom
vers so it doesn't care what language you are using to provide the content. Tom Merlin wrote: Hi there, I am trying to find a open source PHP Cache extension. After trying out ionCube PHP Accelerator (http://www.php-accelerator.co.uk) I had to remove it from the system since it brought down t

Re: [PHP] Log-in script help

2005-01-26 Thread Tom
th. This stops people on public machines from hitting a back button and being authenticated as the previous user. Tom not sure what your PHP experience is... but hopefully the above steps will help you out some.. Cheers! Joe On 25 Jan 2005 17:35:08 -0600, Bret Hughes <[EMAIL PROTECTED]

Re: [PHP] Apache: Request exceeded the limit of 10 internal redirects

2005-01-26 Thread Tom
y a file extension in the same way as a domestos environment, it is just part of the filename). eg1) blah => blah (no change as it doesn't match the regex) eg2) favicon.ico => favicon.ico.php when the rule next runs, it finds that favicon.ico.php does not match the exception of .php

Re: [PHP] check server status...please help

2005-01-27 Thread Tom
secondary (and tertiary...) sites and directs traffic to whichever has the lowest load, or to whichever site the rules are set to. This is of course a more expensive solution that may not be at all applicable in your instance (expense is the purchase and hosting of the load balancer hardware)

Re: [PHP] mysql_pconnect / persistent database conections

2005-01-28 Thread Tom
Ben Edwards wrote: Been meaning to investigate persistent database connections for a while. Coming from a rdbms background (oracle with a bit of whatcom sqlanywhare) I have always felt that the overhead of opening a connection at the beginning of each page was a little resource intensive. MySQL

[PHP] file upload error

2005-01-31 Thread Tom
me more debugging info:'; 16 print_r($_FILES); 17 print ""; 18 } 19 20 ?> 3) Output :- Possible file upload attack! Here is some more debugging info:Array ( [userfile] => Array ( [name] => MANIFEST [type

Re: [PHP] file upload error

2005-02-01 Thread Tom
nd is not re-read until I restart the entire box. Anyone out there know why this may be, or a slightly better way of getting around it than rebooting? (By the way, the upload functionality is fine after the reboot :)) Ta Tom Marek Kilimajer wrote: Tom wrote: Hi I have a very simple file upload for

Re: [PHP] Getting two queries into one result set

2005-02-02 Thread Tom
Graham Cossey wrote: You don't say how many tables you have, how they are named or anything outside of the query itself. Assuming that not all your tables are named PID_* how about simply doing SHOW TABLES LIKE '%PID_%' and selecting appropriate results within the php script using strstr or regular

Re: [PHP] How to get new row on top?

2001-02-18 Thread Tom
file Here's a code sample that I just tested... $new_line=" $LABEL\n"; $filecontents = join ('', file('./classified.html')); $fp=fopen("./classified.html","w"); fwrite($fp,$new_line); fwrite($fp,$filecontents); fclose($fp); Hope that

Re: [PHP] Re: Php search results]

2002-11-23 Thread Tom Culpepper
rpos($results, $keyword)+200; $length=$endposition-$startposition; $item=substr($item, $startposition, $length; echo $item ?> Tom Culpepper www.multicasttech.com [EMAIL PROTECTED] Alex wrote: > you could also use regular expressions, but php isn't perl, so good luck on > that one

Re: [PHP] grabbing data from a site

2002-11-23 Thread Tom Culpepper
} fclose($fp); $start_position=strpos($item, $start)+strlen($start); $end_position=strpos($item, $end); $length=$end_position-$start_position; $item=substr($item, $start_position, $length); } echo $item; ?> Tom Culpepper Multicast Technologies Adam wrote: someone gave me the followin

Re: [PHP] put result of "include" into a variable

2002-11-23 Thread Tom Culpepper
Try using fopen() to open the file and then fread() to read it into the buffer and set that equal to the variable. Tom Culpepper Multicast Technologies Patrick Anderson at TUE wrote: Hi, For some (strange, I know) reason I would like to copy the content of a webpage into a database. I would

Re: [PHP] Parse URLs

2002-11-23 Thread Tom Culpepper
rl; the only way to change it dynamically on the same page would be javascript. -tom culpepper Stephen wrote: I have a simple post script and I want to make it so if a user types in a URL of some sort, to change it to make it clickable. How could I do that? Thanks, Stephen Craton http://www.melc

Re: [PHP] Parse URLs

2002-11-23 Thread Tom Culpepper
from the archives of the list http://www.phpbuilder.com/mail/php-windows/2001042/0222.php -tom culpepper Stephen wrote: They are entering in a whole paragraph or two of text and I want to search the paragraph for URLs then make it a clickable URL and then store it in a MySQL database

Re: [PHP] Decrypt Password

2002-11-26 Thread Tom Woody
or.us > > "Life is a gift from God. Wasting it is like destroying a gift you got > from the person you love most." -- http://www.melchior.us -- Tom Woody Systems Administrator NationWide Flood Research, Inc. phone: 214-631-0400 x209 fax: 214-631-0800 Don't throw your compu

Re: [PHP] php bugs (Chinese word display problem)-help

2002-11-26 Thread Tom Culpepper
I am not positive of the problem as I can not see your code, but if you want to display the words that end in '5C' the you can do them like so: \(escape character) like this: \(95 5C 5C) If you could sttach some code we might have a better idea. -tom culpepper [EMAIL PROTECTED]

Re: [PHP] Invalid Charactors in a string.

2002-11-26 Thread Tom Culpepper
lookup ereg() and eregi() -tom culpepper Philip J. Newman wrote: Where should i start, tips wanted. I would like to check a username string for valid charactors before the name is processed. Someone point me in the right direction please --- Philip J. Newman. Head Developer. PhilipNZ.com New

Re[2]: [PHP] object passing by reference

2002-11-27 Thread Tom Rogers
mmy"); $dad = new parentClass("I want a new Porche", $son); echo $dad->child->goo(); echo $dad->child->m; echo $son->m; -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Logging out and session ids

2002-11-29 Thread Tom Rogers
gain, or at least I think that is what is happening :) This should not be a problem as the data associated with the old session is gone. If you close the browser and start a fresh one you will get a new session id. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Logging out and session ids

2002-11-29 Thread Tom Rogers
Hi, I have never bothered with the cookie, I only delete the server side info. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Inheritance problem

2002-12-01 Thread Tom Rogers
gle =& $jungle; //<<<<< } function fall($density) { $this->jungle->receiverain($density); } } // Rain -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RV: includes & globals

2002-12-01 Thread Tom Rogers
t as a GLOBAL inside the function, but nothing CA> happens. Here's part of my code: CA> This is part of my product's index.php file: CA> Your if statements should be like this: if ($LOCATION == "productos") //needs the double '=' sign otherwise $LOCATION

Re: [PHP] How to handle "so called" expired sessions??

2002-12-02 Thread Tom Rogers
Gerard Samuel GS> http://www.trini0.org:81/ GS> http://dev.trini0.org:81/ Do your own session timing by storing a last access time in sessions and check the duration yourself, if it is over the timeout you want delete the session data and start again. That way the cookie is ok but won&#

Re: [PHP] Validating get and post data

2002-12-02 Thread Tom Rogers
; -- BG> http://bethanoia.dyndns.org/ BG> rss feed: http://bethanoia.dyndns.org/bethanoia.rss switch will treat 0 as false which ever way you try to dress it up :) I solved a similar problem like this: switch($c){ case (ord($c) > 47 && ord($c) < 58)?True:False:

Re[2]: [PHP] Validating get and post data

2002-12-02 Thread Tom Rogers
noia.rss TR> switch will treat 0 as false which ever way you try to dress it up :) TR> I solved a similar problem like this: TR> switch($c){ TR>case (ord($c) > 47 && ord($c) < 58)?True:False: TR> $output .=$c; TR>break; TR>

Re: [PHP] help needed with crypt()

2002-12-03 Thread Tom Rogers
hoo.com This line should probably be like foreach($data as $line ) { //currently date and you will have to extract $salt from the password field too -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] help needed with crypt()

2002-12-03 Thread Tom Rogers
regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] How to handle "so called" expired sessions??

2002-12-03 Thread Tom Rogers
n expired data after it expires and before it is deletedmsession does so I hacked it to cleanup if expired data is requested. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] My first post

2002-12-03 Thread Tom Rogers
uery2= "SELECT * FROM tabletosearch WHERE fieldtosearch LIKE '%" .$searchword. "%' ORDER BY whatever ASC ".$limit; $result = mysql_query($Query2) or die(mysql_error()); $hstring = $page->make_head_string('Results'); $pstring = $page

Re[4]: [PHP] How to handle "so called" expired sessions??

2002-12-03 Thread Tom Rogers
Hi, Wednesday, December 4, 2002, 1:04:07 PM, you wrote: S> I have a similar problem only my sessions expire once you leave the site, S> even for a second. I'm not so experienced with cookies so how can I fix S> this? S> - Original Message ----- S> From: "Tom Roge

Re[4]: [PHP] How to handle "so called" expired sessions??

2002-12-03 Thread Tom Rogers
eturn stale data which could be bad in a login type of situation. JWH> Okay, so what's your question? The cookie and data is still there, but JWH> it's expired? How? As far as I know it's not expired until it is JWH> deleted. JWH> ---John Holmes... -- regards, To

Re[6]: [PHP] How to handle "so called" expired sessions??

2002-12-03 Thread Tom Rogers
x27;t log out and the session is open to everyone, session timeout is supposed to help prevent these cases or at least reduce the chance. But of course the main use of session timeout is to frustrate developers who take more than 40 mins to suss out the next bit of code -- regards, Tom -- PHP

Re: [PHP] Whimper, help :)

2002-12-03 Thread Tom Rogers
T JTJ> ('".stripslashes($search)."' IN BOOLEAN MODE) ORDER BY id JTJ> asc"; JTJ> See (http://ccl.flsh.usherb.ca/print/display.table.inc.phps) JTJ> What is the correct PHP syntax to get MySQl to read my SQl correctly? JTJ> What am I f***ing up? JTJ

Re: [PHP] Re: mcrypt 2.4.x - trouble with small data fields?

2002-12-04 Thread Tom Rogers
$iv = pack("a".mcrypt_enc_get_iv_size($td),$iv); mcrypt_generic_init ($td, $key, $iv); $id = mdecrypt_generic ($td, base64_decode($eid)); $len = strtok($id,'-'); $id = substr($id,(strlen($len)+1),$len);

  1   2   3   4   5   6   7   8   9   10   >