[PHP] Does using msql_select_db excessively burn resources?

2002-12-03 Thread Rob Paxon
I plan to have my sites using several databases, but there is a common database they must all use. Obviously I'll have to use "mysql_select_db" each time I change the database I wish to use. Does this simply select the database and hold it as a variable until a query is made, or does it load i

Re: [PHP] hiding php

2002-12-03 Thread Serge A.
> Because its better to have someone waste time trying known hacks for a > platform I don't have than to have the same person not know the platform and > start spending time figuring out what it is right off the bat. That will not work.. try the following: telnet yourserve 80 and than type GET

RE: [PHP] Date problem

2002-12-03 Thread James Coates
At 18:44 02/12/2002 -0500, John W. Holmes wrote: > Can you help me for this ? Yeah, I already did: Perhaps you could throw a clue my way, in that case. I have an actor database (mySQL again) which has actor dates of birth in '-MM-DD' format. I want to be able to query against that ignori

[PHP] Pear vs Phplib vs adodb

2002-12-03 Thread David Eisenhart
I'm looking to choose a set of library code principally for database functions. So far checked out Pear, Phplib and adodb which all appear to be well crafted and easy to use. Irrespective of differences in the actual functions provided (which of course are well documented) can anyone briefly compar

Re: [PHP] hiding php

2002-12-03 Thread Dan Hardiker
Actually.. You can turn off header responses in both apache and php. Inside the php.ini you will find: [ expose_php = Off ] In the ini-dist its even switched off by default. In the apache httpd.conf file you can set the following: [ ServerSignature On ] I believe you may also find some help in

[PHP] object method overloading

2002-12-03 Thread Javier Montserat
can you do method overloading in php as you can in java? Javier _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- PHP General Mailing List (http://www.php.net/) T

RE: [PHP] easiest way to get 1st and last dates of the month?

2002-12-03 Thread Ford, Mike [LSS]
> -Original Message- > From: Justin French [mailto:[EMAIL PROTECTED]] > Sent: 03 December 2002 05:31 > > I'm looking to get a unix timestamp for the first and last > day of a month, > given a timestamp. > > But so far everything i've come up with has been wy too > many lines of > t

RE: [PHP] Validating get and post data

2002-12-03 Thread Ford, Mike [LSS]
> -Original Message- > From: Beth Gore [mailto:[EMAIL PROTECTED]] > Sent: 03 December 2002 02:12 > > However bizarrely this seems to behave incorrectly, as it > cuts out "0" > as well. Can anyone explain why it does this? > > function stripnum($rawinput) > { > > for($x=0;$x

RE: [PHP] hiding php

2002-12-03 Thread Ford, Mike [LSS]
> -Original Message- > From: Larry Brown [mailto:[EMAIL PROTECTED]] > Sent: 03 December 2002 07:02 > > Because its better to have someone waste time trying known hacks for a > platform I don't have than to have the same person not know > the platform and > start spending time figuring out

Re: [PHP] Date problem

2002-12-03 Thread Jason Wong
On Tuesday 03 December 2002 18:29, James Coates wrote: > Perhaps you could throw a clue my way, in that case. > I have an actor database (mySQL again) which has actor dates of birth in > '-MM-DD' format. I want to be able to query against that ignoring the > year: > > * give me actors who hav

[PHP] writing to mysql using php

2002-12-03 Thread Shams
Hi, I'm relatively new to PHP and mySQL. I currently have a simple table created within a MySQL database. And I have a php script that connects to the database, presents a form for the user to fill in, and then writes that record to the table. Instead... is it possible, to write to multiple rec

[PHP] does anybody know PHPlib's source site?

2002-12-03 Thread Alexander A. Savenkov
Hi All. does anybody know PHPlib's source site? or may be you can tell me which template engine is more efficient or usefull or comfortable? Alexander A. Savenkov System Administrator mailto:[EMAIL PROTECTED] JSC "Terminal GMB" http://www.terminalgmb.ru -- PHP General Mailing L

[PHP] Problem: Only 1 fsockopen() connection for apache at a time.

2002-12-03 Thread William Bailey
Hello all. I have a script that uses fsockopen() to connect to a remote server/port and from what i am seeing mod_php4 with apache only allows 1 fsockopen connection at a time and will que the other fsockopen calls and then process them when the one before it has closed. Is there a way

[PHP] mail with CC and BCC

2002-12-03 Thread Alain ROMERO
PHP server = Win 2000 SP2/php 4.1.2 SMTP server = Netscape Messenger 4.15 (declare on php.ini) Why CC and BCC never receive mail ? The header 'TO' is correct : see CC and BCC ! The header : "From : . CC: [EMAIL PROTECTED] BCC: [EMAIL PROTECTED]" I try severals classes I have found (PHP Class

RE: [PHP] hiding php

2002-12-03 Thread Dan Hardiker
>> [Larry Brown] >> Because its better to have someone waste time trying known hacks for a >> platform I don't have than to have the same person not know >> the platform and >> start spending time figuring out what it is right off the bat. > [Mike Ford] > Well, if you *really* wnat to get hem goin

RE: [PHP] php5 features?

2002-12-03 Thread Brad Young
Zeev Suraski wrote an article on the subject. You can find it at http://www.devx.com/webdev/Article/10007 From: ed [mailto:[EMAIL PROTECTED]] > >Hi all. I was wondering if there are resources on the >web that will help me get an >idea of the changes and new features that will be in >php5. >I'm

[PHP] [SEMI-OT] Making secure flash high scoring?

2002-12-03 Thread Leif K-Brooks
Sorry for the semi-ot post, but this is both a flash and php question, and I'm not a member of any flash lists, so I decided to post it here. Anyway, I have a game site with virtual pets, virtual shops, user accounts, etc. One feature request I get alot is flash games. I could find someone to

Re: [PHP] mail with CC and BCC

2002-12-03 Thread Jason Wong
On Tuesday 03 December 2002 20:09, Alain ROMERO wrote: > PHP server = Win 2000 SP2/php 4.1.2 > SMTP server = Netscape Messenger 4.15 (declare on php.ini) > > Why CC and BCC never receive mail ? > The header 'TO' is correct : see CC and BCC ! > The header : "From : . CC: [EMAIL PROTECTED] BCC: [

[PHP] variable num of function args

2002-12-03 Thread christian haines
hi all, is it possible to somehow have a function which takes a variable number of arguments (with some kind of key association) which can then be converted to variables? i am sick of continually having to go back and add empty parameters to functions in use. an example would be.. function te

[PHP] Re: variable num of function args

2002-12-03 Thread christian haines
ooops that should be... function test2($arr) { extract($arr); print $this; } test2($arr = array( "test" => 1, "this" => 2 )); // output 2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] need advice on template engine

2002-12-03 Thread Alexander A. Savenkov
Hi PHP. Suggest me which template engine is more popular? I try select engine for me but I alredy become involved in that number different version Alexander A. Savenkov System Administrator mailto:[EMAIL PROTECTED] JSC "Terminal GMB" http://www.terminalgmb.ru -- PHP General Mailin

php-general Digest 3 Dec 2002 13:41:08 -0000 Issue 1741

2002-12-03 Thread php-general-digest-help
php-general Digest 3 Dec 2002 13:41:08 - Issue 1741 Topics (messages 126791 through 126846): Re: dynamic arraynames 126791 by: Floyd Baker Re: printing array 126792 by: . Edwin 126793 by: Matt Re: IIS 5 126794 by: . Edwin Validating get and post data

Re: [PHP] need advice on template engine

2002-12-03 Thread Justin French
http://smarty.php.net seems polular J on 04/12/02 12:40 AM, Alexander A. Savenkov ([EMAIL PROTECTED]) wrote: > Hi PHP. > > Suggest me which template engine is more popular? > I try select engine for me but I alredy become involved in that > number different version > > > Alexander A. Savenko

[PHP] date

2002-12-03 Thread Shaun
Hi, please could someone tell me how i can return a month in text from an int ie getMonth(12) returns Decmber. Is this possible? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] need advice on template engine

2002-12-03 Thread Alexander A. Savenkov
Hi Justin. JF> http://smarty.php.net seems polular It seems to me too but i thick may be I can miss smthng important Alexander A. Savenkov System Administrator mailto:[EMAIL PROTECTED] JSC "Terminal GMB" http://www.terminalgmb.ru -- PHP General Mailing List (http://www.php.net/) To un

[PHP] Upload file thanks

2002-12-03 Thread Wilmar Perez
Hello guys My problem uploading files was solved, thanks a lot to all those that helped me in any way. Bye -- *** Wilmar Pérez Network Administrator Library System

Re: [PHP] date

2002-12-03 Thread DL Neil
Hi Shaun, > please could someone tell me how i can return a month in text from an int ie > getMonth(12) > returns Decmber. Is this possible? No. If you want to stick with this, write your own function to look up a text array. If the "12" is part of more data coming in from a form or db (for exa

RE: Re[2]: [PHP] need advice on template engine

2002-12-03 Thread Daniel Masson
Ive been working with smarty and for me its awsome ... My advice is SMARTY !!! Hi Justin. JF> http://smarty.php.net seems polular It seems to me too but i thick may be I can miss smthng important Alexander A. Savenkov System Administrator mailto:[EMAIL PROTECTED] JSC "Terminal GMB" ht

RE: [PHP] date

2002-12-03 Thread Daniel Masson
Take a look at mktime() and date() ... echo date("M",mktime(0,0,0,12,1,2002)) The first param of date is the format, "M" means month in string format not number of month, and mktime paramas are: int hour, int minute, int second, int month, int day, int year This should work Hi, please c

Re: [PHP] date

2002-12-03 Thread William Bailey
On Tuesday 03 December 2002 13:57, Shaun wrote: > Hi, > > please could someone tell me how i can return a month in text from an int > ie > > getMonth(12) > > returns Decmber. Is this possible? > > Thanks for your help have a look at the mktime() function. Use this along with the date() function t

Re: Re[2]: [PHP] need advice on template engine

2002-12-03 Thread John Wards
On Tuesday 03 Dec 2002 2:28 pm, Daniel Masson wrote: > Ive been working with smarty and for me its awsome ... My advice is > SMARTY !!! > I've just converted my 100,000 page views a day application to SMARTY and it is much quicker and it gives me much more control Go for smarty it rocks.. J

Re: [PHP] date

2002-12-03 Thread Shaun
Thanks for your reply, i am doing a fitnerss site and i want to display the muscle of the month. This works fine with the following code: function get_muscle(){ $month = date(F); $query = "SELECT * FROM Table_Muscle WHERE Muscle_Month = '$month'"; $result = mysql_query($query); $muscle_

Re: [PHP] Date problem

2002-12-03 Thread James Coates
At 19:32 03/12/2002 +0800, Jason Wong wrote: Assuming the column holding the the birthday is called 'birthday': [snip] Many thanks! > * give me actors whose birthdays fall between two dates (ie: Aries) This one is easy, use the BETWEEN clause in your SELECT statement. Consult manual for det

[PHP] help needed with crypt()

2002-12-03 Thread chandrakantreddy
Hi The script is not working. function authenticate($user,$pass) { $result = -1; $data = file("shadow"); /* permission every one read */ foreach($date as $line ) { $arr = explode(":",$line); if($arr[0] == $user) { /* user

[PHP] apache on w2k

2002-12-03 Thread Chris Edwards
Anyone having/had stability and performance problems running Apache 1.3 on Windows 2000 Server? -- Chris Edwards Web Application Developer Outer Banks Internet, Inc. 252-441-6698 [EMAIL PROTECTED] http://www.OuterBanksInternet.com -- PHP General Mailing List (http://www.php.net/) To unsubscrib

[PHP] Re: mail with CC and BCC

2002-12-03 Thread Manuel Lemos
Hello, On 12/03/2002 10:09 AM, Alain Romero wrote: PHP server = Win 2000 SP2/php 4.1.2 SMTP server = Netscape Messenger 4.15 (declare on php.ini) Why CC and BCC never receive mail ? The mail() function has its set of flaws, especially under Windows. The header 'TO' is correct : see CC and B

[PHP] My first post

2002-12-03 Thread Victor Espina
Hi. I'm new in PHP. Could you point me where can i download a sample script about how can i paginate some results? TIA -- == Victor J. Espina S. Gerente de Desarrollo / Software Development Manager Software de Venezuela, S.A. Caracas, Venezuela Em

Re: [PHP] apache on w2k

2002-12-03 Thread Alexander A. Savenkov
Hi Chris. CE> Anyone having/had stability and performance problems running Apache 1.3 on CE> Windows 2000 Server? You are goint to use apache under win2000 server as regular internet server or use this just for testing something? It's not recomended use apache under win2000 server as public in

RE: [PHP] variable num of function args

2002-12-03 Thread Ford, Mike [LSS]
> -Original Message- > From: christian haines [mailto:[EMAIL PROTECTED]] > Sent: 03 December 2002 13:32 > > > hi all, > > is it possible to somehow have a function which takes a > variable number > of arguments Yes -- look at the manual pages for func_num_args (http://www.php.net/func

[PHP] php and file uploads/downloads

2002-12-03 Thread Beau Hartshorne
Hi, I'm working on a system that allows users to upload and then download pdf files. Each file is related to a mySQL database entry. To keep things simple and consistent, I'd like to store the pdf files like this on the server: [PRIMARY_KEY].pdf But when a user downloads the file, I'd like them

Re: [PHP] help needed with crypt()

2002-12-03 Thread Tom Rogers
Hi, Wednesday, December 4, 2002, 12:45:15 AM, you wrote: cyc> Hi cyc> The script is not working. cyc>function authenticate($user,$pass) { cyc> $result = -1; cyc> $data = file("shadow"); /* permission every cyc> one read */ cyc> foreach($date as $line ) { cyc>

[PHP] MySQL Server

2002-12-03 Thread Chase
I am the first to admit that this question belongs on a MySQL newsgroup instead of here, but I can't seem to find a newsgroup that will answer me... Here is a newbie question. I am running a Win2K Advanced Server with IIS 5, PHP4, and MySQLmax 3.23.53. I am by no means experienced in setting up

Re: [PHP] php and file uploads/downloads

2002-12-03 Thread William Bailey
On Tuesday 03 December 2002 15:02, Beau Hartshorne wrote: > Hi, > > I'm working on a system that allows users to upload and then download > pdf files. Each file is related to a mySQL database entry. To keep > things simple and consistent, I'd like to store the pdf files like this > on the server: >

Re: Re[2]: [PHP] need advice on template engine

2002-12-03 Thread David Eisenhart
Hi, Smarty is trully fantastic - relatively easy to learn and use and is very powerful. I used to use the phplib template engine which was also impressive but Smarty is much more sophisticated. Some great things about Smarty:- - site pages can be cached (can save masses of time if the server is

Re: [PHP] MySQL Server

2002-12-03 Thread Jason Wong
On Tuesday 03 December 2002 23:09, Chase wrote: > I am the first to admit that this question belongs on a MySQL newsgroup > instead of here, but I can't seem to find a newsgroup that will answer > me... www.mysql.com > Here is a newbie question. I am running a Win2K Advanced Server with IIS > 5,

Re: [PHP] help needed with crypt()

2002-12-03 Thread chandrakantreddy
Hi I made some changes to this script but still it is not working > > cyc>function authenticate($user,$pass) { > cyc> $result = -1; > cyc> $data = file("shadow"); /* permission > every > cyc> one read */ > > cyc> foreach($data as $line ) { > cyc> $

[PHP] preg_replace works on normal string but not with a string build from a file

2002-12-03 Thread Jeroen Olthof
hi, take a look at the following code basic problem is, it works with the custom build string in the script but not if get the code from a file. I allways used ereg_replace but after installing a newer version of php (4.2.2) it became very slow, so now I'm trying preg_replace please help !!! kind

Re[2]: [PHP] help needed with crypt()

2002-12-03 Thread Tom Rogers
Hi, Wednesday, December 4, 2002, 1:27:49 AM, you wrote: cyc> Hi cyc>I made some changes to this script but still it is cyc> not working Try using the whole password as the salt like this if(crypt(trim($pass),$arr[1]) == $arr[1]) Or are you still only getting -1 returned ? -- regards, T

[PHP] There Has to be an easier way (Multidimensional Array_

2002-12-03 Thread Dev
Hello all Currently I have a web fom that has 3 field in it that I want writing to a multidimensional array. in my page that processing this I have currently: while(list($key,$value) = each($address)) { if(!is_array($value)){ echo "$value "; } else { while(list($key,$value1) =

RE: [PHP] Problem: Only 1 fsockopen() connection for apache at a time.

2002-12-03 Thread Roedel, Mark
> -Original Message- > From: William Bailey [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, December 03, 2002 6:04 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Problem: Only 1 fsockopen() connection for > apache at a time. > > > I have a script that uses fsockopen() to connect to a > remote

Re: [PHP] does anybody know PHPlib's source site?

2002-12-03 Thread olinux
--- "Alexander A. Savenkov" <[EMAIL PROTECTED]> wrote: > Hi All. > >does anybody know PHPlib's source site? Google does __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- PHP General Mailing

Re: [PHP] There Has to be an easier way (Multidimensional Array_

2002-12-03 Thread Jason Wong
On Tuesday 03 December 2002 23:45, Dev wrote: > Hello all > > Currently I have a web fom that has 3 field in it that I want writing to a > multidimensional array. > > > >VALUE="" SIZE="5" MAXLENGTH="5"> >VALUE=""> I would name them as: NAME="address[][address]" NAME="

Re: [PHP] Problem: Only 1 fsockopen() connection for apache at a time.

2002-12-03 Thread William Bailey
On Tuesday 03 December 2002 15:46, Roedel, Mark wrote: > > -Original Message- > > From: William Bailey [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, December 03, 2002 6:04 AM > > To: [EMAIL PROTECTED] > > Subject: [PHP] Problem: Only 1 fsockopen() connection for > > apache at a time. > > >

Re: [PHP] There Has to be an easier way (Multidimensional Array_

2002-12-03 Thread Dev
Thank you That works great! At 11:56 PM 12/3/2002 +0800, Jason Wong wrote: On Tuesday 03 December 2002 23:45, Dev wrote: > Hello all > > Currently I have a web fom that has 3 field in it that I want writing to a > multidimensional array. > > > > > VALUE="" SIZE="5" MAXLENGTH="5"> >

Re: [PHP] There Has to be an easier way (Multidimensional Array_

2002-12-03 Thread Adam Voigt
An important thing to note in general, if you do: On the page your submitting to, you'll end up with: $address[0][address] $address[1][city] $address[2][state] Where as you were expecting to get: $address[0][address] $address[0][city] $address[0][state] This happens b

[PHP] Connecting binary & php together

2002-12-03 Thread Stephan Seidt
Hi I'm thinking about the best way to connect a c(++) binary with the php interpreter. I thought the best solution is to use a shared library which has been built by php. Is libphp4.so always the same or are the libraries for apache / apache2 / roxen / etc different ? I think the parameter --with-

[PHP] Re: Connecting binary & php together

2002-12-03 Thread J Smith
Not exactly sure what you mean here. Do you mean you'd like to get a C or C++ library to work inside PHP, or get PHP to work inside of a C or C++ app/library? If it's the former, then you want to build an extension to PHP. There are lots of examples in the ext directory. If it's the latter, t

Re: [PHP] My first post

2002-12-03 Thread DL Neil
Hi Victor, Welcome to the wonderful world of PHP! > I'm new in PHP. Could you point me where can i download a sample script > about how can i paginate some results? PHP essentially exists to output HTML. You cannot paginate in HTML (although there is some fancy CSS that could be employed). Sorr

[PHP] URL vars in URL var?

2002-12-03 Thread Shawn McKenzie
I'm trying to pass a URL as a var in a URL: The url var should equal: http://www.someothersite.com/index.php?something=something&x=100&y=200 And I'm passing it to this URL: http://www.somesite.com/index.php?var=val So if I use: http://www.somesite.com/index.php?var=val&url=http://www.someothersi

Re: [PHP] URL vars in URL var?

2002-12-03 Thread Adam Voigt
http://www.php.net/manual/en/function.urlencode.php Pass it through that function (or one of the others) on: http://www.php.net/manual/en/ref.url.php On Tue, 2002-12-03 at 12:01, Shawn McKenzie wrote: I'm trying to pass a URL as a var in a URL: The url var s

Re: [PHP] Re: Connecting binary & php together

2002-12-03 Thread Stephan Seidt
Ok, I will see what --with-embed is going to show me ;) On Tue, 03 Dec 2002 11:41:19 -0500 J Smith <[EMAIL PROTECTED]> wrote: > > Not exactly sure what you mean here. Do you mean you'd like to get a C or > C++ library to work inside PHP, or get PHP to work inside of a C or C++ > app/library? >

Re: [PHP] URL vars in URL var?

2002-12-03 Thread Shawn McKenzie
Great thanks! Since I'm doing this from an anchor or in the browser location bar, I just replaced the & in the url var with %26. Works great! -Shawn "Adam Voigt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... http://www.php.net/manual/en/function.urlencode.php

Re: [PHP] Re: print to file

2002-12-03 Thread Bryan Koschmann - GKT
Thank you! I feel like an idiot, kept getting it mixed up with perl. :) Bryan On Tue, 3 Dec 2002, Thomas Seifert wrote: | |$fp=fopen("filename","a"); |fputs($fp,"text to the file"); |fclose($fp); | | |Regards, | |Thomas | |On Mon, 2 Dec 2002 15:52:23 -0800 (PST) [EMAIL PROTECTED] (Bry

Re: [PHP] mysql, php, checkbox

2002-12-03 Thread Adrian Partenie
It works, but just for the first row selected from the table. I think that the problem is that the checkboxes are declared inside a while loop. If i declare manually all checkboxes it works. Any ideas ? Or maybe I'm doing something wrong? ##

RE: [PHP] How to handle "so called" expired sessions??

2002-12-03 Thread John W. Holmes
> Ive just been getting myself deep into using sessions. > Sessions are working as it should except for one condition. > Say I log into the site, and the session is started, and I don't do > anything for the next 30 mins, then go back to the site. > Im temporarily logged out, but because the sessio

RE: [PHP] preg_replace works on normal string but not with a string build from a file

2002-12-03 Thread John W. Holmes
> take a look at the following code > basic problem is, it works with the custom build string in the script but > not if get the code from a file. > I allways used ereg_replace but after installing a newer version of php > (4.2.2) it became very slow, so now I'm trying preg_replace > > please help

[PHP] imagick v0.9.0.1 RELEASED

2002-12-03 Thread Michael Montero
imagick, the PHP ImageMagick module, has been moved and can be found here: http://pear.php.net/package-info.php?pacid=76 All releases will occur at this location from now on. The site: http://magick.communityconnect.com/ Will continue to point to the above PHP URL. Christian and I released ve

[PHP] Searchable archive

2002-12-03 Thread Mohanaraj
Hello, Could anyone please point me to a searcheble archive of this mailing list. Thanks guys. Mohan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Searchable archive

2002-12-03 Thread Ernest E Vogelsinger
At 08:58 04.12.2002, Mohanaraj spoke out and said: [snip] >Hello, > >Could anyone please point me to a searcheble archive of this mailing list. >Thanks guys. [snip] http://marc.theaimsgroup.com/?l=php-general This i

Re: [PHP] Searchable archive

2002-12-03 Thread bahwi
http://marc.theaimsgroup.com/?l=php-general is for the general list, other archive locations for other lists can be found at: http://www.php.net/mailing-lists.php Happy Searching! Mohanaraj wrote: Hello, Could anyone please point me to a searcheble archive of this mailing list. Thanks guys.

[PHP] formating numbers & date

2002-12-03 Thread Jeff Bluemel
I'm curious how I change the number of decimal places displayed, and also changing the date / time structures before displaying them with an echo command. Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] re: ini_set() / Jason Wong / dynamically setting this?

2002-12-03 Thread David T-G
Matt -- ...and then Matt Babineau said... % % Hi everyone: Hi! ... % % I am working on a website, and I have a shared hosting account on a % win2k machine. When I upload from my local machine to the shared hosting % machine I have to change a variable on each of my pages that gives me % the p

Fw: [PHP] formating numbers & date

2002-12-03 Thread Kevin Stone
To change the number of decimal places look into the number_format() function. To change the date/time structure the date() function will do what you need. Search for both on www.php.net -Kevin - Original Message - From: "Jeff Bluemel" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tu

[PHP] "x" as a multiplier

2002-12-03 Thread John Meyer
Code: $newwidth . "x" . $newheight What I want to get out is a string, like 89x115. All I am getting though, is one number, even though if I do this $newwidth . " x " . $newheight It prints out just fine. What is going on here? -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] "x" as a multiplier

2002-12-03 Thread Kevin Stone
Is it possible you're mistaken somehow? x isn't an operator in PHP. Executing $a x $b will give you a parse error. Anything in quotes is automatically casted as a string. -Kevin - Original Message - From: "John Meyer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 03

[PHP] Cold Fusion conversion issues: app vars and cached queries

2002-12-03 Thread Steve W
My company is looking to move our site away from Cold Fusion due to the cost. We had talked about JSP, but I would highly prefer PHP. After evaluation, with the generic database functions now supporting Oracle in CVS, I think this might be a possibility. However, there are 2 concerns I have in conv

Re: [PHP] "x" as a multiplier

2002-12-03 Thread Adam Williams
I don't think he's trying to multiply, I think he wants to print #x#, like 800x600 or 1024x768, etc... Adam On Tue, 3 Dec 2002, Kevin Stone wrote: > Is it possible you're mistaken somehow? x isn't an operator in PHP. > Executing $a x $b will give you a parse error. Anyt

[PHP] POST data

2002-12-03 Thread Brian Duke
Can someone tell me how I can access data from a POST? I don't mean the variables because the data I'm getting doesn't have any. I have a client that is doing a simple HTTP Post to a server and appending xml data right after the header. I need access to the xml blob. Thanks, Brian - Brian (Be sur

Re: [PHP] POST data

2002-12-03 Thread Ernest E Vogelsinger
At 23:47 03.12.2002, Brian Duke said: [snip] >Can someone tell me how I can access data from a POST? I don't mean >the variables because the data I'm getting doesn't have any. I have a >client that is doing a simple HTTP Post to a server and appending xml >da

[PHP] Anybody knows LWC::UserAgent (Perl) equivalent for PHP ?

2002-12-03 Thread Vincnetas Vienozinskis
message the same as the subject :) i need something for PHP to work with site that requires cookies. And i hate to handle HTTP header and all those Coocies by my self :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] "x" as a multiplier

2002-12-03 Thread John Meyer
Exactly. But it's only giving me one of the numbers without the space between the numbers and the x. -Original Message- From: Adam Williams [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 03, 2002 3:48 PM To: Kevin Stone Cc: John Meyer; [EMAIL PROTECTED] Subject: Re: [PHP] "x" as a mul

Re: [PHP] preg_replace works on normal string but not with a string build from a file

2002-12-03 Thread Jeroen Olthof
Thx, I had created a workarround, withs was looping through every line of the file and doing a rtrim. But your hint pointed me to the better solution The modifier m alone didn't do the job, because I uses a dot to match any character. But without the s modifier it will not match a new line. So b

Re: [PHP] "x" as a multiplier

2002-12-03 Thread Ernest E Vogelsinger
At 23:20 03.12.2002, John Meyer said: [snip] >Code: > >$newwidth . "x" . $newheight > > >What I want to get out is a string, like 89x115. All I am getting though, >is one number, even though if I do this > >$newwidth . " x " . $newheight > >It prints out

Re: [PHP] "x" as a multiplier

2002-12-03 Thread Kevin Stone
Adam, I know this. In reaction to the subject of John's post I cleared up the fact that x can not be acting as a multiplier becuase it is not an operator. My suggestion was that there may something else in his code that is causing the confusion.. making it look like it's doing something that it's

Re: [PHP] Anybody knows LWC::UserAgent (Perl) equivalent for PHP?

2002-12-03 Thread bahwi
Haha, working on this same problem myself, right now. I used curl. $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $base . $page . '?' . $query); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_COOKIE, $_SESSION['session']); curl_setopt ($ch, CURLO

[PHP] Prevent storing data when reload

2002-12-03 Thread Lars Espelid
Hello, I have a php-page whith a form-schema which stores data to a mysql-database on submit. (The schema posts data to the same page (php-self).) When I reload the page the data gets stored once more. I'm sure this is a well known problem. Are there any smart tricks to prevent this from happenin

[PHP] Howto: run local script to update remote script

2002-12-03 Thread eriol
I was wondering how I could have a local PHP (4.2.3) script running on Apache 1.3.27 / WinXP Pro send my current local IP address to a remote server running PHP 4.1.2, RedHat 7.3 & Apache 1.3.26.. In the Linux based script, I'd want it to basically display my current IP address to friends who know

RE: [PHP] Prevent storing data when reload

2002-12-03 Thread Peter Houchin
yep have the submit got to another page and then have a header location in there to go back to the original page that the form is on > -Original Message- > From: Lars Espelid [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 4 December 2002 10:17 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Pr

Re: [PHP] Prevent storing data when reload

2002-12-03 Thread Justin French
> When I reload the page the data gets stored once more. I'm sure this is a > well known problem. Are there any smart tricks to prevent this from > happening? Yes, and they get discussed on this list almost daily... a quick search would have helped. 1. the "script" that does all the validating an

Re: [PHP] MySQL Server

2002-12-03 Thread Chase
Thanks for the info... As it turns out, I am just a blithering idiot... I didn't know that I had to create a separate user... As I said, that shows my newbieness... However, this has lead me to another question... The default database, "mysql," comes with a "users" file already... How do I cr

Re: [PHP] Cold Fusion conversion issues: app vars and cachedqueries

2002-12-03 Thread Justin French
on 04/12/02 6:23 AM, Steve W ([EMAIL PROTECTED]) wrote: > These issues above as well as things like not being able to centrally > configure a database connection by using an alias for the name are > areas PHP lacks in comparision to Cold Fusion. Our CF application gets > installed at client sites.

Re: [PHP] date

2002-12-03 Thread Rick Widmer
> Hi, > > please could someone tell me how i can return a month in text from an int > ie > > getMonth(12) > How about: $Months = array( , 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec' ); echo $Months[12]; // Dec Rick -- PHP Gene

Re: [PHP] MySQL Server

2002-12-03 Thread Thomas Seifert
"mysql"-database contains all the system tables and users. Users are only inserted there and defined for which database they are made. As Jason suggested, look at mysql.com they have a fine manual with tutorials and long descriptions which lead to easy solutions to create users. i.e. search

Re: [PHP] formating numbers & date

2002-12-03 Thread Jeff Bluemel
ok - I've been looking through this... the number_format is working great (actually I finally found that function right before I read your response), but the date format doesn't seem to allow me to pass it a date. Jeff "Kevin Stone" <[EMAIL PROTECTED]> wrote in message 01ff01c29b0b$381e2380$6601

RE: [PHP] POST data

2002-12-03 Thread John W. Holmes
> Can someone tell me how I can access data from a POST? I don't mean > the variables because the data I'm getting doesn't have any. I have a > client that is doing a simple HTTP Post to a server and appending xml > data right after the header. I need access to the xml blob. In php.ini, there is t

Re: [PHP] Re: Show Folder Contents in Form

2002-12-03 Thread Stephen
I finally got around to checking this thing out. Doesn't work... I'm getting these errors: Warning: readdir(): supplied argument is not a valid Directory resource in c:\inetpub\wwwroot\checker\admin\add_module.php on line 136 Warning: Wrong datatype in usort() call in c:\inetpub\wwwroot\checker\a

Re: [PHP] Re: Show Folder Contents in Form

2002-12-03 Thread Stephen
Nevermind, I fixed it. But now I have another problem. One, my select box has some sub-directories. How cna I filter those out? It is also showing a bunch of numbers. I included a screenshot of the select box. The following is the code: $file, "time" => filectime("/Inetpub/wwwroot/checker/modules

Re: [PHP] Prevent storing data when reload

2002-12-03 Thread Hugh Danaher
put if (!isset($blocker)) { your form goes here within your form add print " end your form } With this, your input form is on the page when the page first loads (and $blocker is not set), but disapears when the data is submitted and the page reloads. Even if the us

Re[2]: [PHP] How to handle "so called" expired sessions??

2002-12-03 Thread Tom Rogers
Hi, Wednesday, December 4, 2002, 4:01:07 AM, you wrote: >> Ive just been getting myself deep into using sessions. >> Sessions are working as it should except for one condition. >> Say I log into the site, and the session is started, and I don't do >> anything for the next 30 mins, then go back to

Re: Re[2]: [PHP] How to handle "so called" expired sessions??

2002-12-03 Thread ed
I've noticed this as well with the things I've been doing for sessions. They way I understand it is that the server side session storing values is supposed to expire after a certain lenght of time. I currently have this at default so I think it should expire after 24 mins. The cleanup is done wit

  1   2   >