Re: [PHP] Session has new id on 'some' pages.

2005-07-18 Thread Burhan Khalid
Marek Kilimajer wrote: Andy Pieters wrote: Ok found the solution, seems like one page is on http://server.org.uk and the other on www.server.org.uk even though its the same server it generates a different session id! set the domain of the cookie to 'server.org.uk', it's the fifth paramete

Re: [PHP] Is there a way to get a variable name as a string?

2005-07-18 Thread Tyler Kiley
function named_print($var_name) { return "echo 'the variable named $var_name is set to ' . \$var_name;" } eval(named_print($foo)); ;-) Tyler -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is there a way to get a variable name as a string?

2005-07-18 Thread Edward Vermillion
Edward Vermillion wrote: Rasmus Lerdorf wrote: Daevid Vincent wrote: Is there a way to get the name of a variable as a string? For example... Nope, not possible. -Rasmus Wouldn't the name of the variable show up in a var_dump()? It would be messy, but if it's there... Actually I me

Re: [PHP] Is there a way to get a variable name as a string?

2005-07-18 Thread Edward Vermillion
Rasmus Lerdorf wrote: Daevid Vincent wrote: Is there a way to get the name of a variable as a string? For example... Nope, not possible. -Rasmus Wouldn't the name of the variable show up in a var_dump()? It would be messy, but if it's there... -- PHP General Mailing List (http://www.php

Re: [PHP] Is there a way to get a variable name as a string?

2005-07-18 Thread Ryan A
I didnt totally understand you q in the beginning (and still dont fully), but > > Is there a way to get the name of a variable as a string? For example... > Nope, not possible. > -Rasmus the man has spoken :-D -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Is there a way to get a variable name as a string?

2005-07-18 Thread Rasmus Lerdorf
Daevid Vincent wrote: > Is there a way to get the name of a variable as a string? For example... Nope, not possible. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Is there a way to get a variable name as a string?

2005-07-18 Thread Rob Agar
hi Daevid FWIW, I was trying to do the exact same thing a while back, and came to the conclusion that it wasn't possible. Rob > -Original Message- > From: Daevid Vincent [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 19 July 2005 11:28 AM > To: php-general@lists.php.net > Subject: [PHP] Is

RE: [PHP] Is there a way to get a variable name as a string?

2005-07-18 Thread Daevid Vincent
That won't work. Then I will get what the VALUE of $bar is set to. I want the actual text "bar". Basically everything after the "$" -- ie. The NAME of the VARIABLE, not it's contents. The closest I've come so far is to do this. Function myname($foo) { echo "variable named $foo has the co

Re: [PHP] Is there a way to get a variable name as a string?

2005-07-18 Thread Ryan A
Maybe something like: Function myname ($foo) { $return_value="the variable name passed in is ".$foo; return $return_value; } echo myname($bar); Just a guess. On 7/19/2005 3:27:57 AM, Daevid Vincent ([EMAIL PROTECTED]) wrote: > Is there a way to get the name of a variable as a string? F

[PHP] Is there a way to get a variable name as a string?

2005-07-18 Thread Daevid Vincent
Is there a way to get the name of a variable as a string? For example... Function myname ($foo) { echo "the variable name passed in is ".realname($foo); } myname($bar); I want to see printed out: "the variable name passed in is bar"

Re: [PHP] Char encoding using fget or curl

2005-07-18 Thread Ligaya Turmelle
I have never done this but - have you tried using curl_setopt to have is sent as a binary file and try to go from there? Marcelo Volmaro wrote: But my problem is that the information i get from the fget or curl is ALREADY converted!!! And by what i see, the function overloading don´t work o

Re: [PHP] show a field in php file

2005-07-18 Thread George B
Jochem Maas wrote: John Nichel wrote: George B wrote: http://us2.php.net/manual/en/index.php :-) anyone care for a php mysql extension: mysql_do_xml_http_request_bound_richdatagrid([string] query); george if you want to keep asking questions on NRBS** then you'll need to change email add

Re: [PHP] PHP from CLI with SAPI

2005-07-18 Thread Rasmus Lerdorf
Fredrik Tolf wrote: > On Mon, 2005-07-18 at 15:57 -0400, Evert | Rooftop wrote: > >>Fredrik Tolf wrote: >> >>>I've begun to be more and more displeased with Apache lately, so I've >>>been thinking of writing my own HTTP server instead. I still want PHP >>>support, but writing a new SAPI for PHP se

Re: [PHP] show a field in php file

2005-07-18 Thread vid
Thats just executing the query.. you need to use the result set, and iterate over it... $rs = mysql_query($query); while($row=mysql_fetch_array($rs)) { echo $row[0]; ... } stuff like that. > Hey guys how would i show a filed from a MySQL database in a php file? > Isnt it this? > SELECT * FROM

RE: [PHP] show a field in php file

2005-07-18 Thread Jay Blanchard
[snip] ...a lot of stuff from George [/snip] George, We appreciate that you are asking a lot of questions and hope that you become a proficient user of PHP. We do recommend that you spend some time with a tutorial or two (Google is your friend) and a little time with the manual. Many of your

Re: [PHP] show a field in php file

2005-07-18 Thread John Nichel
George B wrote: http://us2.php.net/manual/en/index.php -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] show a field in php file

2005-07-18 Thread George B
Hey guys how would i show a filed from a MySQL database in a php file? Isnt it this? SELECT * FROM `user` But that dosent work because it comes out blank :-\ And I already am connected to the database Code: mysql_connect ('localhost','myaccount','mypass') or die ("could not connect to ser

Re: [PHP] syntax error, unexpected T_STRING

2005-07-18 Thread George B
Jim Moseby wrote: I am trying to connect to a datbase: " mysql_select_db ('database') or die ("couldnt connect to databse") " What is wrong here? This is the error: Parse error: syntax error, unexpected T_STRING in file name on line 12 -- PHP General Mailing List (http://www.php.net/)

[PHP] Re: syntax error, unexpected T_STRING

2005-07-18 Thread George B
George B wrote: I am trying to connect to a datbase: " mysql_select_db ('database') or die ("couldnt connect to databse") " What is wrong here? This is the error: Parse error: syntax error, unexpected T_STRING in file name on line 12 this code works though $db = mysql_connect("localhost",

Re: [PHP] syntax error, unexpected T_STRING

2005-07-18 Thread John Nichel
George B wrote: I am trying to connect to a datbase: " mysql_select_db ('database') or die ("couldnt connect to databse") " What is wrong here? This is the error: Parse error: syntax error, unexpected T_STRING in file name on line 12 Are either one of those lines, line 12? -- John C. Ni

RE: [PHP] syntax error, unexpected T_STRING

2005-07-18 Thread Jim Moseby
> > I am trying to connect to a datbase: > > " > mysql_select_db ('database') > or die ("couldnt connect to databse") > " > What is wrong here? > This is the error: > > Parse error: syntax error, unexpected T_STRING in file name on line 12 > > -- > PHP General Mailing List (http://www.ph

[PHP] syntax error, unexpected T_STRING

2005-07-18 Thread George B
I am trying to connect to a datbase: " mysql_select_db ('database') or die ("couldnt connect to databse") " What is wrong here? This is the error: Parse error: syntax error, unexpected T_STRING in file name on line 12 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

Re: [PHP] change letter to all caps

2005-07-18 Thread eoghan
Hi On 18 Jul 2005, at 18:59, George B wrote: Lets say I have a form. And when user types in the form and clicks go, it shows output. but. lets say the person type in monday But I want the php code to change it too MONDAY how do I do that? Thanks! have a look here: http://ie2.php.net/manual/

Re: [PHP] change letter to all caps

2005-07-18 Thread John Nichel
George B wrote: Lets say I have a form. And when user types in the form and clicks go, it shows output. but. lets say the person type in monday But I want the php code to change it too MONDAY how do I do that? The manual is your friend. http://us2.php.net/manual/en/function.strtoupper.php --

Re: [PHP] change letter to all caps

2005-07-18 Thread webmaster
$uppercasestring=strtoupper($originalstring); - Original Message - From: "George B" <[EMAIL PROTECTED]> To: Sent: Monday, July 18, 2005 6:59 PM Subject: [PHP] change letter to all caps > Lets say I have a form. And when user types in the form and clicks go, > it shows output. > but. >

RE: [PHP] change letter to all caps

2005-07-18 Thread Jay Blanchard
[snip] Lets say I have a form. And when user types in the form and clicks go, it shows output. but. lets say the person type in monday But I want the php code to change it too MONDAY how do I do that? [/snip] http://www.php.net/strtoupper -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] Re: jpgs into database

2005-07-18 Thread Tyler Kiley
I've always liked storing all data in the DB to keep things simple, so I stored images in the DB and then cache them on the filesystem when they're first requested. Granted, it's pretty inefficient with disk space, but if you have a good ORM db lib and caching lib, it's extremely convenient. -- P

[PHP] change letter to all caps

2005-07-18 Thread George B
Lets say I have a form. And when user types in the form and clicks go, it shows output. but. lets say the person type in monday But I want the php code to change it too MONDAY how do I do that? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

Re: [PHP] Re: jpgs into database

2005-07-18 Thread glumtail
I heard that Microsoft.com stores every images in database. Maybe the cost is the most important thing. 2005/7/19, George B <[EMAIL PROTECTED]>: > > Matthew Weier O'Phinney wrote: > > * Jasper Bryant-Greene <[EMAIL PROTECTED]> : > > > >>George B wrote: > >> > >>>is it pos

Re: [PHP] PHP from CLI with SAPI

2005-07-18 Thread glumtail
just write an PHP-Server

Re: [PHP] Re: syntax error, unexpected T_STRING

2005-07-18 Thread Jochem Maas
George B wrote: George B wrote: I am trying to connect to a datbase: " mysql_select_db ('database') or die ("couldnt connect to databse") " What is wrong here? This is the error: Parse error: syntax error, unexpected T_STRING in file name on line 12 this code works though the semicolo

[PHP] Re: jpgs into database

2005-07-18 Thread George B
Matthew Weier O'Phinney wrote: * Jasper Bryant-Greene <[EMAIL PROTECTED]> : George B wrote: is it possible to put in a jpg file into a database? I am trying to make like a catalong and have all the files (including pics) and everyone can see. is this possible? Sure -- if you're using a My

Re: [PHP] PHP from CLI with SAPI

2005-07-18 Thread Evert | Rooftop
Fredrik Tolf wrote: Hi! I've begun to be more and more displeased with Apache lately, so I've been thinking of writing my own HTTP server instead. I still want PHP support, but writing a new SAPI for PHP seems like overkill. Therefore, is it possible to use PHP from the command line, but still

Re: [PHP] Re: Tracking a mobile phone

2005-07-18 Thread Evert | Rooftop
Yea that would be very very hard.. besides if your friend would do the trip in the usa, I doubt he can access the network at all ;) In any case, the most realistic choice would be to buy a GPS-enabled phone and write a nice Java app that does the job for you (maybe even flash-lite can do it).

Re: [PHP] Re: Tracking a mobile phone

2005-07-18 Thread Sebastian
The phone would have to have GPS capabilities.. Ethilien wrote: I think that would require tapping the cellphone network, which I doubt they would let you do since it be a major violation of privacy, because you could track the general location of anyone on their network. Thomas wrote: Hi

[PHP] Re: Include path quirks

2005-07-18 Thread Ethilien
Actually, I think I might have found a solution, although its not a very good one. include realpath(dirname(__FILE__) . "/" . "../include/global.php"); Ethilien wrote: I've been attempting to write an application with a bit more ordered directory structure than I normally use, and I ran into t

Re: [PHP] Tracking a mobile phone

2005-07-18 Thread Mikey
Thomas wrote: Hi there, I was wondering if anybody has attempted to track a mobile phone through a country. I know that this is usually more a case for the FBI . a friend of mine is going on a 4 month bike tour and I would like to 'track' him for locations. I thought of an sms receiving syste

[PHP] Re: Tracking a mobile phone

2005-07-18 Thread George B
Ethilien wrote: I think that would require tapping the cellphone network, which I doubt they would let you do since it be a major violation of privacy, because you could track the general location of anyone on their network. Thomas wrote: Hi there, I was wondering if anybody has attempte

Re: [PHP] Tracking a mobile phone... PHP related?

2005-07-18 Thread tg-php
Not really a PHP question, but you could look to see if your friend has a GPS enabled phone and phone service and if there's an API for pulling the location from the phone co's systems. Then you could see if there's a PHP solution for interfacing with that API. Some cell phone companies let yo

Re: [PHP] Re: Tracking a mobile phone

2005-07-18 Thread Andy Pieters
Hi I did hear of a gps feature that's been tested here. Basically you subscribe to a service by your provider and then you choose where to forward the data. I've seen it in use in some company that tracks it's least selling representatives (with their approval, off course). With kind regards

Re: [PHP] Missing or wrong reply-to headers in this mailing list

2005-07-18 Thread Stephen Allen
On Tue, Jul 12, 2005 at 09:23:59PM +0300 or thereabouts, Ahmed Saad wrote: > Hi all, > > I've been around this list for a month or something but i just > discovered today that all my replies weren't sent to the list but > instead to the individual who sent the message. I haven't administered > any

Re: [PHP] Char encoding using fget or curl

2005-07-18 Thread Marcelo Volmaro
But my problem is that the information i get from the fget or curl is ALREADY converted!!! And by what i see, the function overloading don´t work on fget. On Mon, 18 Jul 2005 18:56:36 -0300, Jochem Maas <[EMAIL PROTECTED]> wrote: Marcelo Volmaro wrote: Hi!, I need to get some information

Re: [PHP] Re: PHP from CLI with SAPI

2005-07-18 Thread Fredrik Tolf
On Mon, 2005-07-18 at 20:44 +0100, Mikey wrote: > Catalin Trifu wrote: > >Fredrik Tolf wrote: > >>I've begun to be more and more displeased with Apache lately, so I've > >>been thinking of writing my own HTTP server instead. I still want PHP > >>support, but writing a new SAPI for PHP seems like ov

Re: [PHP] Re: Include path quirks

2005-07-18 Thread Jochem Maas
Ethilien wrote: Actually, I think I might have found a solution, although its not a very good one. include realpath(dirname(__FILE__) . "/" . "../include/global.php"); alot of people do something _like_: define('GLOBAL_BASE_DIR', dirname(__FILE__)); somewhere near the beginning of their sta

Re: [PHP] Char encoding using fget or curl

2005-07-18 Thread Jochem Maas
Marcelo Volmaro wrote: Hi!, I need to get some information from a webpage, that is served as UTF-8. I need that information because the page contains different language characters. The problem is that no matter if I use fget or the CURL libraries, i got the information in ISO-8859-1. How can

Re: [PHP] Re: Include path quirks

2005-07-18 Thread Edward Vermillion
Ethilien wrote: Actually, I think I might have found a solution, although its not a very good one. include realpath(dirname(__FILE__) . "/" . "../include/global.php"); Ethilien wrote: I've been attempting to write an application with a bit more ordered directory structure than I normally use

Re: [PHP] PHP from CLI with SAPI

2005-07-18 Thread Fredrik Tolf
On Mon, 2005-07-18 at 15:57 -0400, Evert | Rooftop wrote: > Fredrik Tolf wrote: > >I've begun to be more and more displeased with Apache lately, so I've > >been thinking of writing my own HTTP server instead. I still want PHP > >support, but writing a new SAPI for PHP seems like overkill. > > > >Th

Re: [PHP] Re: PHP from CLI with SAPI

2005-07-18 Thread Mikey
Catalin Trifu wrote: Hi, Why are you displeased with apache ? After all, the 60% share market of apache must mean something :) Catalin Fredrik Tolf wrote: Hi! I've begun to be more and more displeased with Apache lately, so I've been thinking of writing my own HTTP server inst

[PHP] Include path quirks

2005-07-18 Thread Ethilien
I've been attempting to write an application with a bit more ordered directory structure than I normally use, and I ran into the rather annoying problem with include() where relative paths are only based off of the current working directory, and not that of the included script. This makes it im

[PHP] Re: Tracking a mobile phone

2005-07-18 Thread Ethilien
I think that would require tapping the cellphone network, which I doubt they would let you do since it be a major violation of privacy, because you could track the general location of anyone on their network. Thomas wrote: Hi there, I was wondering if anybody has attempted to track a mobi

Re: [PHP] show a field in php file

2005-07-18 Thread Jochem Maas
John Nichel wrote: George B wrote: http://us2.php.net/manual/en/index.php :-) anyone care for a php mysql extension: mysql_do_xml_http_request_bound_richdatagrid([string] query); george if you want to keep asking questions on NRBS** then you'll need to change email addrs + name :-) ** fro

[PHP] Tracking a mobile phone

2005-07-18 Thread Thomas
Hi there, I was wondering if anybody has attempted to track a mobile phone through a country. I know that this is usually more a case for the FBI . a friend of mine is going on a 4 month bike tour and I would like to 'track' him for locations. I thought of an sms receiving system, but if could

[PHP] Re: PHP from CLI with SAPI

2005-07-18 Thread Catalin Trifu
Hi, Why are you displeased with apache ? After all, the 60% share market of apache must mean something :) Catalin Fredrik Tolf wrote: > Hi! > > I've begun to be more and more displeased with Apache lately, so I've > been thinking of writing my own HTTP server instead. I still want P

RE: [PHP] syntax error, unexpected T_STRING

2005-07-18 Thread Jim Moseby
> Thanks JM! > It was another one of my usual mistakes :P > Forgot the semicolon. I don't underestand why you have to put > in so many > semicolons... Hmm.. Is it a thing from C or something? When I see that T_STRING error, missing semicolon is the first thing I look for. I don't know the histo

[PHP] Re: change letter to all caps

2005-07-18 Thread Matthew Weier O'Phinney
* George B <[EMAIL PROTECTED]>: > Lets say I have a form. And when user types in the form and clicks go, > it shows output. > but. > lets say the person type in > monday > But I want the php code to change it too > MONDAY > how do I do that? The PHP manual is your friend, if you know what to look

Re: [PHP] Missing or wrong reply-to headers in this mailing list

2005-07-18 Thread Tyler Kiley
On 7/12/05, Rasmus Lerdorf <[EMAIL PROTECTED]> wrote: > Probably just means the lists aren't very technical. That comment amused me greatly, because the only other mailinglist I'm on is the Ruby on Rails list, and that one does reply-to munging. What that says about the respective userbases of PH

[PHP] Char encoding using fget or curl

2005-07-18 Thread Marcelo Volmaro
Hi!, I need to get some information from a webpage, that is served as UTF-8. I need that information because the page contains different language characters. The problem is that no matter if I use fget or the CURL libraries, i got the information in ISO-8859-1. How can i overcome this? Take in

[PHP] Re: libCURL help

2005-07-18 Thread Catalin Trifu
hi, Usually the .do files are servlets and the .do stuff you enter is rewritten by the server internally to point to the actual servlet. With a http request you will get whatever the servlet is spitting out the wire. Catalin Jon wrote: > is there some way to get a .do file from a

Re: [PHP] syntax error, unexpected T_STRING

2005-07-18 Thread Matthew Weier O'Phinney
* George B <[EMAIL PROTECTED]> : > Jim Moseby wrote: > > > I am trying to connect to a datbase: > > > > > > " > > > mysql_select_db ('database') > > > or die ("couldnt connect to databse") > > > " > > > What is wrong here? > > > This is the error: > > > > > > Parse error: syntax error, unexpected

[PHP] libCURL help

2005-07-18 Thread Jon
is there some way to get a .do file from a server is it readable? I think that may be my whole problem with my curl sequence. I need to see what the routing file is doing -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] sytax errors

2005-07-18 Thread John Nichel
babu wrote: Hi, could someone please check where the sytax error is in these statements. $sqlstmt= "EXEC sp_addlogin ".$adduser." , ".$addpass; $sqlstmt1= "EXEC sp_adduser @loginame= ".$adduser." , @name_in_db= ".$adduser; $sqlstmt2= "GRANT CREATE TABLE TO ".$adduser; $sql=mssql_query($sqls

Re: [PHP] Re: SOLVED! Need help with PHP / MySQL connect problem

2005-07-18 Thread Linda H
do you have this in your php.ini extensions? extension=php_mysql.dll yes Make sure you extension path is referencing its location also so it can find it... for example: extension_dir = "c:/php/ext/" I changed this and now I can connect to MySQL! Haven't runa query yet, but I think I'm pa

[PHP] Date function and MySQL

2005-07-18 Thread Philip Thompson
Hi all. I have the week number (for example, this is the 29th week of the year and it begins on 7/17/05). Does anyone know how to obtain the first (and maybe the last) date of the week if you only know the week number of the year? Would it be better for me to obtain this in PHP or MySQL?

[PHP] sytax errors

2005-07-18 Thread babu
Hi, could someone please check where the sytax error is in these statements. $sqlstmt= "EXEC sp_addlogin ".$adduser." , ".$addpass; $sqlstmt1= "EXEC sp_adduser @loginame= ".$adduser." , @name_in_db= ".$adduser; $sqlstmt2= "GRANT CREATE TABLE TO ".$adduser; $sql=mssql_query($sqlstmt); $sql1=mss

[PHP] PHP from CLI with SAPI

2005-07-18 Thread Fredrik Tolf
Hi! I've begun to be more and more displeased with Apache lately, so I've been thinking of writing my own HTTP server instead. I still want PHP support, but writing a new SAPI for PHP seems like overkill. Therefore, is it possible to use PHP from the command line, but still enable some HTTP-serve

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-18 Thread Mark Rees
"Linda H" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > For those who didn't join this thread at the beginning, I'm running MySQL > 4.0.21, Apache 2.0.52 and PHP 5.0.2 on a Windows XP system. > > I installed in the sequence - MySQL, then Apache, then PHP. MySQL was > running when th

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-18 Thread eoghan
Hi Linda H wrote: For those who didn't join this thread at the beginning, I'm running MySQL 4.0.21, Apache 2.0.52 and PHP 5.0.2 on a Windows XP system. I installed in the sequence - MySQL, then Apache, then PHP. MySQL was running when the others were installed (which is what the book I am us

Re: [PHP] Session has new id on 'some' pages.

2005-07-18 Thread Edward Vermillion
Andy Pieters wrote: Ok found the solution, seems like one page is on http://server.org.uk and the other on www.server.org.uk even though its the same server it generates a different session id! That's a cookie thing, if your transmitting the session ids through cookies, I'm going to assume

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-18 Thread Linda H
For those who didn't join this thread at the beginning, I'm running MySQL 4.0.21, Apache 2.0.52 and PHP 5.0.2 on a Windows XP system. I installed in the sequence - MySQL, then Apache, then PHP. MySQL was running when the others were installed (which is what the book I am using seemed to indica

Re: [PHP] Session has new id on 'some' pages.

2005-07-18 Thread Marek Kilimajer
Andy Pieters wrote: Ok found the solution, seems like one page is on http://server.org.uk and the other on www.server.org.uk even though its the same server it generates a different session id! set the domain of the cookie to 'server.org.uk', it's the fifth parameter of setcookie() -- PHP

Re: [PHP] Session has new id on 'some' pages.

2005-07-18 Thread Andy Pieters
Ok found the solution, seems like one page is on http://server.org.uk and the other on www.server.org.uk even though its the same server it generates a different session id! -- Registered Linux User Number 379093 -- --BEGIN GEEK CODE BLOCK- Version: 3.1 GAT/O/>E$ d-(---)>+ s:(+)>: a--(-)>?

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-18 Thread Rick Emery
Quoting Linda H <[EMAIL PROTECTED]>: I added the following to the top of my script: Got all sorts of environment and path info. In addition to the other excellent suggestions so far, make sure (looking at the phpinfo page, under "Configuration File Path") that your install is using the ph

[PHP] Data and variable transfer

2005-07-18 Thread Jon
OK this may not be the correct place to ask but maybe someone can help. Related to the Post URL ? How do I see the information passed from my browser to a site? I have httpLiveHeaders for mozilla and that does not provide all the info that I need. Or I am not getting something right. I have be

[PHP] Session has new id on 'some' pages.

2005-07-18 Thread Andy Pieters
Hi all We have a extensive software that uses php session to store some very basic session information. ALL, and I do mean ALL files (except for globals.php) start like this: And the file globals.php starts with E$ d-(---)>+ s:(+)>: a--(-)>? C$(+++) UL>$ P-(+)>++ L+++>$ E---(-

[PHP] Re: jpgs into database

2005-07-18 Thread Matthew Weier O'Phinney
* Jasper Bryant-Greene <[EMAIL PROTECTED]> : > George B wrote: > > is it possible to put in a jpg file into a database? I am trying to make > > like a catalong and have all the files (including pics) and everyone can > > see. > > is this possible? > > Sure -- if you're using a MySQL database, jus

Re: [PHP] Re: re-order a sql result

2005-07-18 Thread Burhan Khalid
Mark Rees wrote: ""Ross"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I have a query $query = "SELECT * FROM sheet1 WHERE '$filter' LIKE '$search_field%'" Simply requery the database for each search. For example, this orders the results by surname from a-z $query = "SELEC

[PHP] MySQL password file

2005-07-18 Thread Lawrence Kennon
In my current hosting situation I don't have the ability to store my file that contains MySQL userids/passwords in a subdirectory that is not under the server root. In order to protect it from being included from a foreign host I thought up this scheme of using the php_uname function to check th

[PHP] Re: re-order a sql result

2005-07-18 Thread Mark Rees
""Ross"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have a query > > $query = "SELECT * FROM sheet1 WHERE '$filter' LIKE '$search_field%'" > Simply requery the database for each search. For example, this orders the results by surname from a-z $query = "SELECT * FROM sheet1

Re: [PHP] re-order a sql result

2005-07-18 Thread Mikey
Mikey wrote: Ross wrote: I have a query $query = "SELECT * FROM sheet1 WHERE '$filter' LIKE '$search_field%'" This prints out a table while ($row = @mysql_fetch_array($result, MYSQL_ASSOC)){ // this just fills the empty cells if ($row['fname']==""){ $row['fname']=" "; } if ($row['sname

Re: [PHP] re-order a sql result

2005-07-18 Thread Mikey
Ross wrote: I have a query $query = "SELECT * FROM sheet1 WHERE '$filter' LIKE '$search_field%'" This prints out a table while ($row = @mysql_fetch_array($result, MYSQL_ASSOC)){ // this just fills the empty cells if ($row['fname']==""){ $row['fname']=" "; } if ($row['sname']==""){ $row['

[PHP] re-order a sql result

2005-07-18 Thread Ross
I have a query $query = "SELECT * FROM sheet1 WHERE '$filter' LIKE '$search_field%'" This prints out a table while ($row = @mysql_fetch_array($result, MYSQL_ASSOC)){ // this just fills the empty cells if ($row['fname']==""){ $row['fname']=" "; } if ($row['sname']==""){ $row['sname']=" "; }

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-18 Thread kalinga
i recently met samekind of problem, could you pls specify the OS, Apache, Php and MySQL vesrions you are using? vk On 7/18/05, Mark Rees <[EMAIL PROTECTED]> wrote: > "Linda H" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > I added the following to the top of my script: > > > >

Re: [PHP] Re: session data not recorded

2005-07-18 Thread kalinga
have a look here.. http://www.php.net/session scroll down the page you will find some better session handling codings! vk. On 7/18/05, Mark Rees <[EMAIL PROTECTED]> wrote: > ""Alessandro Rosa"" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > I have a problem to record sessi

Re: [PHP] Re: Post URL ?

2005-07-18 Thread Jasper Bryant-Greene
Raz wrote: You can put the value in a hidden form field and submit it with JavaScript, but it's still not truly hidden, as it is still sent in a cleartext HTTP request. Not to mention being visible upon viewing the page source... Well, that depends. If it's user input that is added via JavaSc

[PHP] Re: Post URL ?

2005-07-18 Thread Mark Rees
""Joey"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > OK I understand the difference between a get & a post but if I just have a > URL/link which is calling a function like so: > > abc.com/display_information?customer_number=$value > > It passes to the display_information the custo

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-18 Thread Mark Rees
"Linda H" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I added the following to the top of my script: > > echo phpinfo(); > ?> > > Got all sorts of environment and path info. Not anything about MySQL, but I > didn't see anything that looked obviously wrong, though I don't under

Re: [PHP] Re: Post URL ?

2005-07-18 Thread Raz
> You can put the value in a hidden form field and submit it with > JavaScript, but it's still not truly hidden, as it is still sent in a > cleartext HTTP request. Not to mention being visible upon viewing the page source... Raz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

[PHP] Re: session data not recorded

2005-07-18 Thread Mark Rees
""Alessandro Rosa"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have a problem to record session data and I would you > help me. I suppose there's something I missed in the general > configurations during the last install, but I can't realize it. Review the settings in php.ini.

[PHP] Re: Post URL ?

2005-07-18 Thread Jasper Bryant-Greene
Joey wrote: OK I understand the difference between a get & a post but if I just have a URL/link which is calling a function like so: abc.com/display_information?customer_number=$value It passes to the display_information the customer number visably, is there a way to do this where it's not v

Re: [PHP] Post URL ?

2005-07-18 Thread Raz
Joey, Take a look at how to use sessions on the php web site... Raz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Merging Images

2005-07-18 Thread Warren Vail
I am looking for a way to merge image A with image B such that pixels in image A that are a certain color are replaced with pixels from in image B in a fashion similar to the blue screen effect that is used to surround an actor with a background that really isn't there. This would be like creatin