Re[2]: [PHP] eval function

2003-08-23 Thread Tom Rogers
Hi, Sunday, August 24, 2003, 2:32:01 AM, you wrote: MW That's the error I find in the apache-log. On the screen, I get MW nothing but a white page. By the way I have error_reporting(E_ALL); MW but I never get errors reported... MW PHP Fatal error: Call to undefined function: () in

Re: [PHP] user-defined superglobals?

2003-08-23 Thread Tom Rogers
Hi, Sunday, August 24, 2003, 3:45:33 AM, you wrote: MN Hi List, MN is there a way (mybe in php5?) to define/declare a global var as a MN superglobal, so that I can use this var like the known superglobals MN ($_GET, $_SESSION, etc.) ??? MN If not, is there a list for feature requests? MN

Re: [PHP] eval function

2003-08-22 Thread Tom Rogers
Hi, Saturday, August 23, 2003, 8:38:32 AM, you wrote: MW Hi php-general, MW I have a question about eval(); MW I'm having multiple pagenames I store in a database. I also have a lot MW of functions starting with content and then the name of the pages MW taken from the database. Ex: pagenames =

Re: [PHP] How to make an argument optional...confirmation...

2003-08-21 Thread Tom Rogers
Hi, Friday, August 22, 2003, 12:55:37 PM, you wrote: JV I want to create a function with an optional argument/parameter but have JV never read a concrete answer on how to do it. JV This is what I am assuming JV function test(arg1,arg2,arg3 = null) JV { JV arg3 will be optional JV } JV

Re: [PHP] Removing empty array values.

2003-08-18 Thread Tom Rogers
Hi, Monday, August 18, 2003, 10:03:25 PM, you wrote: z How do I remove empty array values? z -- z - Zavaboy z [EMAIL PROTECTED] z www.zavaboy.com In a loop with unset() foreach($array as $key=$val){ if(empty($val) unset($array[$key]); } -- regards, Tom -- PHP General Mailing List

Re: [PHP] Problem with the post variables.

2003-08-18 Thread Tom Rogers
Hi, Tuesday, August 19, 2003, 12:03:51 AM, you wrote: KKA Guys I have a problem here. KKA I'm using PHP 4.3.2 and httpd 1.3.28. KKA Look my exemple. KKA I have a page whith a Form method post, and I submit this page to teste2.php, but I dont can request de data from the text box... KKA

Re: [PHP] Problems with post (Again)

2003-08-18 Thread Tom Rogers
Hi, Tuesday, August 19, 2003, 2:26:35 AM, you wrote: KKA This is my log erros, I`ve changed my POST_MAX_SIZE in the php.in, and this value is constant. KKA Unknown(0) : Warning - Unknown(): POST Content-Length of 215 bytes KKA exceeds the limit of -1048576 bytes KKA Klaus Kaiser Apolinario

Re: [PHP] [php] explode that :) !

2003-08-17 Thread Tom Rogers
Hi, Sunday, August 17, 2003, 12:58:23 PM, you wrote: JTJ $P1OC1Q1 = 1¶some text or some comment; JTJ echo trtdYour score is: /tdtd; $score=split($P1OC1Q1,¶); echo $score[0]./td/tr\n; JTJ Do I have to go through all that to get score[0] ? JTJ John if the number is always first and an

Re[2]: [PHP] Container functions....

2003-08-14 Thread Tom Rogers
Hi, What about this: if(developer_execute()) { execute this code only } Where the function developer_execute would be defined as: function developer_execute() { if(getenv(REMOTE_ADDR)==000.000.000.000) return true; return false; } -- regards, Tom -- PHP General Mailing List

Re[2]: [PHP] segmentation faults

2003-08-14 Thread Tom Rogers
Hi, Monday, August 11, 2003, 7:42:40 AM, you wrote: MP Thanks for the reply. Kind of good to know I am not the only one having MP difficulties. I too have arrays of objects - although had the problem when MP I was dealing with arrays that were only 2 or 3 items long - and also am MP passing

Re[2]: [PHP] htmlspecialchars() and HTML code

2003-08-11 Thread Tom Rogers
Hi, Saturday, August 9, 2003, 1:57:04 AM, you wrote: TJQ CPT John W. Holmes wrote: TJQ --SNIP-- TJQ Try this: TJQ TJQ textarea name=textThis is lt;somegt; text/textarea TJQ TJQ If you submit that text and then print $_REQUEST['text'], you'll TJQ see that TJQ you have TJQ TJQ This

Re: [PHP] Piping and the CLI parser

2003-08-10 Thread Tom Rogers
Hi, Tuesday, August 5, 2003, 3:25:47 PM, you wrote: NF Greets everybody. NF My question regards psuedo-DOS (XP cmd.exe) piping and the CLI php parser. NF If you could help please continue reading. NF The documention specifies that the CLI php parser sets up STDIN and its NF kin. NF It does in

Re: [PHP] Making i18n work on all Unix webservers ?

2003-08-04 Thread Tom Rogers
Hi, Monday, August 4, 2003, 8:25:18 PM, you wrote: CC With the following code to translate messages in french, CC we need to put the mo files in a directory like CC ./local/xxx/LC_MESSAGE/messages.{mo,po} CC putenv(LANGUAGE=french); CC setlocale(LC_ALL, 'fr_BE'); CC

Re[2]: [PHP] Making i18n work on all Unix webservers ?

2003-08-04 Thread Tom Rogers
Hi, Monday, August 4, 2003, 11:04:19 PM, you wrote: CC Thanks. But it looks like it's more complicated. CC setlocale(LC_MESSAGES,'0') CC returns fr_BE, but it seems PHP looks in ./local/fr, CC not in ./local/fr_BE when searching the catalog files, CC at least on one webserver. (using PHP

Re: [PHP] Clarification..... UTF-8 Enccoding .....

2003-08-03 Thread Tom Rogers
Hi, Monday, August 4, 2003, 2:03:57 PM, you wrote: RPJ Any idea on how to get rid of Windows chracters. I have paroblem with RPJ users cutting and pasting out of Microsoft Word into textarea's and RPJ input-boxes and the special characters like quotations and apostrophes RPJ messing up the

Re: [PHP] Cookies on WinXP

2003-07-31 Thread Tom Rogers
Hi, Friday, August 1, 2003, 8:53:51 AM, you wrote: SB I still can't figure something out. I am using WinXP/Apache 1.3.24/PHP SB 4.2.3 on my laptop and my cookies still don't work like they SB should. Hopefully someone can explain to me why. SB ? SB $cookhost=$_SERVER[HTTP_HOST]; SB

Re: [PHP] Possible My Website was hacked... with PHP... please tell me what this is???

2003-07-31 Thread Tom Rogers
Hi, Thursday, July 31, 2003, 4:06:12 PM, you wrote: JH I found this on my server... I have no idea what it is... can someone JH tell me what it does... if you use apache you can do this to protect against uploaded php scripts LocationMatch /uploads/ php_flag engine off /LocationMatch

Re: [PHP] Global variables in a class? Nested classes VS inheritance...

2003-07-30 Thread Tom Rogers
Hi, Thursday, July 31, 2003, 1:30:54 AM, you wrote: amc Hello, amc I'm lookin for some tips on the best way to do this... amc I make a database connection outside of my classes... lets call it amc $myDBConnection. I need to use this connection in a class nested in a amc class... Was wondering

Re: [PHP] php-cli - Controlling external programs

2003-07-30 Thread Tom Rogers
Hi, Thursday, July 31, 2003, 1:53:50 PM, you wrote: MM I'm writing a script to be run from the command line. It controls my DAT MM autoloader (tape changer) and runs tar so that I can automate my backups. MM With the -M option, tar will prompt for a new tape when the current tape is MM full. How

Re: [PHP] uploading a file from a form

2003-07-29 Thread Tom Rogers
Hi, Friday, July 25, 2003, 1:48:50 AM, you wrote: AM I am having a problem with uploading a file from a form. I changed the AM permission on the directory, but I am still getting an error. Here is my AM error: AM Copy failed./home/vencel/www/images/apt/company_logo/14Update Failed! AM It

Re: [PHP] DHCP web interface. New version.

2003-07-29 Thread Tom Rogers
Hi, Tuesday, July 29, 2003, 2:40:55 PM, you wrote: DV If anyone knows how to force the arp table to be current, that would help. DV Sometimes a machine is on the network, and I *know* for a fact it is, but it DV doesn't show up in arp -n *grumble*. DV Follow the link below. DV

Re[2]: [PHP] uploading a file from a form

2003-07-29 Thread Tom Rogers
Hi, Wednesday, July 30, 2003, 12:09:44 AM, you wrote: AM The version is PHP Version 4.2.3. AM On Tue, 29 Jul 2003, Tom Rogers wrote: Then you can use the $_FILES array like this: if($_FILES[photo][error]==0){ //make sure no errors on upload if(!empty($_FILES[photo][name])){ //do we

Re[2]: [PHP] Get Local IP Address

2003-07-28 Thread Tom Rogers
Hi, Monday, July 28, 2003, 4:29:46 PM, you wrote: Try this: ?php exec('ipconfig',$catch); foreach($catch as $line){ if(eregi('IP Address',$line)){ list($t,$ip) = split(':',$line); echo 'IP is '.$ip.\n; } } ? CL Thanks Tom, but I think it only work

Re[2]: [PHP] Get Local IP Address

2003-07-28 Thread Tom Rogers
Hi, Tuesday, July 29, 2003, 3:11:43 AM, you wrote: CZ * Thus wrote Tom Rogers ([EMAIL PROTECTED]): Hi, Monday, July 28, 2003, 4:29:46 PM, you wrote: Try this: ?php exec('ipconfig',$catch); foreach($catch as $line){ if(eregi('IP Address',$line)){ list($t,$ip

Re: [PHP] problem: creating global alias inside function

2003-07-28 Thread Tom Rogers
Hi, Tuesday, July 29, 2003, 12:32:33 AM, you wrote: MP The following code illustrates a problem I've got with references (running MP on PHP 4.3.2). Can anyone explain it for me? Thanks in advance for any MP assistance! MP Martin MP ?php MP $globalvariable = 0; MP $one = 1; MP //want to set

Re: [PHP] problem: creating global alias inside function

2003-07-28 Thread Tom Rogers
Hi, Tuesday, July 29, 2003, 12:32:33 AM, you wrote: MP The following code illustrates a problem I've got with references (running MP on PHP 4.3.2). Can anyone explain it for me? Thanks in advance for any MP assistance! MP Martin MP ?php MP $globalvariable = 0; MP $one = 1; MP //want to set

Re: [PHP] Read values from Text Area Box

2003-07-27 Thread Tom Rogers
Hi, Sunday, July 27, 2003, 3:04:56 PM, you wrote: K2 Hi, there. K2 I'm trying to find out how to get multiple values from text area box K2 textarea/textarea. K2 Values are like this. K2 aaa\n K2 bbb\n K2 ccc\n K2 ddd\n K2 eee\n K2 I need to take \n from each value and put all the values to

Re: [PHP] Get Local IP Address

2003-07-27 Thread Tom Rogers
Hi, Monday, July 28, 2003, 12:21:06 PM, you wrote: CL How can I get the local Computer IP Address when running PHP program in CL Windows command line (i.e. php getmyip.php) CL ** Since the PHP did not are run on Webserver, so _SERVER[SERVER_ADDR] CL won't work. CL Many thanks in advance. CL

Re: [PHP] unique id

2003-07-26 Thread Tom Rogers
Hi, Saturday, July 26, 2003, 5:58:41 PM, you wrote: j Hi there! j What's the best way to create uids (unique ids) even when runnig at j exactly same time (microseconds)? j is this enough ??? j $r = mt_rand(); j $uid = uniqid(getmypid() . $r); j thanks j Jan I use: $id =

Re[2]: [PHP] Display Records (brief summary and full details)

2003-07-25 Thread Tom Rogers
Hi, Saturday, July 26, 2003, 7:28:16 AM, you wrote: PSG Thanks Tom, PSG I appreciate your help ! however I have a 2 quick questions... PSG 1.) should we not save the names of the companies as $companies[$row] PSG = $row['company']; PSG 2.) the approach of accessing the variable as

Re: [PHP] Display Records (brief summary and full details)

2003-07-24 Thread Tom Rogers
Hi, Friday, July 25, 2003, 7:13:27 AM, you wrote: PSG Hello All, PSG I am trying to create a small MySQL application using PHP. I have a PSG table of contacts with each record having over 30 fields. I have a PSG search page where a logged-in admin can search for a particular record PSG on

Re[2]: [PHP] arguments against moving site from Linux/Apache/PHP server to Windows/IIS/PHP needed

2003-07-24 Thread Tom Rogers
Hi, Friday, July 25, 2003, 7:21:32 AM, you wrote: CS --- Chris W. Parker [EMAIL PROTECTED] wrote: If you ever use IIS you can get a tool (free) from MS called URLScan. It's sort of like mod_rewrite in that it rejects all those strange requests before they even get to IIS. Good tool. It's meant

Re: [PHP] I need a PHP alternative to Windows Scheduled Tasks

2003-07-23 Thread Tom Rogers
Hi, Wednesday, July 23, 2003, 7:13:17 PM, you wrote: PP I have concluded that Bill Gates is Satan! PP Ok, I'm late, but... I have had 26 scheduled tasks that run every hour on the hour every day for eternity to go and run a series of Java files I wrote that connect remotely to a remote server

Re[2]: [PHP] classes v. functions

2003-07-23 Thread Tom Rogers
Hi, MM troll. :) MM Execution speed is most definitely /not/ all that matters, though it MM really depends on the situation. It is often cheaper to throw MM CPU/storage/RAM at a problem than it is to spend more developer time, MM especially when one of the considerations is future maintenance or

Re: [PHP] Some SESSION Vars not Registering

2003-07-22 Thread Tom Rogers
Hi, Wednesday, July 23, 2003, 6:22:58 AM, you wrote: JS I have a function that assigns some session variables I need available JS during a user's visit. Oddly enough, as I assign about 7 variables, I JS noticed that not all had data. This is the function: JS function setupUserEnv ($userArray)

Re[2]: [PHP] Some SESSION Vars not Registering

2003-07-22 Thread Tom Rogers
Hi, Wednesday, July 23, 2003, 12:03:07 PM, you wrote: WV Don't all variables registered to a session need to be declared as global? WV Warren Vail WV [EMAIL PROTECTED] I am sure they do not but I just tried reading the docs and it is as clear as mud so its back to the suck it and see method

Re[2]: [PHP] running a php script in /cgi from /web

2003-07-20 Thread Tom Rogers
Hi, Sunday, July 20, 2003, 12:30:30 AM, you wrote: DW Thanks for the response Tom. Unfortunately, that won't work either. A DW little background I'm using Dreamweaver and their template feature. DW for the site. I want to read some info out of a text file and format it DW into the

Re: [PHP] classes v. functions

2003-07-19 Thread Tom Rogers
Hi, Saturday, July 19, 2003, 7:08:55 AM, you wrote: A This may show my ignorance or my refusal to take for granted something I A don't fully understand but I have a hard time figuring out the advantage of A using classes as opposed to just functions. I am certainly new to php and A at first

Re: [PHP] running a php script in /cgi from /web

2003-07-18 Thread Tom Rogers
Hi, Saturday, July 19, 2003, 10:31:04 AM, you wrote: DW Folks, DW I've searched through the archives of the general mailing list and DW cannot find the answer to my question. My web hosting service requires DW ALL scripts run from /cgi. I've tried putting ?php ? and SCRIPT language=php

Re[2]: [PHP] BigEndian to integer

2003-07-15 Thread Tom Rogers
Hi, Tuesday, July 15, 2003, 7:00:33 PM, you wrote: http://www.php.net/pack A little background on what Im doing. Im attempting to read realaudio files for their metadata, so Im reading from a binary string, and Im currently using unpack() (Im new to using this function, so I may be

Re: [PHP] elegant way of doing something else the last time through a loop?

2003-07-14 Thread Tom Rogers
Hi, Monday, July 14, 2003, 9:11:11 PM, you wrote: PA HI list PA Is there an elegant way to know when the last time through the loop is PA going to be and to do something else? PA I want to search through a table by exploding the search string and PA then compounding my own sql string by

Re: [PHP] BigEndian to integer

2003-07-14 Thread Tom Rogers
Hi, Monday, July 14, 2003, 6:00:04 PM, you wrote: GS A bit off topic GS Im trying to figure out how to convert BigEndian byte words to integers. For example - GS 0 0 0 18 = 18 GS The only way I know how to convert this is by writing down on paper, and GS writing 8 4 2 1 above the numbers and

Re: [PHP] Mailing list server with PHP frontend

2003-07-11 Thread Tom Rogers
Hi, Saturday, July 12, 2003, 9:47:29 AM, you wrote: JN Hi! JN I want to know if anyone knows about a good mailing list manager that has JN got a PHP administration frontend JN I've found many PHP scripts for sending newsletters and announcementes, but JN that's it's not what I want JN I want a

Re: [PHP] How to hide URL but it's not from a form just a link ?

2003-07-11 Thread Tom Rogers
Hi, Saturday, July 12, 2003, 4:05:34 AM, you wrote: J How can I hide this link so value can't be changed? J I don't want to change anything at the server level, and its not from a J form so I cant do a post -vs- a get. J http://www.abcd.com/SearchSet.php?searchby=cust_nosearch=1value=WOR032 J

Re[2]: [PHP] How to hide URL but it's not from a form just a link ?

2003-07-11 Thread Tom Rogers
Hi, Saturday, July 12, 2003, 12:45:26 PM, you wrote: JF What about sessions? Depends on your circumstances and the flow of JF pages, but storing all these vars in a session, then only passing the JF session id around in the URL could be an alternative JF Justin Yes you can do it with

Re: [PHP] mcrypt warning

2003-07-10 Thread Tom Rogers
Hi, Thursday, July 10, 2003, 12:41:28 AM, you wrote: DJ Hi All, DJ I have the following function: DJ function encrypt ($x) { DJ $ini = parse_ini_file ($GLOBALS['INI_PATH']); DJ $td = mcrypt_module_open ('tripledes', '', 'ecb',

Re[4]: [PHP] Object assignment

2003-07-10 Thread Tom Rogers
Hi, Friday, July 11, 2003, 4:30:41 AM, you wrote: MG Well I've made a signifigant improvement to this function, and it's now the MG parsing operation is only something like 26 lines. It works flawlessly (so MG far) for XML that does not have repeat element names on the same level. MG Which seems

Re[5]: [PHP] Object assignment

2003-07-10 Thread Tom Rogers
Hi, Did some more tweaking and if we create a new element for each node ther is no need to clone, saves a few lines of code :) function parseBranch($branch, $doc, $parent) { foreach ($branch as $key = $val) { switch ($key) { // parent attributes

Re: [PHP] Excel Parser

2003-07-10 Thread Tom Rogers
Hi, Friday, July 11, 2003, 4:27:13 AM, you wrote: JM Hi all, JM Does anyone know of any free Excel parsing non-COM code available on the JM net? Just straight php driven? JM I've found a couple commercial solutions but would like to try this myself JM or save money. Thanks for any help. JM

Re[2]: [PHP] Object assignment

2003-07-09 Thread Tom Rogers
Hi, Thursday, July 10, 2003, 6:44:55 AM, you wrote: MG Tom: MG Thanks for the help. Using the array setup you described, I end up with the MG value of each record node being appended to a single instance of the MG parent node. And that single instance of the parent node is the final one MG

Re[2]: [PHP] Object assignment

2003-07-09 Thread Tom Rogers
Hi, Thursday, July 10, 2003, 6:44:55 AM, you wrote: MG Tom: MG Thanks for the help. Using the array setup you described, I end up with the MG value of each record node being appended to a single instance of the MG parent node. And that single instance of the parent node is the final one MG

Re[2]: [PHP] print vs heredoc

2003-07-08 Thread Tom Rogers
Hi, btw what would be nice is a print_raw command that does no parsing just sends the stuff :) (Would be good for template systems where you know there is no php hidden in there.) ... might gain a couple of micro seconds PO I believe this is called breaking out of PHP mode PO and into HTML

Re[3]: [PHP] print vs heredoc

2003-07-08 Thread Tom Rogers
Hi, Tuesday, July 8, 2003, 5:22:04 PM, you wrote: TR Hi, btw what would be nice is a print_raw command that does no parsing just sends the stuff :) (Would be good for template systems where you know there is no php hidden in there.) ... might gain a couple of micro seconds PO I believe this

Re: [PHP] Object assignment

2003-07-08 Thread Tom Rogers
Hi, Wednesday, July 9, 2003, 10:38:22 AM, you wrote: MG I'm having trouble creating objects with DOMXML. As I loop through a level MG of nodes, I'm creating a new element based on the array's key name. The XML MG might look like this: MG rootElement MG record id=1Value 1/record MG record

Re: [PHP] print vs heredoc

2003-07-07 Thread Tom Rogers
Hi, Monday, July 7, 2003, 11:33:38 PM, you wrote: SK Hi, again!! SK I'm looking for opinions as to which is better/faster, print or heredoc. SK print makes the code layout look nice and eazy to debug, where heredoc IS faster but makes the code look like a nightmare with everything jammed

Re: [PHP] Question

2003-07-06 Thread Tom Rogers
Hi, Sunday, July 6, 2003, 3:15:56 AM, you wrote: TR When is the relase date for php 5? at this point I think the only digits filled in are 200x-xx-xx -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] echo not working!!!

2003-07-06 Thread Tom Rogers
Hi, Sunday, July 6, 2003, 3:55:39 PM, you wrote: a I'm setting up php on the apache server for the first time here running a Slackware linux, and I cannot get the echo command to display properly. a My source file is phptest.php and it looks like this: a html a head a titlePHP Test/title a

Re: [PHP] include/require inside of function

2003-07-04 Thread Tom Rogers
Hi, Friday, July 4, 2003, 5:11:18 PM, you wrote: AC Is there anyway to include a file inside of a function and have the included AC stuff be global? For instance if I defined a class or a function in that AC include file, I want to be able to use that class outside of the function. AC On the

Re: [PHP] track_vars in apache httpd.conf

2003-07-04 Thread Tom Rogers
Hi, Friday, July 4, 2003, 5:27:53 PM, you wrote: TT hello, TT I faced a problem with apache httpd.conf. TT I have a virtual host and i write in httpd.conf that lines : TT IfModule mod_php4.c TT php_value track_vars Off TT /IfModule TT but not working TT please advise. TT Thanks try

Re: [PHP] Snarl, hiss, growl (frustration)

2003-07-04 Thread Tom Rogers
Hi, Saturday, July 5, 2003, 12:33:25 AM, you wrote: KB Why does this not work? It is just a simple hit counter (hence the KB snarls, hissing, and growling). It logs the ips address but does not KB increment $current or log it. I do have counter.txt and ips.txt chmod'd KB to 777. Ips.txt

Re: [PHP] DOMXML usage

2003-07-03 Thread Tom Rogers
Hi, Friday, July 4, 2003, 4:54:06 AM, you wrote: MG I'm attempting to create a generic XML writer with the DOMXML functions MG which takes as its input the array structure generated by gdemartiti on this MG function page: MG http://us3.php.net/manual/en/function.xml-parse-into-struct.php MG

Re[2]: [PHP] Refreshing

2003-06-30 Thread Tom Rogers
Hi, Tuesday, July 1, 2003, 3:41:56 AM, you wrote: JB Also, this may not be PHP but...does anyone know how to stop the JB annoying click on Internet Explorer when something refreshes? JB [/snip] control panel - sounds - set select to 'none' -- regards, Tom -- PHP General Mailing List

Re: [PHP] File Uploads!

2003-06-29 Thread Tom Rogers
Hi, Sunday, June 29, 2003, 9:49:43 PM, you wrote: CT Hi, CT This is the error I get in the log file: CT [error] PHP Warning: POST Content-Length of 11184886 bytes exceeds the CT limit of 8388608 bytes in Unknown on line 0 CT This is absolutely correct. The problem is CT this

Re[2]: [PHP] File Uploads!

2003-06-29 Thread Tom Rogers
Hi, Sunday, June 29, 2003, 10:17:43 PM, you wrote: TR Hi, TR Sunday, June 29, 2003, 9:49:43 PM, you wrote: CT Hi, CT This is the error I get in the log file: CT [error] PHP Warning: POST Content-Length of 11184886 bytes exceeds the CT limit of 8388608 bytes in Unknown on line 0 CT

Re[4]: [PHP] File Uploads!

2003-06-29 Thread Tom Rogers
Hi, Monday, June 30, 2003, 4:14:02 AM, you wrote: JW On Sunday 29 June 2003 20:40, Tom Rogers wrote: Maybe you have to wind up the post_max_size in php.ini and then control with MAX_FILE_SIZE in the form for the error to show up in the $_FILES array JW MAX_FILE_SIZE in the form is client

Re: [PHP] Passing form value into another form value?

2003-06-29 Thread Tom Rogers
Hi, Monday, June 30, 2003, 2:41:59 PM, you wrote: MJLM Im a beginner and was hoping if you could help me on passing a value into a MJLM form and into another form? Im not sure what do you call that sequence but I MJLM hope you could get me into a howto section to do that or give me something MJLM

Re: [PHP] Defining Super Globals

2003-06-23 Thread Tom Rogers
Hi, Tuesday, June 24, 2003, 3:36:12 AM, you wrote: DAC Can some1 tell me how can I define Super Globals (like the Application DAC Scope in ASP)? Have a look at msession, that will allow you to setup application wide variables -- regards, Tom -- PHP General Mailing List

Re: [PHP] Problem while retrieving data from cookie with unserialize

2003-06-21 Thread Tom Rogers
Hi, Friday, June 20, 2003, 7:42:48 AM, you wrote: SÖ Hi, I’m having this problem: SÖ I set a cookie using this: SÖ $sql = UPDATE member SET cookie=$cookie WHERE SÖ . SÖ id = $this-id; SÖ $this-mysql-query($sql); SÖ

Re: [PHP] Generating Related Drop Down Boxes

2003-06-11 Thread Tom Rogers
Hi, Thursday, June 12, 2003, 5:19:00 AM, you wrote: MW Hello all: MW I have searched the archives, and although I know this is probably there can MW not find it. I'm probably just not searching for the right subject. Here MW is what I am looking for. MW I have a table with Location and Hotel,

Re: [PHP] can't figure out how to get this dynamic dropdown to work correctly

2003-06-11 Thread Tom Rogers
Hi, Thursday, June 12, 2003, 1:16:26 AM, you wrote: AM I have a form with two dynamic dropdowns that submit the form when an AM option is chosen. There is also a button at the bottom of the form that AM submits the form. AM The first drop down is a list of all customers. The user chooses a AM

Re: [PHP] prevent modifying querystring

2003-06-11 Thread Tom Rogers
Hi, Thursday, June 12, 2003, 12:25:05 AM, you wrote: AH for example i have form with a dropdown selection as shown below. AH FORM action=action.php AH SELECT name=total AH OPTION1/OPTION AH OPTION2/OPTION AH OPTION3/OPTION AH OPTION4/OPTION AH OPTION5/OPTION AH /SELECT AH /FORM AH Just say

Re: [PHP] imagearc() and imageline()

2003-06-06 Thread Tom Rogers
Hi, Friday, June 6, 2003, 9:21:23 AM, you wrote: DH Hello, DH My question concerns the php function 'imageline' and 'imagearc'. I am = DH using them to create tables with rounded borders. I thouroughly = DH examined the specs for these methods and have come to the conclusion = DH that it is

Re: [PHP] Does PHP have vb's 'mid' function (or similar)?

2003-06-05 Thread Tom Rogers
Hi, Thursday, June 5, 2003, 12:20:50 PM, you wrote: L I'm trying to find a function, similar to vb's 'mid' function that you can L return X amounts of characters at position Y from string Z. And I can't seem L to find one. L Any help? L I'm sure it's simple... so a little helper would be grand!

Re: [PHP] include_path

2003-05-27 Thread Tom Rogers
Hi, Wednesday, May 28, 2003, 2:56:31 PM, you wrote: AMK Can I adjust the include_path on a specific vhost, as opposed to AMK having it globally done in php.ini ? If so, how please? AMK -- AMK H| I haven't lost my mind; it's backed up on tape somewhere. AMK

Re[2]: [PHP] Finding the height of a JPG in pixels using PHP

2003-04-05 Thread Tom Rogers
Hi, Sunday, April 6, 2003, 2:51:36 PM, you wrote: Dd snip from Andrew Brampton [EMAIL PROTECTED] Dd You can use getimagesize on a jpg file to read its size, so either Dd save the jpg in MySQL to a file and then do a getImageSize, or before you place the jpg in to the database read its size and

Re[2]: [PHP] Apache SetHandler

2003-04-04 Thread Tom Rogers
Hi, Saturday, April 5, 2003, 6:29:50 AM, you wrote: Z Hi ! Z what i want is to write something in PHP which does authentication Z (not basic auth but my own DB driven stuff) and after that something Z apache resumes normal operation so that whatever is served afterwards Z does not need to know

Re: [PHP] Q. Adding line numbers to highlighted source

2003-04-03 Thread Tom Rogers
Hi, Friday, April 4, 2003, 3:27:55 PM, you wrote: AM I've been trying to add line-numbers to my source code, but can't seem to AM work out how to do it. AM As an example, I tried the following: AM ?php AM function addPrefix( $matches ) AM { AM static $line = 1; AM return $line++ .

Re[2]: [PHP] Q. Adding line numbers to highlighted source

2003-04-03 Thread Tom Rogers
Hi, Friday, April 4, 2003, 3:57:25 PM, you wrote: TR Hi, TR Friday, April 4, 2003, 3:27:55 PM, you wrote: AM I've been trying to add line-numbers to my source code, but can't seem to AM work out how to do it. AM As an example, I tried the following: AM ?php AM function addPrefix( $matches )

Re: [PHP] preg_match_all()

2003-04-03 Thread Tom Rogers
Hi, Thursday, April 3, 2003, 11:33:02 PM, you wrote: TJ I am having problems with preg_match_all spanning over newlines. TJ Using /m does not seem to ignore the the newlines. TJ // This works TJ // Both contents inside td and /td are found TJ $html = 'tr valign=top TJ td width=10One cell/td TJ

Re: [PHP] mysql_fetch_* and stripslashes

2003-03-26 Thread Tom Rogers
Hi, Wednesday, March 26, 2003, 9:10:26 PM, you wrote: AD Why is it that PHP does not automatically unescape data retrieved from a AD mySQL query? It seems to me that this should be the default behaviour as AD the bulk of what PHP web scripts do is display said data. I'm just AD wondering if I'm

Re: [PHP] foreach() or for()

2003-03-24 Thread Tom Rogers
Hi, Tuesday, March 25, 2003, 4:41:02 PM, you wrote: RW How Do, All? RW Here's one unsuccessful attempt to add each $val during a for: RW ? RW for ($z = 0;$z count($val);$z++) RW { RW

Re: [PHP] Select DataBase Mysql Problem

2003-03-23 Thread Tom Rogers
Hi, Sunday, March 23, 2003, 1:26:04 PM, you wrote: MA Hi everyone, MA FIRST THANKX FOR ANY HELP !! MA and THANKX FOR READING :) MA I'm a reall newbie on PHP and i'm build a php app to connect into a mysql MA database.. but i cannot select the database MA i have build the database, and created

Re: [PHP] [php] Blind?

2003-03-22 Thread Tom Rogers
Hi, Sunday, March 23, 2003, 4:25:29 PM, you wrote: JTJ I'm blind or tired or both. Anyone see anything wrong with: JTJ $sql = 'SELECT * FROM '.$table.' WHERE MATCH JTJ (author,title,book,journal,volumenumber,issuenumber,placeofpublication,publisher,year,pages) JTJ AGAINST

Re: [PHP] Error on mysql_num_rows

2003-03-20 Thread Tom Rogers
Hi, Thursday, March 20, 2003, 10:44:33 PM, you wrote: ehhc I've been trying to count records that match my query in MySQL using the ehhc examples given in the on-line manual as well as the user comments and I'm ehhc still getting the error: ehhc Warning: mysql_num_rows(): supplied argument is

Re: [PHP] Sensibly accounting for timezone differences?

2003-03-17 Thread Tom Rogers
Hi, Monday, March 17, 2003, 10:55:06 PM, you wrote: MW Hi All, MW I'm an Australian PHP developer and host most of my web sites on US MW servers. One in particular is primarily accessed by Australian visitors MW and I want to be able to reflect Australian Eastern Standard Times when MW writing /

Re: [PHP] How to convert an array to variables?

2003-03-15 Thread Tom Rogers
Hi, Sunday, March 16, 2003, 4:52:10 AM, you wrote: CK Hi all, CK I have an array that gives me this when I do: CK print_r($my_array); CK Array CK ( CK [0] = Array CK ( CK [dra_id] = 5 CK ) CK [1] = Array CK ( CK [dra_id] = 8 CK

Re[2]: [PHP] How to convert an array to variables?

2003-03-15 Thread Tom Rogers
Hi, Sunday, March 16, 2003, 8:20:49 AM, you wrote: CK Tom, CK This seems like what I need exactly, but I am having a bit of trouble CK getting it to work. CK Here is how I have worked around this, but I know there is a 'real' way CK to do this. Any thoughts? I had to set the variables, or

Re: [PHP] PHP newbie ... function with several returns ?

2003-03-15 Thread Tom Rogers
Hi, Sunday, March 16, 2003, 10:52:49 AM, you wrote: RD Hi ... PHP newbie here. RD I'm migrating from ASP/vbScript. RD I'd like to set up a subroutine that will change several variables at once. RD In VB, I can say: RD Private Sub Change_Variables ($variable1, $variable2) RD $variable1 =

Re[2]: [PHP] php file writting ?

2003-03-14 Thread Tom Rogers
Hi, Saturday, March 15, 2003, 4:53:44 AM, you wrote: RP Yes I did. RP Here is the code, maybe I am just missing something (this is the part RP where it writes and then opens again... RP $h6 = fopen(/etc/group.backup,a); RP for($i = 0; $i count($users); $i++) RP { RP

Re: [PHP] inserting parameters into URLs dynamically

2003-03-14 Thread Tom Rogers
Hi, Saturday, March 15, 2003, 7:31:52 AM, you wrote: MR We are looking for a way to set several key/value pairs (which will differ MR across users) such that they will persist during the user's session and MR be logged in the weblogs for every request that user makes. Some MR potential

Re: [PHP] cropping an image script

2003-03-13 Thread Tom Rogers
Hi, Friday, March 14, 2003, 2:07:28 AM, you wrote: AR In the following php script, the function takes the original file and crops AR to the destination file. AR I've ran the script using a .png file and a .jpg file. AR The .png works fine whereas the .jpeg file returns only part of the image AR

Re[2]: [PHP] cropping an image script

2003-03-13 Thread Tom Rogers
Hi, Friday, March 14, 2003, 3:49:03 AM, you wrote: TR Hi, TR Friday, March 14, 2003, 2:07:28 AM, you wrote: AR In the following php script, the function takes the original file and crops AR to the destination file. AR I've ran the script using a .png file and a .jpg file. AR The .png works

Re[4]: [PHP] cropping an image script

2003-03-13 Thread Tom Rogers
Hi, Friday, March 14, 2003, 7:20:10 AM, you wrote: AR I'm getting a fatal error on the following script using AR MS Win 98 / Apache Server / PHP 4.1.1. / php_gd.dll AR Fatal error: imagecreatetruecolor(): requires GD 2.0 or later in AR c:\apache\htdocs\testphoto.php on line 6 AR Is there a

Re: [PHP] Script Nane in CGI mode

2003-03-13 Thread Tom Rogers
Hi, Friday, March 14, 2003, 6:36:04 AM, you wrote: BY Hi BY When you want to know the name of the script you are running you can use BY : $SCRIPT_NAME. BY However, this info is not available when running a PHP script in CGI BY mode. BY If i have a fine called berber1.php and a link to this file

Re: [PHP] Intermittent CGI Errors

2003-03-13 Thread Tom Rogers
Hi, Friday, March 14, 2003, 7:03:09 AM, you wrote: JG My app works very well until you start to hit it hard. Then I get JG CGI Error JG The specified CGI application misbehaved by not returning a complete set of JG HTTP headers. The headers it did return are: JG The output of my script is a

Re: [PHP] If 1 IF fails, do the rest anyway...

2003-03-13 Thread Tom Rogers
Hi, Friday, March 14, 2003, 7:13:15 AM, you wrote: LG I know that in a case like this LG if((test1) (test2) (test3)) { LG ... LG } LG if test1 fails, dear PHP won't bother doing test2 and 3. Am I correct? Is there a syntax that will make it carry on with test2 and 3 anyway, regardless of

Re: [PHP] DomXML and Zend Engine 2

2003-03-13 Thread Tom Rogers
Hi, Friday, March 14, 2003, 10:36:50 AM, you wrote: ED Hi, ED I'm testing the last php5/ze2 snapshot for a future PHP application. I've ED a two line script[1] with domxml wich fail with ZE2 but succeed with ZE1. ED I know that ZE2 is in pre-alpha cycle (and domxml on a experimental state) ED

Re[2]: [PHP] DomXML and Zend Engine 2

2003-03-13 Thread Tom Rogers
Hi, Friday, March 14, 2003, 11:54:00 AM, you wrote: ED On Fri, 14 Mar 2003 11:37:05 +1000, Tom Rogers wrote: I think that should be ?php $doc = domxml_new_doc('1.0') ; //not 1,0 ED You're right, sorry ED I've made an error writing this post (. on the numeric pad output , in ED the news

Re: [PHP] Update Status Question

2003-03-12 Thread Tom Rogers
Hi, Thursday, March 13, 2003, 6:10:29 AM, you wrote: MW Hello: MW I have this line: MW $sql = Update Members Set Active='Y' where Username = '$_GET[UN]' And MW ActiveCode = '$_GET[ID]'; MW Is there a php function that will return true or false or something when MW this is processed. I.E. if

Re: [PHP] changing the brightness of an images

2003-03-12 Thread Tom Rogers
Hi, Thursday, March 13, 2003, 8:09:45 AM, you wrote: DH Hi, DH I hope this is the right newsgroup for this so if it is not, please, DH excuse me. DH I would like to be able to change the brightness of an image using PHP. DH Here are some more detiails: I would like to

<    1   2   3   4   5   6   7   8   9   >