Re: [PHP] Presence of a program (PHP)

2004-03-16 Thread Jyry Kuukkanen
On Tue, 16 Mar 2004, Brent Clark wrote: I have to make use of embedded pdf files in my page (management decision, please dont argue with me on this one, not my choice). I there a function or somthing to detect the presence of adobe reader to make sure the client has it installed, before

Re: [PHP] help with storing multiple values in session variables.

2004-03-16 Thread Vimala S.P.
Yes encode() function worked perfectely fine. -vimala/. On Mon, 15 Mar 2004, Richard Davey wrote: Hello Vimala, Monday, March 15, 2004, 11:55:47 AM, you wrote: VSP Is there any way of passing unicode strings properly with href and get? I'm 99% sure you can pass unicode strings by

[PHP] Re: Printing landscape

2004-03-16 Thread Michael Nolan
Luis Mirabal wrote: actually, you can control your printer, look: http://www.php.net/manual/en/function.printer-set-option.php you have to do: $handle = printer_open(); printer_set_option ($handle, PRINTER_ORIENTATION , PRINTER_ORIENTATION_LANDSCAPE); printer_close($handle); you've got many

Re: [PHP] Efficieny: Include vs Array vs Function

2004-03-16 Thread Raditha Dissanayake
Hi, On a busy site (where the milliseconds start to matter) the chances are that the operating system has your include files cached so the load time is probably not a factor. If you install some of the php token caching systems (zend and others) the speed is even better. Gentlemen I do believe

php-general Digest 16 Mar 2004 10:00:10 -0000 Issue 2649

2004-03-16 Thread php-general-digest-help
php-general Digest 16 Mar 2004 10:00:10 - Issue 2649 Topics (messages 180493 through 180528): Re: PHP Certification 180493 by: Rasmus Lerdorf 180497 by: Ryan A 180503 by: Richard Davey Re: Regex help (SOLVED) 180494 by: Michal Migurski Pear Package...

Re: [PHP] Efficieny: Include vs Array vs Function

2004-03-16 Thread Robert Cummings
On Tue, 2004-03-16 at 05:11, Raditha Dissanayake wrote: As to using header and footer includes I found that system really frustrating trying to follow the html. What I have switched to is templates where the site layout is a template and each php page generates the content and passes it

Re: [PHP] Efficieny: Include vs Array vs Function

2004-03-16 Thread Raditha Dissanayake
Robert Cummings wrote: On Tue, 2004-03-16 at 05:11, Raditha Dissanayake wrote: As to using header and footer includes I found that system really frustrating trying to follow the html. What I have switched to is templates where the site layout is a template and each php page generates the

Re: [PHP] Anyone Can Help Me?

2004-03-16 Thread colpete
Hello, Put this in your httpd.conf AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps Apache will know how to handle php scripts then. This note is displayed at the end of make install. Use scroll lock on your key board to page up to see. If you have to. Pete

Re: [PHP] current url function

2004-03-16 Thread Marek Kilimajer
Luis Mirabal wrote: i checked http://sk2.php.net/manual/en/features.http-auth.php, but it doesnt shows how to see if i passed user:pass in the url. i try http://user:[EMAIL PROTECTED]/ and dumped globals, and there is nothing... any ideas? variables $_SERVER['PHP_AUTH_USER'] and

[PHP] Calculate

2004-03-16 Thread Tommi Virtanen
Hi! How I can calculate following: I have table: id(int) start_date(date)end_date(date) 001 2004-03-10 2004-03-12 002 2004-03-27 2004-04-02 003 2004-04-05 2004-04-06 Total count of date is 12. But

Re: [PHP] Presence of a program (PHP)

2004-03-16 Thread Marek Kilimajer
Brent Clark wrote: Hi there I have to make use of embedded pdf files in my page (management decision, please dont argue with me on this one, not my choice). I there a function or somthing to detect the presence of adobe reader to make sure the client has it installed, before continuing with

[PHP] Regex help - PLease

2004-03-16 Thread Brent Clark
Hi there im in desperate need of help for a reg expression to ONLY allow 8 NUMBERS to start with 100 and may not have any other kind of letters or characters. Only numbers for example 10064893 Kind Regards And thank you Brent Clark

[PHP] Regex help - PLease

2004-03-16 Thread Brent Clark
Sorry I to should have added this this is what im going with so far preg_match(/\d100.*/); Kind Regards Brent Clark

Re: [PHP] Regex help - PLease

2004-03-16 Thread Richard Davey
Hello Brent, Tuesday, March 16, 2004, 12:39:27 PM, you wrote: BC im in desperate need of help for a reg expression to ONLY allow 8 BC NUMBERS to start with 100 and may not have any other kind of BC letters or characters. Only numbers BC for example BC 10064893 It's not a reg exp, but it will

Re: [PHP] Regex help - PLease

2004-03-16 Thread Rob Ellis
On Tue, Mar 16, 2004 at 02:39:27PM +0200, Brent Clark wrote: Hi there im in desperate need of help for a reg expression to ONLY allow 8 NUMBERS to start with 100 and may not have any other kind of letters or characters. Only numbers for example 10064893 if

[PHP] yahoo route my mail's to bulk folder

2004-03-16 Thread Ali Ashrafzadeh
hi and thank's my friend's in a web application I send mail message to members using mail() function in HTML format but yahoo mail server route my messages to bulk folder , I want know if there is any setting requiered in my script to send mail correctly, PHPINFO() function return

Re: [PHP] PHP Certification

2004-03-16 Thread joel boonstra
On Mon, Mar 15, 2004 at 09:05:42AM -0700, Sheeraz fazal wrote: I need information about the php certification, from www.expertrating.com . Does this site has good market reputation? I took 10 minutes yesterday and checked out one of their free tests on computer literacy or something like that.

Re: [PHP] yahoo route my mail's to bulk folder

2004-03-16 Thread Jason Wong
On Tuesday 16 March 2004 20:39, Ali Ashrafzadeh wrote: in a web application I send mail message to members using mail() function in HTML format but yahoo mail server route my messages to bulk folder There can be any number of reasons. None of them having anything to do with PHP. For the most

RE: [PHP] An extension to CREATE zips??

2004-03-16 Thread Lance Lovette
Did you try this class? http://www.phpconcept.net/pclzip/index.en.php Is there function library capable of creating zip files and adding files to a zip archive under the windows/apache platform? After some extensive browsing I can only turn up read-only access functions. -- PHP General

Re: [PHP] PHP Certification

2004-03-16 Thread Ryan A
On 3/16/2004 2:50:52 PM, joel boonstra ([EMAIL PROTECTED]) wrote: On Mon, Mar 15, 2004 at 09:05:42AM -0700, Sheeraz fazal wrote: I need information about the php certification, from www.expertrating. com . Does this site has good market reputation? I took 10 minutes yesterday and checked

[PHP] PHP Zen-cart

2004-03-16 Thread Ryan A
Hey everyone, Been looking for a catalog cart system to sell purses online for a client that is either cheap or free and plugs into 2checkout for payment processing. Saw a few good ones via google,hotscrips etc that go via mals-e and others before coming to zenCart (zen-cart.com) its free, quite a

[PHP] Changes in php.ini have no effect

2004-03-16 Thread Harry Sufehmi
(sorry if this post is a double for you, but I didn't get it and it doesn't exist in the archive - so I assume it was never posted before) The following is a question that seems obvious, but somehow manages to elude me until today ... :-} hopefully someone here could point out my stupidity in

[PHP] db design path based

2004-03-16 Thread Age Bosma
Hi, I'm trying to build a new db for a website and I've got an idea on how it should work but I can't seem to figure out what the best way would be if it comes to the design of the tables in the db. Maybe I'm just looking at the the wrong way... I would like to make the website completely db

[PHP] Switching First Last Names in List

2004-03-16 Thread Jeff Oien
If I have a list like this: Firstname1 LastName1 Firstname2 Lastname2 etc. I can split the names by \n to put them into an array which will then be output into an option list for a form. But how do I reverse the names so that the last name is first? Also, how do I handle people with three names?

RE: [PHP] db design path based

2004-03-16 Thread Jay Blanchard
[snip] I'm trying to build a new db for a website [/snip] Perhaps a db list would be good for this question? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [PHP-WIN] help with _PHP_SELF and changing a paramter in URL...

2004-03-16 Thread Firman Wandayandi
Hi Leo, Actually I do this with preg_replace(). A code might like this: --- begin code --- // if url taken from browser url address $querystring = $_SERVER['QUERY_STRING']; $newurl = preg_replace('/(var1)=([0-9].*)(.*)$/', '\1=20\3', $querystring ); // if url taken from string $url =

Re: [PHP] Switching First Last Names in List

2004-03-16 Thread Neil Freeman
Take a look at explode() www.php.net/explode Neil Jeff Oien wrote: *** This Email Has Been Virus Swept *** If I have a list like this: Firstname1 LastName1 Firstname2 Lastname2 etc. I can split the names by

RE: [PHP] Switching First Last Names in List

2004-03-16 Thread Jay Blanchard
[snip] If I have a list like this: Firstname1 LastName1 Firstname2 Lastname2 etc. [/snip] do the split or explode for each item ... if(3 == count($arrayFoo)){ echo option . $arrayFoo[2] . nbsp; . $arrayFoo[1] . nbsp; . $arrayFoo[0] . /option; } else { echo option . $arrayFoo[1] . nbsp; .

Re: [PHP] db design path based

2004-03-16 Thread Age Bosma
Jay Blanchard wrote: [snip] I'm trying to build a new db for a website [/snip] Perhaps a db list would be good for this question? True, but I figured this php list would be a good place as well because it also comes down to programming problems that might occur. Also people who use php

Re: [PHP] Switching First Last Names in List

2004-03-16 Thread Richard Davey
Hello Jeff, Tuesday, March 16, 2004, 3:24:57 PM, you wrote: JO If I have a list like this: JO Firstname1 LastName1 JO Firstname2 Lastname2 JO etc. JO I can split the names by \n to put them into JO an array which will then be output into an option JO list for a form. But how do I reverse the

Re: [PHP] yahoo route my mail's to bulk folder

2004-03-16 Thread Miles Thompson
At 10:00 PM 3/16/2004 +0800, Jason Wong wrote: On Tuesday 16 March 2004 20:39, Ali Ashrafzadeh wrote: in a web application I send mail message to members using mail() function in HTML format but yahoo mail server route my messages to bulk folder There can be any number of reasons. None of them

[PHP] Reading a image resource

2004-03-16 Thread Ewout de Boer
Is there a function to get the raw image data from a image resource ? (resource created by imagecreatefrom) I want to read and manipulate an image from a file and store it in a database without the use of a temp. file regards, Ewout -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Efficieny: Include vs Array vs Function

2004-03-16 Thread Rasmus Lerdorf
If you are that concerned about it, pear install apc. Your include files will be cached in memory and the only cost per include file is a single stat() system call and looking up the opcode cache in shared memory. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Switching First Last Names in List

2004-03-16 Thread Ben Ramsey
This works rather nicely, too: ?php $list = Firstname1 LastName1 Firstname2 Lastname2; $name_array = array(); $temp_array = explode(\n, $list); foreach ($temp_array as $name) { $name_array[] = explode( , $name); } print_r($name_array); ? $name_array is now a multi-dimensional array with

[PHP] images

2004-03-16 Thread Maxi Yedid
hello I'm using the following function from the php manual (user's posts) and get the following error. What I do is upload a file from the user and save it in the server; that's working fine; what I want is to save a copy of the file in thumbnail size.

Re: [PHP] Regex help - PLease

2004-03-16 Thread Pablo
On 03/16/2004 6:57 AM, Rob Ellis [EMAIL PROTECTED] wrote: On Tue, Mar 16, 2004 at 02:39:27PM +0200, Brent Clark wrote: Hi there im in desperate need of help for a reg expression to ONLY allow 8 NUMBERS to start with 100 and may not have any other kind of letters or characters. Only

Re: [PHP] dbg extension...

2004-03-16 Thread Luis Mirabal
yes, i found that the extension functions only works in debug sessions, so i replaced it by Xdebug, it is very cool, i recommend it! http://www.xdebug.org/ luis. Tom Rogers [EMAIL PROTECTED] escribió en el mensaje news:[EMAIL PROTECTED] Hi, Tuesday, March 16, 2004, 9:51:46 AM, you wrote: LM

Re: [PHP] db design path based

2004-03-16 Thread Raditha Dissanayake
True, but I figured this php list would be a good place as well because it also comes down to programming problems that might occur. Also people who use php will be dealing with db's a lot as well. Jay is right. This list is supposed to answer only questions like my php code that queries a

Re: [PHP] Switching First Last Names in List

2004-03-16 Thread Ben Ramsey
JO so that the last name is first? Also, how do I JO handle people with three names? Thanks. I missed this part, so here's my take with the solution I provided (I'm including the print-out of the option tags): foreach ($name_array as $person) { $lastname_element = count($person) - 1;

Re[2]: [PHP] Switching First Last Names in List

2004-03-16 Thread Richard Davey
Hello Ben, Tuesday, March 16, 2004, 4:16:01 PM, you wrote: BR This works rather nicely, too: [snip] BR $name_array is now a multi-dimensional array with the first and last BR names separated. print_r should show you the values. It doesn't reverse the name (as required), which although you

[PHP] Re: Calculate

2004-03-16 Thread Luis Mirabal
from sql?? if you are doing: select ... count(date) ...from ... where ... do: select ... count(date) ...from ... where ... group by date luis. Tommi Virtanen [EMAIL PROTECTED] escribió en el mensaje news:[EMAIL PROTECTED] Hi! How I can calculate following: I have table: id(int)

Re[2]: [PHP] Switching First Last Names in List

2004-03-16 Thread Richard Davey
Hello Ben, Tuesday, March 16, 2004, 4:24:12 PM, you wrote: BR I missed this part, so here's my take with the solution I provided (I'm BR including the print-out of the option tags): Heh :) just as I posted about it too. -- Best regards, Richard Davey

Re: [PHP] Calculate

2004-03-16 Thread joel boonstra
On Tue, Mar 16, 2004 at 02:35:57PM +0200, Tommi Virtanen wrote: How I can calculate following: I have table: id(int) start_date(date)end_date(date) 001 2004-03-10 2004-03-12 002 2004-03-27 2004-04-02 003

RE: [PHP] e - comerce website

2004-03-16 Thread Chris W. Parker
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] on Monday, March 15, 2004 6:08 PM said: Hai.. hi. I have a homework from my scholl. We must make a simple website of e - comerce use php. I just still confuse to use the session in this work. And I must make a different page for a administrator

RE: [PHP] Efficieny: Include vs Array vs Function

2004-03-16 Thread Chris W. Parker
Rob Paxon mailto:[EMAIL PROTECTED] on Monday, March 15, 2004 9:24 PM said: Bear with me while I dish out some details. My question concerns the efficiency of using multiple file includes versus storing segments of data in one include as arrays or functions. have you considered the size

RE: [PHP] Efficieny: Include vs Array vs Function

2004-03-16 Thread Jason Sheets
Rob Paxon mailto:[EMAIL PROTECTED] on Monday, March 15, 2004 9:24 PM said: Bear with me while I dish out some details. My question concerns the efficiency of using multiple file includes versus storing segments of data in one include as arrays or functions. have you considered the size

Re: [PHP] Calculate

2004-03-16 Thread Jason Davidson
joel boonstra [EMAIL PROTECTED] wrote: On Tue, Mar 16, 2004 at 02:35:57PM +0200, Tommi Virtanen wrote: How I can calculate following: I have table: id(int) start_date(date)end_date(date) 001 2004-03-10 2004-03-12 002

[PHP] Array to String conversion error

2004-03-16 Thread Alex Hogan
Hi All, I have a function that gets a single field from a mssql db. That field contains data that is then parsed out to represent a survey's results. The function; function quesresults(){ $query = SELECT sur_ans FROM au_survey; $result =

[PHP] Re: objects in session

2004-03-16 Thread Justin Patrin
Marc Serra wrote: Hi, I got problem when i want to save object in session. I got my first page when I create my object and save it to session: ?php Require 'test.inc.php'; Session_start(); $test = new test(); $test-Load($_Get['id']);

[PHP] Re: Web based php development tool

2004-03-16 Thread Justin Patrin
Joseph Ross Lee wrote: Anybody here who could recommend a web based php dev tool for editing php sources online? Thanks! I'm having a hard time finding a nice one. Thanks in advance guys! I have a simple php-based online text editor (which deals with directories and such) if you'd like to take a

RE: [PHP] Array to String conversion error

2004-03-16 Thread Chris W. Parker
Alex Hogan mailto:[EMAIL PROTECTED] on Tuesday, March 16, 2004 9:48 AM said: $row = mssql_fetch_array($result); $thearray = explode('__', $row); - This is line 40 $row is an entire array. you don't explode an entire array, you only explode the contents of an

[PHP] array $_POST problem

2004-03-16 Thread Joey Kelly
Hello, I have a SuSE 9.0 Linux server running PHP and Apache2 (my phpinfo() data is at http://redfishnetworks.com/~jkelly/test.php), and my problem is this: I've got a sticky problem that I need to solve. I've just turned on register_globals in my PHP php.ini file, and therefore have to run my

[PHP] Re: behind the scenes coding?

2004-03-16 Thread Justin Patrin
Dustin Wish With Indco Networks wrote: I have been looking everywhere for any tips or tutorials on posting to separate websites and parsing the return values for input into a mysql db. I understand parsing html pages, but not how to post to a form on a different site and once the values are

Re: [PHP] array $_POST problem

2004-03-16 Thread Richard Davey
Hello Joey, Tuesday, March 16, 2004, 6:16:34 PM, you wrote: JK I have a SuSE 9.0 Linux server running PHP and Apache2 (my phpinfo() data is JK at http://redfishnetworks.com/~jkelly/test.php), and my problem is this: JK I've got a sticky problem that I need to solve. I've just turned on JK

RE: [PHP] array $_POST problem

2004-03-16 Thread Chris W. Parker
Joey Kelly mailto:[EMAIL PROTECTED] on Tuesday, March 16, 2004 10:17 AM said: The problem I'm having is that the script Im trying to refactor worked great before I turned register_globals off. The script posts an array, and I can't seem to figure out how to $_POST the array. the script

Re: [PHP] array $_POST problem

2004-03-16 Thread Chris Boget
You're the Joey Kelly who runs the LUG in NoLA, yes? I've got a sticky problem that I need to solve. I've just turned on register_globals in my PHP php.ini file, and therefore have to run my form variables through $_POST: $variable = $_POST[$variable]; echo $variable; Or you can use

RE: [PHP] Changes in php.ini have no effect

2004-03-16 Thread Ford, Mike [LSS]
On 16 March 2004 15:10, Harry Sufehmi wrote: Problem: Changes made in c:\winnt\php.ini doesn't have any effect even after restarting Apache. Steps tried: # looking for other copies of php.ini - none found # entering the related values in Apache's httpd.conf file instead - works for some

RE: [PHP] Array to String conversion error

2004-03-16 Thread Alex Hogan
$row is an entire array. you don't explode an entire array, you only explode the contents of an element of an array. print_r($row) will give you some clues. you'll need to access a specific element within the array. like: $thearray = explode('__', $row[0][0]); That was it... Thanks

[PHP] mappath and unmappath function

2004-03-16 Thread Luis Mirabal
does someone knows a function to map a server path to a fs path, and a function that does the inverse? i mean, if you have /var/www/html/script and applies function unmappath, it returns /script and if apply mappath to /script it returns /var/www/html/script. somebody has something like this?

RE: [PHP] mappath and unmappath function

2004-03-16 Thread Jay Blanchard
[snip] does someone knows a function to map a server path to a fs path, and a function that does the inverse? i mean, if you have /var/www/html/script and applies function unmappath, it returns /script and if apply mappath to /script it returns /var/www/html/script. somebody has something like

RE: [PHP] Changes in php.ini have no effect

2004-03-16 Thread Harry Sufehmi
On 16/03/2004 at 18:18 Ford, Mike [LSS] wrote: On 16 March 2004 15:10, Harry Sufehmi wrote: Problem: Changes made in c:\winnt\php.ini doesn't have any effect even after restarting Apache. PHP version: 4.3.3 phpinfo() output - http://www.harrysufehmi.com/inf.php If you at the output of

[PHP] input type=text value=He said, How do I get this to work?, with a frown size=50

2004-03-16 Thread James E Hicks III
How do I get this to work? the input box is only showing He said, input type=text value=He said, How'm I gonna get this to work?, with a frown size=50 James Hicks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] input type=text value=He said, How do I =?iso-8859-1?Q?get this to work?, with a frown size=3D50?=

2004-03-16 Thread Frank M. Kromann
Asuming the content is generated by php, take a look at htmlentities(). http://php.net/htmlentities - Frank How do I get this to work? the input box is only showing He said, input type=text value=He said, How'm I gonna get this to work?, with a frown size=50 James Hicks --

RE: [PHP] input type=text value=He said, How do I get this t o work?, with a frown size=50

2004-03-16 Thread Vail, Warren
input type=text value=He said, \How'm I gonna get this to work?\, with a frown size=50 Warren Vail -Original Message- From: James E Hicks III [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 16, 2004 11:08 AM To: [EMAIL PROTECTED] Subject: [PHP] input type=text value=He said, How do I

RE: [PHP] input type=text value=He said, How do I get this to work?, with a frown size=50

2004-03-16 Thread Chris W. Parker
James E Hicks III mailto:[EMAIL PROTECTED] on Tuesday, March 16, 2004 11:08 AM said: input type=text value=He said, How'm I gonna get this to work?, with a frown size=50 i came across this same problem recently. http://php.net/htmlentities becomes quot; chris. -- PHP General Mailing

RE: [PHP] input type=text value=He said, How do I get this to work?, with a frown size=50

2004-03-16 Thread Jay Blanchard
[snip] How do I get this to work? the input box is only showing He said, input type=text value=He said, How'm I gonna get this to work?, with a frown size=50 [/snip] Escape the quotes. input type=text value=He said, \How\'m I gonna get this to work?\, with a frown size=50 -- PHP General

RE: [PHP] input type=text value=He said, How do I get this to work?, with a frown size=50

2004-03-16 Thread Jay Blanchard
[snip] Escape the quotes. [/snip] How about addslashes() and stripslashes() ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Changes in php.ini have no effect

2004-03-16 Thread Ford, Mike [LSS]
On 16 March 2004 19:01, Harry Sufehmi wrote: On 16/03/2004 at 18:18 Ford, Mike [LSS] wrote: On 16 March 2004 15:10, Harry Sufehmi wrote: Problem: Changes made in c:\winnt\php.ini doesn't have any effect even after restarting Apache. PHP version: 4.3.3 phpinfo() output -

RE: [PHP] input type=text value=He said, How do I get this t o work?, with a frown size=50

2004-03-16 Thread Vail, Warren
how about http://www.php.net/manual/en/function.htmlspecialchars.php not quite as stringent as http://www.php.net/manual/en/function.htmlentities.php Warren Vail -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 16, 2004 11:21 AM To: Jay Blanchard;

Re: [PHP] Calculate

2004-03-16 Thread joel boonstra
On Tue, Mar 16, 2004 at 09:43:28AM -0800, Jason Davidson wrote: Most likely im not understanding your question.. but, if you are trying to calculate the total rows by month.. SELECT whatever FROM table WHERE MONTH(your_date) = '03'; and use num_rows or row_count or whatever the php mysql

RE: [PHP] input type=text value=He said, How do I get this to work?, with a frown size=50

2004-03-16 Thread Chris W. Parker
Vail, Warren mailto:[EMAIL PROTECTED] on Tuesday, March 16, 2004 11:14 AM said: input type=text value=He said, \How'm I gonna get this to work?\, with a frown size=50 escaping does not work. chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] input type=text value=He said, How do I get this to work?, with a frown size=50

2004-03-16 Thread Hidayet Dogan
Replacing with quot; HTML entitiy may be enough. For ex: ? $value = str_replace(\, quot;, $value); echo input type=\text\ value=\$value\; ? Or input type=text value=?=$value ? Good luck, Hidayet Dogan [EMAIL PROTECTED]

RE: [PHP] input type=text value=He said, How do I get this t o work?, with a frown size=50

2004-03-16 Thread Vail, Warren
Ahh, because it's raw html and not in php. one choice would be to encapsulate it within php input type=text value=?php echo He said, \How'm I gonna get this to work?\, with a frown;? size=50 or input type=text value=?php echo htmlspecialchars(He said, \How'm I gonna get this to work?\, with a

[PHP] local (config) value not overriding master

2004-03-16 Thread Fredrik de Vibe
Hi On the system I'm working on atm, php is set up with a non-modifiable php.ini, but I can make php config changes in httpd.conf. The changes I make are reflected in the local value row in the output from phpinfo() while the values from php.ini are in the master value row. This seemed to be

[PHP] determine logged in user

2004-03-16 Thread Ashley
Can PHP determine the username of the person currently logged into a Windows 2K machine? If so, could someone please point me to some tutorials or post the necessary code, because I cannot find anything about this. Thanks in advance, Ashley -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] determine logged in user

2004-03-16 Thread Jay Blanchard
[snip] Can PHP determine the username of the person currently logged into a Windows 2K machine? If so, could someone please point me to some tutorials or post the necessary code, because I cannot find anything about this. [/snip] see the manual http://us2.php.net/features.http-auth -- PHP

Re: [PHP] determine logged in user

2004-03-16 Thread Ashley
This is not what I am looking for. I do not want a username/password dialog box. I want it to determine the username from who is logged into the computer and not to prompt for a username and password. I already knew how to generate a dialog box for this, but I want this to be done behind

[PHP] PHP Sessions - One Server, Many Terminals

2004-03-16 Thread Damon Abilock
I'm having a problem related to PHP sessions in a school computer lab environment. I have a script that uses sessions to keep track of a user and their work on the system. It is being used by a school in a computer lab in which the students just have terminals -- they all access the same server

Re: [PHP] determine logged in user

2004-03-16 Thread Justin Patrin
Ashley wrote: This is not what I am looking for. I do not want a username/password dialog box. I want it to determine the username from who is logged into the computer and not to prompt for a username and password. I already knew how to generate a dialog box for this, but I want this to be

[PHP] Re: determine logged in user

2004-03-16 Thread Rob Adams
Ashley [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Can PHP determine the username of the person currently logged into a Windows 2K machine? On the machine running the client (web browser) or the machine running the server? On the client, no. At least, I hope not. On the server...

Re: [PHP] Re: determine logged in user

2004-03-16 Thread Red Wingate
Seen some interesting ways on doing this on the client. Basicly you run a bash script ( on autostart for example ) and pass the login-info which are saved in the enviroment to the server to make sure the user is known by the server as well. Another way could be to check wether the REMOTE_ADDR has

Re: [PHP] Re: determine logged in user

2004-03-16 Thread Red Wingate
One last thing, check the PHP-DEV Archives someone send a quite nice trick on how to do that about 1-2 months ago. Bye, red Ashley wrote: Thanks for the info guys. I guess that I will just make a login screen of some sort to accomplish what I need. Thanks again, Ashley Red Wingate wrote:

Re: [PHP] Re: determine logged in user

2004-03-16 Thread Ashley
Do you happen to know what the subject was? I cannot seem to find the particular post you are mentioning. Ashley Red Wingate wrote: One last thing, check the PHP-DEV Archives someone send a quite nice trick on how to do that about 1-2 months ago. Bye, red Ashley wrote: Thanks for the info

Re: [PHP] Re: determine logged in user

2004-03-16 Thread Red Wingate
Here you go: http://marc.theaimsgroup.com/?l=php-devm=107732506523441w=2 Have fun, red Ashley wrote: Do you happen to know what the subject was? I cannot seem to find the particular post you are mentioning. Ashley Red Wingate wrote: One last thing, check the PHP-DEV Archives someone

Re: [PHP] Re: determine logged in user

2004-03-16 Thread Ashley
Thanks for the pointer, I will see what I can do with it. This is actually the same scenario that I am in. Ashley Red Wingate wrote: Here you go: http://marc.theaimsgroup.com/?l=php-devm=107732506523441w=2 Have fun, red Ashley wrote: Do you happen to know what the subject was? I cannot

[PHP] Re: Apache directive to expand unqualified host names?

2004-03-16 Thread Phil Frisbie, Jr.
Matt wrote: Hello, I am looking for an Apache directive to automatically expand an unqualified host name in a web browser client. Here's an example of what I mean by this: User, in web browser, enters (these are all hypothetical examples): http://automobiles/trucks/ automobiles actually

[PHP] Optimise two mysql queries to one query

2004-03-16 Thread dr. zoidberg
Hello, $a = mysql_query(Select a,b FROM t WHERE category=1) while($a) { $x = $a[a]; //some echo //another query $b = mysql_query(Select * FROM t WHERE subcategory=$x) while ($b) { //some echo } } Point is that I have menus, parents with childes (childes are not parents) and I want to display them

[PHP] Re: Optimise two mysql queries to one query

2004-03-16 Thread Justin Patrin
Dr. Zoidberg wrote: Hello, $a = mysql_query(Select a,b FROM t WHERE category=1) while($a) { $x = $a[a]; //some echo //another query $b = mysql_query(Select * FROM t WHERE subcategory=$x) while ($b) { //some echo } } Point is that I have menus, parents with childes (childes are not parents) and I

[PHP] Re: input type=text value=He said, How do I get this to work?, with a frown size=50

2004-03-16 Thread Ligaya Turmelle
try the escape character (\). Note the previous question from Character question by David Westbrooks. Posted on 3/13/04. Respectfully, Ligaya Turmelle James E Hicks III [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] How do I get this to work? the input box is only showing He

RE: [PHP] Re: input type=text value=He said, How do I get this to work?, with a frown size=50

2004-03-16 Thread Chris W. Parker
Ligaya Turmelle mailto:[EMAIL PROTECTED] on Tuesday, March 16, 2004 2:28 PM said: try the escape character (\). Note the previous question from Character question by David Westbrooks. Posted on 3/13/04. escaping html does not work. note the previous ten+ messages that came through before

[PHP] Re: input type=text value=He said, How do I get this to work?, with a frown size=50

2004-03-16 Thread Justin Patrin
Ligaya Turmelle wrote: try the escape character (\). Note the previous question from Character question by David Westbrooks. Posted on 3/13/04. Respectfully, Ligaya Turmelle James E Hicks III [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] How do I get this to work? the input box is

[PHP] Re: PHP Sessions - One Server, Many Terminals

2004-03-16 Thread memoimyself
Damon, Sessions have to do with requests being sent by browsers to the web server. Each time you close all the windows of your browser on your computer and start the browser again, a new session is started. I suspect that since all your users are essentially using the same web browser (since

[PHP] $_FILE

2004-03-16 Thread Bruno Santos
Hello. I've read in a book that we can access several file properties (when uploading a file) in two ways: 1st with the array $_FILE 2nd with $HTTP_POST_FILES i've used the 1st, but my program give many erros, and when using the 2nd, everything was fine. the 1st is avaiable from PHP 4.1.0,

[PHP] Re: $_FILE

2004-03-16 Thread Luis Mirabal
it is not $_FILE, it is $_FILES :P luis. Bruno Santos [EMAIL PROTECTED] escribió en el mensaje news:[EMAIL PROTECTED] Hello. I've read in a book that we can access several file properties (when uploading a file) in two ways: 1st with the array $_FILE 2nd with $HTTP_POST_FILES i've

Re: [PHP] Efficieny: Include vs Array vs Function

2004-03-16 Thread Rob Paxon
Jason Sheets wrote: Sometimes having less included files with more content is more efficient than having a lot of small files [...] I'd think in my case, this is true. Generally, nothing is in these main include files that aren't needed by every page. I'd suggest profiling your code, use the

[PHP] File Upload problems

2004-03-16 Thread Bruno Santos
Can someone tell me why this is happening ? i've tryed everything, since changing file, directory permissions, owner, etc i upload a file and, i give this erros someone has any ideia ??? File Type: text/plain *Warning*: move_uploaded_file(teste.txt): failed to open stream:

[PHP] session problem (i think)

2004-03-16 Thread Nick Rout
I am running Apache/2.0.48 (Gentoo/Linux) mod_ssl/2.0.48 OpenSSL/0.9.6k PHP/4.3.4 I have a drupal site set up, http://rout.dyndns.org/cagc Since some time on Sunday i have had the following error appear at the bottom of the page: Warning: Unknown(): A session is active. You cannot change the

RE: [PHP] input type=text value=He said, How do I get this t o work?, with a frown size=50

2004-03-16 Thread Chris Shiflett
--- Vail, Warren [EMAIL PROTECTED] wrote: Ahh, because it's raw html and not in php. one choice would be to encapsulate it within php input type=text value=?php echo He said, \How'm I gonna get this to work?\, with a frown;? size=50 The problem with this is that PHP is server-side, so the

[PHP] creating a mailbot in php

2004-03-16 Thread Leonard B Burton
Greetings, I have been trying to come up with a script in PHP to take an email and do a little parsing and upload the data into a mysql database. However I have had a couple of glitches. Would someone be so nice to send me the code to just get it to do something (like update a counter or

RE: [PHP] input type=text value=He said, How do I get this t o work?, with a frown size=50

2004-03-16 Thread Vail, Warren
I caught that one about 10 seconds after pressing the send button. Guess nothing gets by you guys. Warren Vail -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 16, 2004 3:46 PM To: Vail, Warren; 'Chris W. Parker'; James E Hicks III; [EMAIL

  1   2   >