[PHP] Korean mbstring settings?

2003-10-22 Thread Rasmus Lerdorf
Any Korean users using --with-mbstring=kr ? What do your mbstring.* settings in your php.ini file look like? I am assuming you don't need any output encoding translation but are you using input encoding translation? Or if you aren't using mbstring at all, but iconv or something else, I'd like t

Re: [PHP] set the PHP to look at library files.

2003-10-22 Thread jsWalter
"Robert Cummings" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > See the "include_path" setting in your php.ini file. Right! I have many classes I've pulled from phpclasses.org. They all sit in a CLASSES directory inside my PHP directory. Just like PEAR, same format as well. Ju

[PHP] there has to be a better way...

2003-10-22 Thread jsWalter
I need to read (write comes later) from a config file that we used to handle manually. I'm getting lazy, so I'm writing a web interface for this. What I have does this... - open a given file - dump entire file into a string - explode string into an array at the EOL marker - walk down this

Re: [PHP] there has to be a better way...

2003-10-22 Thread - Edwin -
On Wed, 22 Oct 2003 03:10:44 -0500 "jsWalter" <[EMAIL PROTECTED]> wrote: [snip] > There must be a better way to do this. [/snip] http://www.php.net/manual/en/function.parse-ini-file.php ? - E - __ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! h

Re: [PHP] there has to be a better way...

2003-10-22 Thread Nick JORDAN
"jsWalter" <[EMAIL PROTECTED]> wrote on 22/10/2003 09:10:44: > I need to read (write comes later) from a config file that we used to handle > manually. > There must be a better way to do this. Check out the parse_ini_file() function. Nick -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Whats more efficient? (Conclusion)

2003-10-22 Thread Mika Tuupola
On Wed, 22 Oct 2003, Ryan A wrote: > what do you suggest? and any urls for reading up on caching? Some benchmarks on content and bytecode caching: http://www.appelsiini.net/~tuupola/articles/benchmarking-phpa/ -- Mika Tuupola http://www.appelsiini.net/~tuup

[PHP] Problem in 2 dimensional Array

2003-10-22 Thread khuram noman
Dear Members i have 2 problems in 2 dimensional array . 1. how to declare global 2 dimensional array in php 2. how to pass 2 dimensional array in function Waiting for ur soon reply Khuram Noman __ Do you Yahoo!? The New Yahoo! Shopping - with improved product se

[PHP] get back to index.php

2003-10-22 Thread Sudheer Palaparambil
Hi, I am calling the insert_user.php like this http://www.etooss.com/insert_user.php"; onsubmit="return verifyIt(this);"> In insert_user.php, I am inserting the record to mysql db, nothing is displayed there. Now how do come back to index.php screen. Thank you Sudheer ___

RE: [PHP] get back to index.php

2003-10-22 Thread Fernando Melo
In insert_user.php header("Location: index.php"); exit; make sure nothing is being echoed before you call this. -Original Message- From: Sudheer Palaparambil [mailto:[EMAIL PROTECTED] Sent: 22 October 2003 14:15 To: [EMAIL PROTECTED] Subject: [PHP] get back to index.php Hi, I am ca

Re: [PHP] get back to index.php

2003-10-22 Thread Marek Kilimajer
Use header('Location: http://www.etooss.com/'); exit; Sudheer Palaparambil wrote: Hi, I am calling the insert_user.php like this http://www.etooss.com/insert_user.php"; onsubmit="return verifyIt(this);"> In insert_user.php, I am inserting the record to mysql db, nothing is displayed the

Re: [PHP] Problem in 2 dimensional Array

2003-10-22 Thread Marek Kilimajer
khuram noman wrote: Dear Members i have 2 problems in 2 dimensional array . 1. how to declare global 2 dimensional array in php $GLOBALS['array_name']=array( ); 2. how to pass 2 dimensional array in function Like any other value. Waiting for ur soon reply Khuram Noman __

Re: [PHP] get back to index.php

2003-10-22 Thread Sudheer Palaparambil
But it is giving the following error message Warning: Cannot modify header information - headers already sent by (output started at D:\websites\clands\clandsadmin\etooss.com\web\insert_user.php:3) in D:\websites\clands\clandsadmin\etooss.com\web\insert_user.php on line 29 Thank you. From: Mare

RE: [PHP] get back to index.php

2003-10-22 Thread Fernando Melo
Make sure there are no blank spaces being echoed. -Original Message- From: Sudheer Palaparambil [mailto:[EMAIL PROTECTED] Sent: 22 October 2003 14:30 To: [EMAIL PROTECTED] Subject: Re: [PHP] get back to index.php But it is giving the following error message Warning: Cannot modify header

Re: [PHP] help me

2003-10-22 Thread John Nichel
Dave wrote: Hi I need to edit my php.ini file. I tried to do this through ftp but no go. I am really desperate. How do I do it through putty. Ie I log in su to root NOW WHAT? vi? Please give me step by step instructions including how to save and make my changes. I need to do the following I need

[PHP] PHP scripts are not executed

2003-10-22 Thread Bas
I am running Windows XP, Apache/2.0.44 and php 4.3.3. I seem that internally all my PHP scripts work. But, externally, phpBB 2.0.6 does not work... Sorry for the double message... And my e-mail has changed... don't spam!!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] value field filled by mysql output

2003-10-22 Thread Mike At Spy
I am creating a form for editing records output from a mysql db (edit as an html form). I've done this many times, but have never run into this issue. I have code like this for the query: $edit_list = mysql_query("SELECT general_inventory.quantity FROM products_to_categories, general_inventory

Re: [PHP] PHP scripts are not executed

2003-10-22 Thread Marek Kilimajer
Hi, first you should explain the meanings of "internaly" and "externaly" in this case. Bas wrote: I am running Windows XP, Apache/2.0.44 and php 4.3.3. I seem that internally all my PHP scripts work. But, externally, phpBB 2.0.6 does not work... Sorry for the double message... And my e-mail h

Re: [PHP] help me

2003-10-22 Thread Burhan Khalid
Dave wrote: Hi I need to edit my php.ini file. I tried to do this through ftp but no go. I am really desperate. How do I do it through putty. Ie I log in su to root NOW WHAT? Find your php.ini file -- A few ways to do this. The easiest would be to look at the output of phpi

Re: [PHP] PHP scripts are not executed

2003-10-22 Thread Bas
Internally is on my pc and externally is from the web. "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, first you should explain the meanings of "internaly" and "externaly" > in this case. > > Bas wrote: > > > I am running Windows XP, Apache/2.0.44 and php 4.3.3

[PHP] Using php for non-web based applications

2003-10-22 Thread Paul Scruby
Hi there, I am not sure if this is the right list to post to as most of you guys are probably run php as an Apache module. However, I am currently using my own xml data format for a non-web based application and I would like to be able to embed php within it. Is there a C/C++ library that I can

[PHP] Re: (ANNOUNCE) codeSECURE 1.0 released - - Protecting PHP code

2003-10-22 Thread Bas
Is it free? "John Black" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Greetings everyone, > We have just launched a new product called codeSECURE and would like you to > check it out. > > codeSECURE is a PHP obfuscator. > > Basically codeSecure is a small collection of scripts to "

Re: [PHP] PHP scripts are not executed

2003-10-22 Thread Marek Kilimajer
Hm, I still don't get you. On your pc - do you mean you view the pages from your pc or that the pages are served from your pc (or both)? From the web - do you mean you view the pages from the web or that the pages are served from another server on the web? Bas wrote: Internally is on my pc an

Re: [PHP] PHP scripts are not executed

2003-10-22 Thread Bas
On web, i mean from my pc and on pc i use both "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hm, I still don't get you. > > On your pc - do you mean you view the pages from your pc or that the > pages are served from your pc (or both)? > > From the web - do you me

Re: [PHP] PHP scripts are not executed

2003-10-22 Thread Bas
Web address is: http://212.120.120.108:3/forumBT/ for phpBB (DUTCH!!!) If you need any translation, i will help you. "Bas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On web, i mean from my pc and on pc i use both > "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message > n

Re: [PHP] PHP scripts are not executed

2003-10-22 Thread Bas
And, e-mail me the results(on [EMAIL PROTECTED]) Of the website... Likethe error and so "Bas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On web, i mean from my pc and on pc i use both > "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hm, I stil

Re: [PHP] PHP scripts are not executed

2003-10-22 Thread Marek Kilimajer
Sometimes the pages load, sometimes they don't. Seems like apache is crashing, check apache error logs, php installation, installed modules... Bas wrote: And, e-mail me the results(on [EMAIL PROTECTED]) Of the website... Likethe error and so "Bas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL

[PHP] Mail() Function on Cobalt Raq 4

2003-10-22 Thread Peter Graber
Using a Cobalt Raq 4 w/php 4.3.1. The sendmail_path is : /usr/sbin/sendmail -t -iThis seems to be right. Can't get mail to send. Script works on other servers without fail. PHP Info here: http://www.ncafp.com/cgi-bin/phpInfo.php -- PHP General Mailing List (http://www.php.net/) To unsubs

[PHP] German Date - GMDATE Function

2003-10-22 Thread Steve Vernon
Hello, When I use the gmdate function, I get the English date, e.g. October. Is it possible to get the date in German or another language? I really need the server setting up so that it can handle different languages. I suppose I could get the month as a number, and then convert the number, but t

Re: [PHP] help me

2003-10-22 Thread Burhan Khalid
Dave wrote: I am setting up downloads.ca so as to be like downloads.com I need to be able to upload files several gigs in size Dave Dave : Don't top post. FTP is what you need to "upload files several gigs in size" -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PHP Gene

Re: [PHP] PHP scripts are not executed

2003-10-22 Thread Bas
I have checked the error log and the only real error i can see is that C:\pub\favicon.ino does not exist... I have added this and now i need that you test again... Thanks, Bas "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Sometimes the pages load, sometimes they do

Re: [PHP] Mail() Function on Cobalt Raq 4

2003-10-22 Thread Mike Morton
Have you checked the mail logs (should be /var/log/mail.log or something similar) you could be getting errors from the mail server rather than the php side. I have had it where I thought that it was php but it turned out be a local relaying error )On 10/22/03 10:16 AM, "Peter Graber" <[EMAIL

[PHP] is_uploaded_file() security

2003-10-22 Thread Alexander Mueller
Hi, I am wondering about the following paragraph at http://at2.php.net/manual/en/function.is-uploaded-file.php. > Returns TRUE if the file named by filename was uploaded via HTTP POST. > This is useful to help ensure that a malicious user hasn't tried to > trick the script into working on files u

Re: [PHP] German Date - GMDATE Function

2003-10-22 Thread Curt Zirzow
* Thus wrote Steve Vernon ([EMAIL PROTECTED]): > Hello, > > When I use the gmdate function, I get the English date, e.g. October. Is it > possible to get the date in German or another language? I really need the > server setting up so that it can handle different languages. What you want is: h

Re: [PHP] PHP scripts are not executed

2003-10-22 Thread Marek Kilimajer
favicon.ico is not the problem. The problem is "The specified network name is no longer available". Check out this resource, if that does not help, google for the error string. http://www.experts-exchange.com/Web/Web_Servers/Apache/Q_20671124.html Bas wrote: I have checked the error log and th

[PHP] Random Quotes...

2003-10-22 Thread Payne
Hi, I am working on a project and I need to see sample quote for doing random quotes. These quotes will be put from a database. Can some please share me some sample code. Thanks. Chuck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] is_uploaded_file() security

2003-10-22 Thread Marek Kilimajer
By requesting upload_script.php?userfile=/etc/passwd and upload_sript.php uses global variables to handle uploads. This check should not be necessery if you are using $_FILES superglobal as php will not accept _FILES user input. But keep the check there in case a bug will be introduced. Alexan

Re: [PHP] is_uploaded_file() security

2003-10-22 Thread CPT John W. Holmes
From: "Alexander Mueller" <[EMAIL PROTECTED]> > AFAIK the browser only sends the content of the chosen file and cannot > specify in any way a local filename which should be worked on. > Furthermore PHP creates a temporary file containing the uploaded file > content and passes this filename as 'tmp

Re: [PHP] Random Quotes...

2003-10-22 Thread Tom Rogers
Hi, Thursday, October 23, 2003, 1:34:02 AM, you wrote: P> Hi, P> I am working on a project and I need to see sample quote for doing P> random quotes. These quotes will be put from a database. Can some please P> share me some sample code. Thanks. P> Chuck If you are using mysql have a look at

Re: [PHP] Random Quotes...

2003-10-22 Thread CPT John W. Holmes
From: "Payne" <[EMAIL PROTECTED]> > I am working on a project and I need to see sample quote for doing > random quotes. These quotes will be put from a database. Can some please > share me some sample code. Thanks. If you're using MySQL, you can use SELECT quote FROM Quote ORDER BY RAND() LIMIT

Re: [PHP] is_uploaded_file() security

2003-10-22 Thread Alexander Mueller
Marek Kilimajer wrote: > > By requesting upload_script.php?userfile=/etc/passwd and > upload_sript.php uses global variables to handle uploads. This check > should not be necessery if you are using $_FILES superglobal as php will > not accept _FILES user input. But keep the check there in case a b

[PHP] Re: Random Quotes...

2003-10-22 Thread Kevin Stone
"Payne" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I am working on a project and I need to see sample quote for doing > random quotes. These quotes will be put from a database. Can some please > share me some sample code. Thanks. > > Chuck For more solutions go to,

[PHP] Comments / Feedback script?

2003-10-22 Thread MIKE YRABEDRA
Anyone know of a good 'comments/ feedback' creation script that writes to a static text file (no MySQL)? The user would enter their email, name and comment. They would then be displayed on the page using an include function. ++ Mike Yrabedra (Presid

Re: [PHP] PHP scripts are not executed

2003-10-22 Thread John Nichel
Bas wrote: Web address is: http://212.120.120.108:3/forumBT/ for phpBB (DUTCH!!!) If you need any translation, i will help you. "Bas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] You need to modify your httpd.conf file to see 'index.php' as an index. -- By-Tor.com It's all abo

[PHP] Re: Comments / Feedback script?

2003-10-22 Thread pete M
have a sniff around http://www.hotscripts.com/PHP/Scripts_and_Programs/index.html pete Mike Yrabedra wrote: Anyone know of a good 'comments/ feedback' creation script that writes to a static text file (no MySQL)? The user would enter their email, name and comment. They would then be displayed on

[PHP] Tab index

2003-10-22 Thread Hardik Doshi
Hi Group, Currently i have setup the tabindex on the drop down menu but it doesn't work on mozilla and safari browser. It is only working with the IE. Tab index on the text box and textarea fields are working perfectly on cross browser. Does any one has a clue why the tabindex on the drop down men

Re: [PHP] Tab index

2003-10-22 Thread Payne
Hardik Doshi wrote: Is it DHTML or Javascript? Becaucse DHTML doesn't work the same way on Browser. You will need to do a search on google DHTML and Netscape and Safari, you make want to use Javascript because then any browser can read it. Payne Hi Group, Currently i have setup the tabindex

[PHP] Passing array variables in a GET

2003-10-22 Thread Jeff McKeon
Is this possible??? $blah[]=(a, b, c); link So basically I have a page that need an array to perform some function. Can I pass that array variable (and thus it's data) to it from another page? Thanks, Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

[PHP] Re: Using php for non-web based applications

2003-10-22 Thread Paul Scruby
OK I figured out a solution. If your interested I am just calling from stdlib.h: system("php myFile.xml"); and then passing the result on the stdout to XERCES using stdin. Paul Scruby wrote: Hi there, I am not sure if this is the right list to post to as most of you guys are probably run php as

Re: [PHP] is_uploaded_file() security

2003-10-22 Thread Alexander Mueller
"Cpt John W. Holmes" wrote: > > The user can pass the name of a file on the server. If you're not doing any > checks and moving or displaying the "file" the user "sent" you, you may end > up moving, deleting, or displaying any file on your server. > > ---John Holmes... Thanks John, but only in t

Re: [PHP] Tab index

2003-10-22 Thread Hardik Doshi
I am using the HTML. Javascript is not standard of W3C organization and that's why i don't want to use it. Is there any other solution for setting up the tabindex on the Drop down menu? Thanks Hardik --- Payne <[EMAIL PROTECTED]> wrote: > Hardik Doshi wrote: > > Is it DHTML or Javascript? Beca

Re: [PHP] Age from birthdate?

2003-10-22 Thread Eugene Lee
On Wed, Oct 22, 2003 at 06:31:21PM +0200, DvDmanDT wrote: : : How would I get the age of someone if I store the birthdate in a date field? : I just realized FLOOR((UNIX_TIMESTAMP(NOW()) - : UNIX_TIMESTAMP(birthdate))/60/60/24/365.25) wont work for persons born : before 1970... :p I must get the c

Re: [PHP] Tab index

2003-10-22 Thread John Nichel
Hardik Doshi wrote: I am using the HTML. Javascript is not standard of W3C organization and that's why i don't want to use it. Is there any other solution for setting up the tabindex on the Drop down menu? Thanks Hardik Wrong list. Better results if you ask this question on a HTML/DHTML/JavaScri

RE: [PHP] Passing array variables in a GET

2003-10-22 Thread Wouter van Vliet
Take a look at http://nl.php.net/manual/en/function.serialize.php and http://nl.php.net/manual/en/function.unserialize.php. Or if the keys don't matter and the array has just one level (strange, I know there's a different term for that, totally cannot find it in my memory :S) you can consider join(

[PHP] Sorting an array by value length.

2003-10-22 Thread Rolf Brusletto
Hey all - I've been scouring the php.net site for a few hours now trying to find a viable way to sort a single dimensional array( array('0'=>'fddfsdsfdds', '1'=>','d','2' => 'gofofle'); ). so that the longest lengthed item is at the top, and the smallest lengthed item is at the bottom..

[PHP] Re: Sorting an array by value length.

2003-10-22 Thread Justin Patrin
You want to use usort, which lets you specify a comparison function. function cmpByLength($a, $b) { return strlen($a) > strlen($b); } usort($arrayToSort, 'cmpByLength'); And change the '>' to '<' if the ordering is wrong. Rolf Brusletto wrote: Hey all - I've been scouring the php.net site for

Re: [PHP] is_uploaded_file() security

2003-10-22 Thread CPT John W. Holmes
From: "Alexander Mueller" <[EMAIL PROTECTED]> > "Cpt John W. Holmes" wrote: > > > > The user can pass the name of a file on the server. If you're not doing any > > checks and moving or displaying the "file" the user "sent" you, you may end > > up moving, deleting, or displaying any file on your ser

[PHP] Newbie - Can't get sessions to work

2003-10-22 Thread Shaun Campbell
I've got a problem getting sessions to work and I wondered if anyone could offer any advice. The example I am using is to get one page to set variables in a session and then use another page to retrieve them. I am using 4.3.4RC2 and prior to that 4.3..3 on Win2k with IE6 and Apache 1.3.22. The c

[PHP] Session output question

2003-10-22 Thread Susan Ator
$_SESSION['msg'] 2) Is there any way to use a variable in a session name? can I do: $msg="20031022" $_SESSION["$msg.name"] becomes $_SESSION['20031022name'] I have set the session above t

Re: [PHP] Session output question

2003-10-22 Thread CPT John W. Holmes
SESSION['uid'] > $_SESSION['msg'] $keys = array_keys($_SESSION); > 2) Is there any way to use a variable in a session name? > > can I do: > $msg="20031022" > $_SESSION["$msg.name"] becomes $_SESSION['20031022name'] Just like that or

[PHP] command line arguments

2003-10-22 Thread Dan Joseph
Hi, I'm having trouble remember something I have a php script that I want to run from a command line: % /usr/local/bin/php script.php 47264 47264 is the argument, however, I can't figure out how to access it inside the script. I thought it was the $ARG array

RE: [PHP] Session output question

2003-10-22 Thread Susan Ator
ON['msg'] $keys = array_keys($_SESSION); > 2) Is there any way to use a variable in a session name? > > can I do: > $msg="20031022" > $_SESSION["$msg.name"] becomes $_SESSION['20031022name'] Just like that or $_SESSION[$msg.'name

Re: [PHP] is_uploaded_file() security

2003-10-22 Thread Marek Kilimajer
CPT John W. Holmes wrote: I don't think so. Test this, but I think you can just type /etc/passwd into the file name box (instead of using the "browse" button) and have that value submitted in the form. May be dependent upon the browser on how it's handled, though. You would send your own /etc/passw

Re: [PHP] Sorting an array by value length.

2003-10-22 Thread David Otton
On Wed, 22 Oct 2003 11:21:13 -0700, you wrote: >I've been scouring the php.net site for a few hours now trying to find a >viable way to sort a single dimensional array( array('0'=>'fddfsdsfdds', >'1'=>','d','2' => 'gofofle'); ). so that the longest lengthed >item is at the top, and the

[PHP] Images being uploaded in ASCII format

2003-10-22 Thread Pablo Gosse
Hi all. I'd like to take a brief sentence to introduce myself first. My name is Pablo Gosse, and I've just recently joined the php-general list. I've been using PHP since early 2000, and work as webmaster at the University of Northern British Columbia. I'm running into a problem with file upload

Re: [PHP] command line arguments

2003-10-22 Thread Robert Cummings
Use $argv, that failing it definately works with $_SERVER['argv'] Cheers, Rob. On Wed, 2003-10-22 at 13:59, Dan Joseph wrote: > Hi, > > I'm having trouble remember something > > I have a php script that I want to run from a command line: > > % /usr/local/bin/php script.ph

[PHP] Archives

2003-10-22 Thread Nathan Taylor
Hey guys, Just a quickie: where are the archives for this list? What URL? Thanks, Nathan Taylor

Re: [PHP] Archives

2003-10-22 Thread Chris Garaffa
On Oct 22, 2003, at 2:27 PM, Nathan Taylor wrote: Hey guys, Just a quickie: where are the archives for this list? What URL? You'll find the answer in the arch--- oops, nevermind. This URL was just launched: http://phparch.com/mailinglists -- Chris Garaffa [EMAIL PROTECTED] -- PHP General Mailing

Re: [PHP] Archives

2003-10-22 Thread John Nichel
Nathan Taylor wrote: Hey guys, Just a quickie: where are the archives for this list? What URL? Thanks, Nathan Taylor Here... http://marc.theaimsgroup.com/?l=php-general&r=1&w=2 or here... http://news.php.net/group.php?group=php.general -- By-Tor.com It's all about the Rush http://www.by-tor.com -

[PHP] test

2003-10-22 Thread Reidar
Just testing prior problems -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Tab index

2003-10-22 Thread Ray Hunter
On Wed, 2003-10-22 at 11:07, John Nichel wrote: > Hardik Doshi wrote: > > I am using the HTML. Javascript is not standard of W3C > > organization and that's why i don't want to use it. > > > > Is there any other solution for setting up the > > tabindex on the Drop down menu? > > > > Thanks > > >

Re: [PHP] Newbie - Can't get sessions to work

2003-10-22 Thread John Nichel
Shaun Campbell wrote: I've got a problem getting sessions to work and I wondered if anyone could offer any advice. The example I am using is to get one page to set variables in a session and then use another page to retrieve them. I am using 4.3.4RC2 and prior to that 4.3..3 on Win2k with IE6 and

[PHP] Re: PHP3 files compatibilty with PHP4

2003-10-22 Thread Tian, Simon (Contractor) (DSCP)
Hi all, I have a website written in php3 , but the isp just did a upgrade of PHP 4.3.3. it was a php 4 and it worked fine with my php3 progarm then some part of my website does not work right radio button click get no response detail please go to my website go to findhealer.com and click y

Re: [PHP] Newbie - Can't get sessions to work

2003-10-22 Thread Daniel Guerrier
The second page should be \n"); echo { $_SESSION['bar'] }; ?> you're missing the session_start() You need it on every page that you plan to use session on. --- John Nichel <[EMAIL PROTECTED]> wrote: > Shaun Campbell wrote: > > I've got a problem getting sessions to work and I > wondered

Re: [PHP] command line arguments

2003-10-22 Thread Ray Hunter
> I have a php script that I want to run from a command line: > > % /usr/local/bin/php script.php 47264 > > 47264 is the argument, however, I can't figure out how to access it inside > the script. I thought it was the $ARG array or $ARGV, but I am mistaken... > can only refresh me? searching di

Re: [PHP] Newbie - Can't get sessions to work

2003-10-22 Thread John Nichel
Daniel Guerrier wrote: The second page should be \n"); echo { $_SESSION['bar'] }; ?> you're missing the session_start() You need it on every page that you plan to use session on. He has session_start() on page two. page2.php -- Same here \n"); echo { $_SESSION['bar'] }; ?

[PHP] RE: Re: PHP3 files compatibilty with PHP4

2003-10-22 Thread Tian, Simon (Contractor) (DSCP)
Hi all, i am also looking a person to maintain my website findhealer.com with a monthly payment thanks simon -Original Message- From: Tian, Simon (Contractor) (DSCP) Sent: Wednesday, October 22, 2003 2:22 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: '[EMAIL PROTECTED]' Subject: Re:

RE: [PHP] command line arguments

2003-10-22 Thread Dan Joseph
Ahh ok, yeah, $_SERVER['argv'][1] works like a charm, thanks. > Use $argv, that failing it definately works with $_SERVER['argv'] -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newbie - Can't get sessions to work

2003-10-22 Thread Daniel Guerrier
Your right :) I think he's using the brackets instead of parenthesis in the echo's. Change the {} to () --- John Nichel <[EMAIL PROTECTED]> wrote: > Daniel Guerrier wrote: > > The second page should be > > > > > session_start(); > > echo { $_SESSION['foo'] . "\n"); > > echo { $_SE

RE: [PHP] Passing array variables in a GET

2003-10-22 Thread Jeff McKeon
I looked at the page you suggested but it vauge at best. Basically from what I've gathered using serialize with an array screws up the pointers in the array. Is this true? What I've done is this but it doesn't seem to be working... Pull data (two fields) from a mysql table and put the results i

Re: [PHP] Newbie - Can't get sessions to work

2003-10-22 Thread John Nichel
Daniel Guerrier wrote: Your right :) I think he's using the brackets instead of parenthesis in the echo's. Change the {} to () Yep, he is...didn't notice that on the first pass. The code I cut and pasted from his with have errors Fixed code echo ( $_SESSION['foo'] . "\n" ); echo ( $_SE

RE: [PHP] there has to be a better way...

2003-10-22 Thread Daevid Vincent
Here is a snippet from my dhcp web page found on my site below... Not exactly what you want, but could help you start... // read in the dhcp_map.ini file to map MAC addresses to images $mapFile = "./dhcp_map.ini"; if( $fp = @fopen($mapFile, "r") ) {

Re: [PHP] Archives

2003-10-22 Thread Nathan Taylor
Thanks John and and Chris. - Original Message - From: John Nichel To: [EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 2:26 PM Subject: Re: [PHP] Archives Nathan Taylor wrote: > Hey guys, > > Just a quickie: where are the archives for this list? What URL? > >

RE: [PHP] Newbie - Can't get sessions to work

2003-10-22 Thread Chris W. Parker
John Nichel on Wednesday, October 22, 2003 11:33 AM said: >> > echo "foo = {$_SESSION['foo']}"; >> echo "bar = {$_SESSION['bar']}"; > > Get rid of the "foo =" and the "bar =". when you use the single > equals sign, you're setting value Not when it's inside a

Re: [PHP] Newbie - Can't get sessions to work

2003-10-22 Thread John Nichel
Chris W. Parker wrote: John Nichel on Wednesday, October 22, 2003 11:33 AM said: "; echo "bar = {$_SESSION['bar']}"; Get rid of the "foo =" and the "bar =". when you use the single equals sign, you're setting value Not when it's inside a string. His statement

Re: [PHP] Newbie - Can't get sessions to work

2003-10-22 Thread Chris Boget
>> > echo "foo = {$_SESSION['foo']}"; >> echo "bar = {$_SESSION['bar']}"; > Not when it's inside a string. > His statements should output the following: > foo = somevalue > bar = anothervalue > Also... he's using { and } because you can't access an array's value > unless it's within curly braces.

[PHP] Age from birthdate?

2003-10-22 Thread DvDmanDT
How would I get the age of someone if I store the birthdate in a date field? I just realized FLOOR((UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(birthdate))/60/60/24/365.25) wont work for persons born before 1970... :p I must get the current age in years, and I must be able to select by age... :p Any id

Re: [PHP] Newbie - Can't get sessions to work

2003-10-22 Thread John Nichel
Chris Boget wrote: "; echo "bar = {$_SESSION['bar']}"; Not when it's inside a string. His statements should output the following: foo = somevalue bar = anothervalue Also... he's using { and } because you can't access an array's value unless it's within curly braces. Not entirely true. You can st

[PHP] Simple array question

2003-10-22 Thread René Fournier
Is there a simple way to return the key (name) of one element in an array? I looked up key() in the docs, but there are no examples or notes... Thanks. ...Rene -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Simple array question

2003-10-22 Thread Rob Adams
"René fournier" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Is there a simple way to return the key (name) of one element in an > array? I looked up key() in the docs, but there are no examples or > notes... key() will do it, but you have to have the internal pointer already on t

Re: [PHP] Newbie - Can't get sessions to work

2003-10-22 Thread Chris Boget
> Okay, so we're back to square onewhy his sessions aren't working. > This thread has been snipped too much, and I've already deleted the > original, so I don't have the code that wasn't working. Sadly, I don't have the original, either. :| > On a side note, Chris, are you in Louisiana? Y

Re: [PHP] Newbie - Can't get sessions to work

2003-10-22 Thread John Nichel
Chris Boget wrote: Okay, so we're back to square onewhy his sessions aren't working. This thread has been snipped too much, and I've already deleted the original, so I don't have the code that wasn't working. Sadly, I don't have the original, either. :| I just pulled it from the archives on

Re: [PHP] Simple array question

2003-10-22 Thread Jason Wong
On Friday 24 October 2003 03:01, René Fournier wrote: > Is there a simple way to return the key (name) of one element in an > array? I looked up key() in the docs, but there are no examples or > notes... array_search() -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software

[PHP] link question

2003-10-22 Thread Davy Campano
I have a php page that makes a table from data in a mySQL database. What I want to do is make the first entry in the table be a Unique key that is a link, that when you click on this key it opens another page with some more information. Basically I am trying to figure out how to pass this key from

[PHP] php with Interbase ?

2003-10-22 Thread Luiz Gustavo Sarubi Macchi
Hi all, Please, I´d like to compile my php with interbase. I know that i should put --with-interbase[=DIR], but what else should i put in configure ? Is anyone has a script to do this ? Should I compile apache too ? thanks a any help I´m using: Mandrake 9.1 kernel 2.4.21-0.13mdk php-ini-4.3

Re: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-22 Thread David T-G
Richard, et al -- ...and then Richard Baskett said... % % on 10/21/03 16:40, David T-G at [EMAIL PROTECTED] wrote: % % > ...and then Marco Tabini said... % > % % > % php.general for new messages and send back an e-mail to the list with ... % > % > A nice idea, but terribly difficult to impleme

RE: [PHP] link question

2003-10-22 Thread Pablo Gosse
link And on the receiving page access var via $_GET['var'] Of course, how you actually append the value in question to your link will depend on your own code. I use ADOdb for all my db work, so for me it would be something like this: echo ''; while (!$rs->EOF) { echo ' l

Re: [PHP] Passing array variables in a GET

2003-10-22 Thread Jason Wong
On Thursday 23 October 2003 02:41, Jeff McKeon wrote: > I looked at the page you suggested but it vauge at best. Basically from > what I've gathered using serialize with an array screws up the pointers > in the array. Is this true? If you mean the internal pointer, ie the one that is reset by c

Re: [PHP] Session output question

2003-10-22 Thread Curt Zirzow
* Thus wrote Susan Ator ([EMAIL PROTECTED]): > > 2) Is there any way to use a variable in a session name? > > can I do: > $msg="20031022" > $_SESSION["$msg.name"] becomes $_SESSION['20031022name'] In this cas

Re: [PHP] Newbie - Can't get sessions to work

2003-10-22 Thread Jason Wong
On Wednesday 22 October 2003 22:08, Shaun Campbell wrote: > I've got a problem getting sessions to work and I wondered if anyone could > offer any advice. > > The example I am using is to get one page to set variables in a session and > then use another page to retrieve them. I am using 4.3.4RC2 a

Re: [PHP] Re: (ANNOUNCE) codeSECURE 1.0 released - - Protecting PHP code

2003-10-22 Thread Jason Wong
On Wednesday 22 October 2003 21:38, Bas wrote: > Is it free? > > For details, check us out at http://www.secureCents.com -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -

  1   2   >