[PHP] Re: magic quotes

2003-04-02 Thread Foong
Hello, When magic_quotes_gpc is on, addslashes() will be automatically applied on all data from GET, POST, COOKIES by PHP. When magic_quotes_runtime is on, addslashes() will be automatically applied on all data collected form database (ex: when you execute a SELECT statement). Therefore when ma

[PHP] *Umlauts/UTF-8

2003-04-02 Thread Alexey Lysenkov
Hello, I am having a problem with umlauts in utf-8 encoded txt file, which is being read by my script. Instead of umlauts I get ? or squares or anything else, but not those umlauts. What is the problem, can anybody help, please? Thanks. ps. I've chosen utf-8, because I have to have Western Eu

Re: [PHP] Can php run as a script?

2003-04-02 Thread Philip Olson
Read this: http://www.php.net/features.commandline > PHP can run as a script indeed. > > #!/usr/bin/php > > Do that like you would perl and then make it executable. Should work. Yes, assuming that's the name and location of the CLI or CGI PHP (and one exists). Typing 'whereis php' or 'whic

Re: [PHP] magic quotes

2003-04-02 Thread Philip Olson
On Thu, 3 Apr 2003, Justin French wrote: > Hi all, > > Can I just have a quick head check on magic quotes runtime (&gpc)? > > I have them both set to Off currently, and my pages work fine. However, > when I set them to on, I end up with slashes throughout the mysql data. This means you essenti

Re: [PHP] Can php run as a script?

2003-04-02 Thread [EMAIL PROTECTED]
PHP can run as a script indeed. #!/usr/bin/php Do that like you would perl and then make it executable. Should work. Note that any errors will be chucked back to the terminal in HTML. On 4/2/2003, "Poon, Kelvin (Infomart)" <[EMAIL PROTECTED]> wrote: >Hi, > >This might be a newbie question b

[PHP] magic quotes

2003-04-02 Thread Justin French
Hi all, Can I just have a quick head check on magic quotes runtime (&gpc)? I have them both set to Off currently, and my pages work fine. However, when I set them to on, I end up with slashes throughout the mysql data. Is this the expected behaviour? Seems counter-intuitive to me, but I've nev

Re: [PHP] php.ini not being used?

2003-04-02 Thread Philip Olson
On Thu, 3 Apr 2003, Justin French wrote: > Hi, > > I can't believe I've never bothered to learn this stuff, so I apologise for > being totally dumb in advance :P > > phpinfo() tells me my php.ini is being read from /usr/local/lib, however, > there's definitely NOT a php.ini file there. That faq

Re: [PHP] chill out

2003-04-02 Thread Tim Thorburn
Hi, I'd have to agree with the original poster on this topic - I've been on this list for about 3 years now, at times it is helpful - and then there's every other day. Granted, there are guru's out there that know all there is to know about PHP, and then there's the new kid that has no idea wh

Re: [PHP] chill out

2003-04-02 Thread Chris Blake
My two cents, I`ve been on the list a month now and I think it`s really cool that this type of thing exists. I`m new to PHP, read all the posts that come through, and 98% of the time don`t have a clue what is being spoken about, so the flaming and other comments provide a welcome relief from my

Re: [PHP] QUESTION - user management

2003-04-02 Thread Leif K-Brooks
Keeping track of the last time each username / IP address has viewed a page, and assuming that any user who was seen less than 5 minutes (or so) ago is online. [EMAIL PROTECTED] wrote: How do applications know how many users are logged into the system? For example postnuke will tell you '3 user

RE: [PHP] Deleting Objects

2003-04-02 Thread John Coggeshall
yes, that's what I meant :) sorry if I was unclear... if any references to a given variable still exist then the variable is not destroied in memory. -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2003 12:55 AM To: John Coggeshall Cc: [EMAIL

Re: [PHP] Deleting Objects

2003-04-02 Thread Leif K-Brooks
Not exactly true. unset() destroys the reference to the value, not the value itself. For instance, error_reporting(E_ALL); $var1 = "foo"; $var2 = &$var1; print "$var1\n$var2\n\n"; unset($var1); print "$var1\n$var2"; will output: foo foo Notice: Undefined variable: var1 in PHPDocument1 on li

RE: [PHP] QUESTION - user management

2003-04-02 Thread John Coggeshall
>> How do applications know how many users are logged into the system? >For >> example postnuke will tell you '3 users online, 2 members'. >Im gussing >it >> uses sessions, but how? Basically it keeps track of the active sessions for the total user #, and then determines how many of those session

RE: [PHP] Deleting Objects

2003-04-02 Thread John Coggeshall
>How does one delete an object? For example: > > $object = new Class(...); > . > $object = new Class(...); PHP deletes any variable which is no longer referenced in memory.. So in this case the first object that the variable $object pointed to will automatically be destroie

Re: [PHP] Deleting Objects

2003-04-02 Thread Leif K-Brooks
That will work perfectly. [EMAIL PROTECTED] wrote: How does one delete an object? For example: $object = new Class(...); . $object = new Class(...); I want to throw away the old object and create a new, freshly initialized one using the same variable. Is the above

RE: [PHP] QUESTION - user management

2003-04-02 Thread Matt Giddings
Someone recently posted code for this exact topic on phpclasses.org, follow the link below. http://phpclasses.mirrors.nyphp.org/browse.html/package/1018.html Matt > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 02, 2003 5:58 AM > To: [EMA

Re: [PHP] PHP Email Attachment problem

2003-04-02 Thread Jason Wong
On Wednesday 02 April 2003 04:19, Michael Arena wrote: > the only difference in the server setup is on my remote server it's a RAQ > and locally i'm using Xitami with PHP. I don't understand why it won't > send. I get the email over the RAQ but no attachment... Have you checked that the file actua

Re: [PHP] chill out

2003-04-02 Thread Jason Wong
On Thursday 03 April 2003 11:14, [EMAIL PROTECTED] wrote: > We subscribe to a few email lists on various languages. > > This list would have to be the worst for anyone learning > - the amount of sarcasm and flaming that goes on is huge. Try subscribing to the qmail list for a day or two. > Just

RE: [PHP] chill out

2003-04-02 Thread Matt Giddings
Actually this list has maintained a high level of professionalism compared to many other lists I'm a member of, join a VB or any other support list for a MS product and you'll see what I mean. Only within the last few days have I seen the list (or members of the list) fail to uphold its status. I

[PHP] Deleting Objects

2003-04-02 Thread trlists
How does one delete an object? For example: $object = new Class(...); . $object = new Class(...); I want to throw away the old object and create a new, freshly initialized one using the same variable. Is the above adequate or will this orphan the first object? If

Re: [PHP] chill out

2003-04-02 Thread Kevin Waterson
This one time, at band camp, <[EMAIL PROTECTED]> wrote: > We subscribe to a few email lists on various languages. > > This list would have to be the worst for anyone learning > - the amount of sarcasm and flaming that goes on is huge. fu2 -- __ (_ \

Re: [PHP] php.ini not being used?

2003-04-02 Thread Justin French
Ok, that's what I figured! Thanks! Justin on 03/04/03 2:43 PM, Leif K-Brooks ([EMAIL PROTECTED]) wrote: > It's using default settings. You'll have to recompile PHP to change > where it looks for php.ini, or you can move your php.ini file into that > location. > > Justin French wrote: > >> H

Re: [PHP] php.ini not being used?

2003-04-02 Thread Leif K-Brooks
It's using default settings. You'll have to recompile PHP to change where it looks for php.ini, or you can move your php.ini file into that location. Justin French wrote: Hi, I can't believe I've never bothered to learn this stuff, so I apologise for being totally dumb in advance :P phpinfo()

Re: [PHP] chill out

2003-04-02 Thread Leif K-Brooks
It's not people who don't know everything I have a problem. It's people who ask questions when the answer is right in front of their nose. [EMAIL PROTECTED] wrote: We subscribe to a few email lists on various languages. This list would have to be the worst for anyone learning - the amount of

Re: [PHP] php.ini not being used?

2003-04-02 Thread Sebastian
at the bash prompt type "where is php.ini" and it will tell you exactly where it's at. cheers, - Sebastian - Original Message - From: "Justin French" <[EMAIL PROTECTED]> | Hi, | | I can't believe I've never bothered to learn this stuff, so I apologise for | being totally dumb in advance

Re: [PHP] chill out

2003-04-02 Thread Sebastian
for a list that is not moderated i think it's doing quite well. this isn't a service so you get what you pay for ;) cheers, - Sebastian - Original Message - From: <[EMAIL PROTECTED]> | We subscribe to a few email lists on various languages. | | This list would have to be the worst fo

[PHP] php.ini not being used?

2003-04-02 Thread Justin French
Hi, I can't believe I've never bothered to learn this stuff, so I apologise for being totally dumb in advance :P phpinfo() tells me my php.ini is being read from /usr/local/lib, however, there's definitely NOT a php.ini file there. So, I went hunting and found this on http://www.php.net/manual/e

[PHP] chill out

2003-04-02 Thread steve
We subscribe to a few email lists on various languages. This list would have to be the worst for anyone learning - the amount of sarcasm and flaming that goes on is huge. Just try and remember - everyone has to learn, if you feel a question is off topic or stupid - ignore it, theres no need to

Re: [PHP] Submit Image Button

2003-04-02 Thread Thomas
AwesomeThank you so much. Cheers. Thomas "John Coggeshall" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Well you can ignore it if you don't need the X/Y cord... But you can use > it to make sure the button was clicked: > > If(!$_GET['sub_x'] || !_GET['sub_y']) { > // disp

RE: [PHP] Submit Image Button

2003-04-02 Thread John Coggeshall
Well you can ignore it if you don't need the X/Y cord... But you can use it to make sure the button was clicked: If(!$_GET['sub_x'] || !_GET['sub_y']) { // display form } else { // it was submitted -~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~- John Cogges

Re: [PHP] Submit Image Button

2003-04-02 Thread Thomas
ok, sorry I'm a newb...what do I do with that info? I saw that page, but it makes no sense to me Thomas "John Coggeshall" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > http://www.php.net/manual/en/language.variables.external.php > > > > This creates variables $_GET['sub_x'] a

RE: [PHP] Submit Image Button

2003-04-02 Thread John Coggeshall
http://www.php.net/manual/en/language.variables.external.php This creates variables $_GET['sub_x'] and $_GET['sub_y'] containing the X/Y cordinate where the button was clicked (assuming it was GET method form submission) John -~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~

[PHP] Submit Image Button

2003-04-02 Thread Thomas
I have a problem with my php. I have a form and in that form there is an image submit button. When I click on it, it won't tell me if the submit button is clicked. It works fine with a normal one. sample: If I use This works finedo I need to do something e

[PHP] asynchronous processing?

2003-04-02 Thread Seairth Jacobs
I want to POST data to a server and get back an immediate response. Independently, I want the action to cause the server to submit its own POST request to another server. I do not want the original POST to block while waiting for the second POST to complete. I recently read an article [1] that sa

Re: [PHP] Making it so the .php isn't needed

2003-04-02 Thread Sebastian
yeah pretty cool, there are no limits on what you can do. cheers, - Sebastian - Original Message - From: "daniel" <[EMAIL PROTECTED]> | this is funny , you could have any extension u like say , i'm a synth freak , | i luv the word "303" so on some of my musik pages i have pages called |

RE: [PHP] php 3 to 4.3

2003-04-02 Thread John W. Holmes
REGISTER_GLOBALS, REGISTER_GLOBALS, REGISTER_GLOBALS Do you always upgrade your programs without reading anything about the changes in the new version If so, I have a new version of that I'd like you to load on your computers. Please contact me off-line... ---John W. Holmes... PHP Archi

Re: [PHP] php 3 to 4.3

2003-04-02 Thread John Nichel
http://www.php.net/manual/en/language.variables.scope.php http://www.php.net/manual/en/language.variables.external.php Before PHP 4.2.0 the default value for register_globals was on. And, in PHP 3 it was always on. The PHP community is encouraging all to not rely on this directive as it's prefer

[PHP] php 3 to 4.3

2003-04-02 Thread Jennifer Fountain
Has anyone had issues with their php scripts not working after upgrading php from 3 to 4.3?   I have simple page that inserts data into mysql db.  The scripts worked fine until after the upgrade.    Below is one of my php scripts.  When I hit submit, nothing is added to the db :(   Add Record /

RE: [PHP] Making it so the .php isn't needed

2003-04-02 Thread daniel
this is funny , you could have any extension u like say , i'm a synth freak , i luv the word "303" so on some of my musik pages i have pages called something.303 so AddType application/x-httpd-php .303 :D >= Original Message From "Sebastian" <[EMAIL PROTECTED]> = >Hello, > >read this: >

RE: [PHP] trying to write sql query as a function

2003-04-02 Thread John W. Holmes
You need to call it such as: $variable = query("field","table"); Where $variable is an arbitrary name and is what you'd later use in the mysql_fetch_*() functions... ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ > --

[PHP] Re: printing a php file as a text file

2003-04-02 Thread Petter Aas
Chris Sano wrote: How would I go outputting my PHP file as a text file -- for example, I have a set of scripts that I plan to release to the public and would like to make this script viewable through PHP without having to call a text file. I know I have seen this somewhere and I'm wondering if any

[PHP] Re: Printing help

2003-04-02 Thread Petter Aas
Jay Mitchell wrote: I need to know if there is a way to send output to a users local printer using a browser accessed database. Will php3 do this? IfSo how? Thanks in dvance Jay http://www.php.net/manual/en/ref.printer.php I believe that you can find something usefull there. -- PHP General Mailing

[PHP] Phorum 3.4.2 Released - SECURITY NOTICE

2003-04-02 Thread Brian Moon
Today, we released another bug fix for the Phorum 3.4 branch, version 3.4.2. Among other things, it fixes a Cross Site Scripting Vunerability. Here is the changelog: Phorum 3.4.2 Changelog More Postgres fixes. (tomaz) better date formatt

[PHP] trying to write sql query as a function

2003-04-02 Thread scott
hi I'm trying to write a simple MySQL query in a php function so that I can just call it and pass arguments, but I'm missing something :o( there are 2 files, index.php and common.php, commom.php contains all the functions, and is included at the beginning of index.php the first function called i

Re: [PHP] Making it so the .php isn't needed

2003-04-02 Thread Sebastian
Hello, read this: http://php.benscom.com/manual/en/security.hiding.php :) cheers, - Sebastian - Original Message - From: "Teren Sapp" <[EMAIL PROTECTED]> Hi, I had it setup on my server before i reloaded it, but what i need to have happen is so that when i'm passing variables to a php

RE: [PHP] Help in sorting

2003-04-02 Thread John W. Holmes
It looks sorted to me. You get message 12, 23, and then 25. How exactly do you want it to look? ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ > -Original Message- > From: Haseeb Iqbal [mailto:[EMAIL PROTECTED]

RE: [PHP] One form - two db's?

2003-04-02 Thread John W. Holmes
> Is it feasible to have a php form update two different MySQL DB's at the > same time, with all info going to one DB, and just certain info going to > the second? Yes... make your connection, select the first database, do your insert, select the second database, and do your final insert. Isn't ro

Re: [PHP] Making it so the .php isn't needed

2003-04-02 Thread Peter Houchin
at a guess would say have something to do with the line in ur server config ... eg in apache the httpd.conf file ... and where you tell it what to run thru the php engine Teren Sapp wrote: Hi, I had it setup on my server before i reloaded it, but what i need to have happen is so that when i'm pa

RE: [PHP] Making it so the .php isn't needed

2003-04-02 Thread Jennifer Goodie
You can accomplish this by enabling multiviews in your httpd.conf > -Original Message- > From: Teren Sapp [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 02, 2003 3:18 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Making it so the .php isn't needed > > > Hi, I had it setup on my server

Re: [PHP] Nested select options from database.

2003-04-02 Thread olinux
--- Krista <[EMAIL PROTECTED]> wrote: > Hi everyone, > > Is it possible, using just PHP, to pull a select > menu from a DB, then when > the person makes a selection have it populate a > second drop down select > menu, and again for a third one? Would javascript > need to be involved here > to kee

[PHP] Making it so the .php isn't needed

2003-04-02 Thread Teren Sapp
Hi, I had it setup on my server before i reloaded it, but what i need to have happen is so that when i'm passing variables to a php file, I don't have to include the .php in the link...so i can have http://www.my-domain.com/page1?var1=3&var2=4 instead of http://www.my-domain.com/page1.php?var1

[PHP] Nested select options from database.

2003-04-02 Thread Krista
Hi everyone, Is it possible, using just PHP, to pull a select menu from a DB, then when the person makes a selection have it populate a second drop down select menu, and again for a third one? Would javascript need to be involved here to keep it all on the same page? I'm in pretty desperate need

[PHP] One form - two db's?

2003-04-02 Thread Scott Miller
Is it feasible to have a php form update two different MySQL DB's at the same time, with all info going to one DB, and just certain info going to the second? Just dreaming of ways to make my life easier. Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

Re: [PHP] Re: parse_str()

2003-04-02 Thread Rasmus Lerdorf
> "Jose" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > I might be wrong here, but with the code below I would expect $_GET to be > filled and the script to output the next line: > >$example_string = 'action=kick&item=me'; >parse_str($example_string); >var_dump($_G

[PHP] Re: parse_str()

2003-04-02 Thread Ron Rudman
I think you mean: $example_string = '?action=kick&item=me'; "Jose" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I might be wrong here, but with the code below I would expect $_GET to be filled and the script to output the next line: // expected output: // // array(2) { ["acti

Re: [PHP] So many functions!

2003-04-02 Thread Matt Vos
Try $languages = array_keys($lang); This will create an array $languages = array("english","francais"); Matt - Original Message - From: Vincent M. <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 02, 2003 4:58 PM Subject: [PHP] So many functions! > Hello, > > There so

Re: [PHP] So many functions!

2003-04-02 Thread Burhan Khalid
Vincent M. wrote: Hello, There so many functions in php that I can't find the one I need. I have a table like that: $lang["english"]["category"]= "Category" ; $lang["english"]["backpage"]= "Go to the back page" ; $lang["english"]["nextpage"]= "Go to the next page" ; ... $lang["franca

Re: [PHP] Html forms to php scripts

2003-04-02 Thread Burhan Khalid
Ford, Mike [LSS] wrote: -Original Message- From: VanZee, Timothy [mailto:[EMAIL PROTECTED] Sent: 02 April 2003 17:31 Repost because no one replied originally. Are there any other lists that anyone knows of for php that could be more helpful? I'm quite disappointed in this one because I th

Re: [PHP] mailing forms and input into MySQL

2003-04-02 Thread Lowell Allen
> From: "Scott Miller" <[EMAIL PROTECTED]> > > I have a current php script that allows me to add/remove customer information > from a particular MySQL Database. What I would like to do, is when an > employee adds a customer, have some (if not all) of that information e-mailed > to a particular e-

Re: [PHP] Menu from Directory

2003-04-02 Thread Burhan Khalid
Ben Whitehead wrote: I am trying to sort an image menu system which is passed a directory name, and can count and name the files in a menu from simply seeing which files are in this directory. It would be ideal if it can just do this just by looking at the files in the directory, and their file nam

Re: [PHP] uploading entire directory, with or without compression...

2003-04-02 Thread Burhan Khalid
Jason Wong wrote: On Wednesday 02 April 2003 22:08, Kenn Murrah wrote: yes, of course they can ... but i'm looking for a way to automate the process for them (a method which may not exist) .. i suppose i can give them the option to upload multiple files using multiple input fields, but I'd really

[PHP] Re: question: installing PHP with mysql isn't working?

2003-04-02 Thread Ryan Vennell
you can try just straight --with-mysql without the = and it may be in the default path... >>> Don<[EMAIL PROTECTED]> 04/02/03 03:18PM >>> Hi, Trying to install PHP with the ability to interact with MySQL. In my configuration, I've included the option: --with-mysql=shared,/usr There are no com

[PHP] Ok, problem found, but that makes way for another...

2003-04-02 Thread Ryan Vennell
ok, my last post stated that i've tried reconfigureing.making/makeinstalling php 4.3.1 a tons of times. well, today when i typed php -v it told me that version 4.2.2 was the one that was installed. so apparently my installing has not been taking the place of the old one. The original root i

Re: [PHP] So many functions!

2003-04-02 Thread Richard Baskett
What I would do is first read a cookie that you set on the clients machine that follows the accept language guidelines.. so just the first two letters then if that is not set, then take the browsers languages $HTTP_ACCEPT_LANGUAGE and use them. So instead of english you would have 'en', espanol =

[PHP] question: installing PHP with mysql isn't working?

2003-04-02 Thread Don
Hi, Trying to install PHP with the ability to interact with MySQL. In my configuration, I've included the option: --with-mysql=shared,/usr There are no compile errors. Any idea why PHP is not recognizing any MySQL functions? Thanks, Don --- Outgoing mail is certified Virus Free. Checked by

[PHP] xml parse error?

2003-04-02 Thread Jon King
I'm trying to parse a simple xml file, but I keep getting a strange error at $node->name which returns #text. Is this normal or am I doing something wrong? >From what I understand, the $node->name should return "branch" but it returns #text. TIA Jon --- PHP Code ---

[PHP] So many functions!

2003-04-02 Thread Vincent M.
Hello, There so many functions in php that I can't find the one I need. I have a table like that: $lang["english"]["category"]= "Category" ; $lang["english"]["backpage"]= "Go to the back page" ; $lang["english"]["nextpage"]= "Go to the next page" ; ... $lang["francais"]["category"]

Re: [PHP] mailing forms and input into MySQL

2003-04-02 Thread Kevin Stone
There is no trick to it. Query the database, build a string, send it off. $value) { $body .= "$column : $value\n"; } $body .= "\n"; } mail($to, $subject, $body, $headers); ?> HTH, Kevin - Original Message - From: "Scott Miller" <[EMAIL PROTECTED]> To: <[EMAIL PROTECT

Re: [PHP] Php.ini doesn't exit

2003-04-02 Thread Leif K-Brooks
If it doesn't exist, it will use default settings. To see where it's looking for php.ini, use phpinfo(). Javier Carreras wrote: Hi all, Where does PHP get its settings if php.ini file doesn't exist? BTW- I want to enable sockets that are not enabled. Could I do that without creating a php.ini

[PHP] mailing forms and input into MySQL

2003-04-02 Thread Scott Miller
Hi all, I have a current php script that allows me to add/remove customer information from a particular MySQL Database. What I would like to do, is when an employee adds a customer, have some (if not all) of that information e-mailed to a particular e-mail address. I've created scripts

Re: [PHP] Theme selector?

2003-04-02 Thread Steve Keller
At 4/1/2003 08:49 PM, [EMAIL PROTECTED] wrote: > Also, I've not convinced anyone where I'm at now to use smarty. In my > mind they are penny-wise and pound foolish. The real little extra > time you might need to use a template system is richly rewarded in > code re-use and future changes to the s

[PHP] Problem with PHP and MySQl after install

2003-04-02 Thread Don
1) Installed MySQL 4.0.12 2) Installed PHP 4.3.1 One of my config options was --with-mysql=shared,/usr 3) added the following to /etc/ld.so.conf and ran ldconfig: /usr/lib/libmysqlclient.so /usr/lib/mysql 4) When I try to run phpmyadmin, I get the following error: cannot load MySQL extension, pl

[PHP] Re: Can php run as a script?

2003-04-02 Thread Tim Burden
I used to use wget and run cleanup scripts from cron in the usual way. Some people also used to use lynx to do it, I believe. But the best way would be to install latest version of PHP, IMHO. - Original Message - From: "Poon, Kelvin (Infomart)" <[EMAIL PROTECTED]> To: "'Tim Burden'" <[EM

[PHP] Re: Can php run as a script?

2003-04-02 Thread Tim Burden
find / -name php -print - Original Message - From: "Poon, Kelvin (Infomart)" <[EMAIL PROTECTED]> To: "'Tim Burden'" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, April 02, 2003 12:35 PM Subject: RE: Can php run as a script? > Thanks! > > but the thing is I have php 4.2.2 v

[PHP] RE: Can php run as a script?

2003-04-02 Thread Poon, Kelvin (Infomart)
Thanks! but the thing is I have php 4.2.2 version installed in that server. And since it is not 4.3.0 therefore CLI isn't on by default. How can I check if CLI is on or not? If it is not on, I won't be able to excute the php as a script in another other way? THnaks@ -Original Message-

Re: [PHP] Warning Extract

2003-04-02 Thread Marek Kilimajer
I meant there is no row in table members where username='$logname', whatever value $logname contains. Don't forget to run session_start() at the begining of every script. Andy wrote: logname is not in my database. It is a session variable used to hold the members login name. In the form it is s

[PHP] Email Attachment Problem....

2003-04-02 Thread Mike
Hello, I want to send an email attachment using PHP and the below code works locally but when i upload to my RAQ Cobalt server it doesn't send the attachment and i can't figure out why. If you can offer me any guidance as to why this is happening it is greatly appreciated. **The sendmail is a custo

Re: [PHP] Html forms to php scripts

2003-04-02 Thread CPT John W. Holmes
It's an Apache 2 / PHP bug. I think if you use $_POST['ttt'], you'll get the correct value, but I'm not sure. Try turning register globals off or using a stable version of Apache that works with PHP (the 1.3 series). ---John Holmes... - Original Message - From: "VanZee, Timothy" <[EMAIL P

Re: [PHP] Html forms to php scripts

2003-04-02 Thread Tim Burden
What version of Apache are you using? Can you point us to a phpinfo() file? - Original Message - From: "Timothy Vanzee" <[EMAIL PROTECTED]> Newsgroups: php.general To: <[EMAIL PROTECTED]> Sent: Wednesday, April 02, 2003 11:31 AM Subject: FW: [PHP] Html forms to php scripts Repost becaus

Re: [PHP] Warning Extract

2003-04-02 Thread Andy
logname is not in my database. It is a session variable used to hold the members login name. In the form it is session_register('logname'); which is then set to a variable with this code: if ($num2 > 0) { // password is correct $auth="yes"; $logname=$fusername; $tod

[PHP] Re: Can php run as a script?

2003-04-02 Thread Tim Burden
Look for PHP CLI in google. Recent versions of PHP install at CLI PHP executable by default. e.g I ended up with one in: /usr/local/apache/bin/php [EMAIL PROTECTED] root]# /usr/local/apache/bin/php -v PHP 4.3.1 (cli) (built: Feb 20 2003 14:09:35) Copyright (c) 1997-2002 The PHP Group Zend Engin

Re: [PHP] Can php run as a script?

2003-04-02 Thread Aaron Gould
Yes, you definitely can... http://www.php.net/manual/en/features.commandline.php -- Aaron Gould Web Developer Parts Canada - Original Message - From: "Poon, Kelvin (Infomart)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 02, 2003 11:43 AM Subject: [PHP] Can php run

RE: [PHP] Html forms to php scripts

2003-04-02 Thread Ford, Mike [LSS]
> -Original Message- > From: VanZee, Timothy [mailto:[EMAIL PROTECTED] > Sent: 02 April 2003 17:31 > > Repost because no one replied originally. Are there any other lists > that anyone knows of for php that could be more helpful? I'm quite > disappointed in this one because I thought thi

Re: FW: [PHP] Html forms to php scripts

2003-04-02 Thread Marek Kilimajer
VanZee, Timothy wrote: Repost because no one replied originally. Are there any other lists that anyone knows of for php that could be more helpful? I'm quite disappointed in this one because I thought this was a fairly easy question for those who have been working with php for a while. Sorry,

[PHP] Can php run as a script?

2003-04-02 Thread Poon, Kelvin (Infomart)
Hi, This might be a newbie question but I can't find an answer anywhere I search. I know php can be excuted by a web browser, but can it run as a script like Perl? The reason i ask is, I need to write a php script that updates a database in a server. And this script needs to be running in the b

Re: [PHP] Warning Extract

2003-04-02 Thread Marek Kilimajer
Andy wrote: (and Marek fixed) $connection = mysql_connect($host, $user,$password) or die ("Couldn't connect to server."); $db = mysql_select_db($database, $connection) or die ("Couldn't select database."); $sql = "SELECT name FROM members WHERE username=

FW: [PHP] Html forms to php scripts

2003-04-02 Thread VanZee, Timothy
Repost because no one replied originally. Are there any other lists that anyone knows of for php that could be more helpful? I'm quite disappointed in this one because I thought this was a fairly easy question for those who have been working with php for a while. I have the following issue be

[PHP] Warning Extract

2003-04-02 Thread Andy
Help AGAIN!!! Thank you for all the help so far, i am close to getting this members section working correctly now i think! I think i would have given up by now if it were not for the help i get from you all, thank you. I have a warning that i don't understand: Warning: extract() expects first arg

Re: [PHP] Check For Space

2003-04-02 Thread Marek Kilimajer
if(strpos($string, ' ') === false) { //space found } if you don't want any white character: if(ereg('\s',$string)) { //white character found } shaun wrote: Hi, How can i make sure a value sent from a form has no spaces in it? -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Check For Space

2003-04-02 Thread Chris Hayes
At 17:16 2-4-03, you wrote: Hi, How can i make sure a value sent from a form has no spaces in it? Before sending: javascript that prevents this on sending or even while typing. Check the javascript form faqs on www.irt.org for this. After sending: Detect spaces with if (!(strpos(' ', $string)=

Re: [PHP] FTP

2003-04-02 Thread Tomás Liendo
You are right! :-) Other question: When I try to put a file as an anonymous user, I always receipt this error: "Permission denied on server. (Upload)." Does some form exists of allowing to anonymous users upload files or it is impossible? Thank you very much, Tom. "Jon Haworth" <[EMAIL PROT

Re: [PHP] Another Problem installing PHP 4.3.1 - won't compile due to error.

2003-04-02 Thread Don
Yup, you were correct. the 7.10.3 rpm was installed but I forgot to install the 7.10.3 development rpm. I did so and all compiles fine now. Thanks, Don > My guess you have a mess in your curl library installation. For example > you use header from version 7.9.5 and specify that you have version

[PHP] Check For Space

2003-04-02 Thread shaun
Hi, How can i make sure a value sent from a form has no spaces in it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] OCINewcollection fails after being used more then once

2003-04-02 Thread Andries J. Algera
I am trying to use the ocicollection functions. Initially everything works fine, but after reloading the page for the second time I get the following error: OCITypeByName: OCI-22303: type "SISTRUT"."MENSERRO" not found When I try half a minute later, I do manage reload the page without any err

Re: [PHP] $_SERVER[REMOTE_ADDR]

2003-04-02 Thread Jason Sheets
It isn't always possible to get the visitor's real IP address, if the user's traffic is proxied the REMOTE_ADDR will be the proxy IP address, some proxies set the forwarded for header but for security and privacy some do not. If you are not being directed through a proxy REMOTE_ADDR does show t

Re: [PHP] uploading entire directory, with or without compression ...

2003-04-02 Thread Chris Hayes
At 16:15 2-4-03, you wrote: Um, i had a look at the FTP options, (I honestly have no idea about the security implications) but i saw only directory functions for the server. http://www.php.net/manual/en/ref.ftp.php but maybe one of the finished applications: http://nanoftpd.sourceforge.net/ (i

Re: [PHP] uploading entire directory, with or without compression ...

2003-04-02 Thread Kenn Murrah
i was afraid you were gonna say that, jason ... but i was hoping i had overlooked something ... anyway, thanks for your response ... i'm familiar enough with your input to this list that, if you say it can't be done, i'll look no farther ... thanks again, - Original Message - From: "Jas

Re: [PHP] accessing protected remote files

2003-04-02 Thread Marek Kilimajer
Check examples and user notes in the manual: http://www.php.net/manual/en/function.fsockopen.php David Feldman wrote: How would that work? --Dave On Monday, March 31, 2003, at 09:27 AM, Marek Kilimajer wrote: You need to use socket functions and check the response headers David Feldman wrote:

Re: [PHP] uploading entire directory, with or without compression ...

2003-04-02 Thread Jason Wong
On Wednesday 02 April 2003 22:08, Kenn Murrah wrote: > yes, of course they can ... but i'm looking for a way to automate the > process for them (a method which may not exist) .. i suppose i can give > them the option to upload multiple files using multiple input fields, but > I'd really like to fin

Re: [PHP] uploading entire directory, with or without compression ...

2003-04-02 Thread Kenn Murrah
yes, of course they can ... but i'm looking for a way to automate the process for them (a method which may not exist) .. i suppose i can give them the option to upload multiple files using multiple input fields, but I'd really like to find a way to select an entire folder instead ... - Origin

  1   2   >