Re: [PHP] "x" as a multiplier

2002-12-03 Thread Bastian Vogt
Hi, try $newwidth." x ".$newheight instead. It's important to put the spaces inside the " <- ...don't know the word :-) If it's still not working you could try settype($newwidth, "string"); settype($newheight, "string"); echo $newwidth." x ".$newheigt; but I think, this is not necessary!

Re: [PHP] Prevent storing data when reload

2002-12-03 Thread Jason Wong
On Wednesday 04 December 2002 07:39, Justin French wrote: > > 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

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

2002-12-03 Thread Gerard Samuel
I was the original poster to this topic. Quite suprised it continued.. I have my sessions stored in a database, thus I thought the problem was there, but have come to realise, that is how sessions behave naturally. I originally thought, that the expired session garbage collection dumps stale ses

[PHP] InstalaciƱon PHP

2002-12-03 Thread Vicente Valero
Hoa a todos, Deseo hacer uso de PHP para crear formularios con la finalidad de acceder a una base de datos MySQL 3.23.53a (todo sobre Linux). Tengo instalado ahora mismo RADIUS y MySQL e iba a decidirme a montar PHP. He estadoobservando las indicaciones de instalación y la verdad, soy bastante n

[PHP] Not able to connect to FTP server

2002-12-03 Thread Vinod
Hi friends, I am having a DSL Internet connectivity in our office and my PC is connected to Internet using a HTTP/FTP Proxy(192.168.0.10) and the browser(Mozilla) in my PC is configured to connect to net through the proxy When I tried to connect to our ftp site using the following script, I have

Re: [PHP] formating numbers & date

2002-12-03 Thread Jason Wong
On Wednesday 04 December 2002 08:29, Jeff Bluemel wrote: > ... but the date format doesn't seem to > allow me to pass it a date. Your code? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications

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

2002-12-03 Thread Jason Wong
On Wednesday 04 December 2002 09:41, Stephen wrote: > 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: >

[PHP] request for help/advice (xml content management)

2002-12-03 Thread Robert Samuel White
Hello, I am the creator of eNetwizard Content Management Server, an open source content management system using the LAMP suite. I am getting ready for its first major release and have come across some problems that I need to address first... I'm not really sure where to start this is such a *huge

Re: [PHP] Help with session variables

2002-12-03 Thread Jason Wong
On Wednesday 04 December 2002 14:12, Manuel Ochoa wrote: > I'm running PHP 4.3 on a Windows .net server with Apache 2. Please look at > the following code as I cannot figure out what I'm doing wrong. > > Page1. > session_start(); > session_register("step"); > $step=1; > header("location: page_A

Re: [PHP] PHP not reporting errors, but hangs!!

2002-12-03 Thread tech
On Wednesday 04 December 2002 11:55 am, Siva Kumar wrote: > About 3 months back I posted the following message to the list: > > On Saturday 12 October 2002 12:11 pm, Siva Kumar wrote: > > I am running Apache/PHP with Postgresql. For the past one day, whenever > > there is an error in the php script

Re: [PHP] Whimper, help :)

2002-12-03 Thread John Taylor-Johnston
http://ccl.flsh.usherb.ca/print/print.html?search=%26quot%3Bready+maria%26quot%3B http://ccl.flsh.usherb.ca/print/index.html?search=%26quot%3Bready+maria%26quot%3B I blame PHP. Can't be MySQL. echo $sql displays the EXACT same thing. Debugging ... Works jdaxell.ccl = 2 records found: $sql = 'SELE

Re: [PHP] Whimper, help :)

2002-12-03 Thread John Taylor-Johnston
http://ccl.flsh.usherb.ca/print/print.html?search=%26quot%3Bready+maria%26quot%3B http://ccl.flsh.usherb.ca/print/index.html?search=%26quot%3Bready+maria%26quot%3B I blame PHP. Can't be MySQL. echo $sql displays the EXACT same thing. Debugging ... Works jdaxell.ccl = 2 records found: $sql = 'SELE

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

2002-12-03 Thread Chris Shiflett
--- Steve W <[EMAIL PROTECTED]> wrote: > 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 possibil

[PHP] Help with session variables

2002-12-03 Thread Manuel Ochoa
I'm running PHP 4.3 on a Windows .net server with Apache 2. Please look at the following code as I cannot figure out what I'm doing wrong. Page1. session_start(); session_register("step"); $step=1; header("location: page_A.php"); Page_A. session_start(); extract($_SESSION); $step=2; hea

Re: [PHP] Whimper, help :)

2002-12-03 Thread John Taylor-Johnston
Peter Houchin wrote: Mostly varchar(255) and a couple of text. (I may have one longtext). But should that make a difference? Like I said, I can run the same SQL in PHPMyAdmin (a MySQL interface) and I get the correct reponse. But pass it through PHP and kablooey. Won't work? John > what are t

[PHP] Not able to connect to FTP server

2002-12-03 Thread Vinod
Hi friends, I am having a DSL Internet connectivity in our office and my PC is connected to Internet using a HTTP/FTP Proxy(192.168.0.10) and the browser(Mozilla) in my PC is configured to connect to net through the proxy When I tried to connect to our ftp site using the following script, I have

[PHP] Re: mcrypt 2.4.x - trouble with small data fields?

2002-12-03 Thread Steve Yates
>Is there a minimum field size for using mcrypt? Boy I feel dumb now. :) My answer was in my post. Mcrypt returns a string that is usually longer than the original string, since the return has to be a multiple of the block size used. So a 2-character string takes "blocksize" characters when

RE: [PHP] Whimper, help :)

2002-12-03 Thread Peter Houchin
what are the field types in the mysql DB? > -Original Message- > From: John Taylor-Johnston [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 4 December 2002 4:13 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Whimper, help :) > > > Tom, > Anyone, > > No I'm not looking for a ", I'm tryin

Re: [PHP] Whimper, help :)

2002-12-03 Thread John Taylor-Johnston
Tom, Anyone, No I'm not looking for a ", I'm trying to pass double quotes into MySQL. Like I said, it works when debugging: http://ccl.flsh.usherb.ca/print/print.html?search=%26quot%3Bready+maria%26quot%3B http://ccl.flsh.usherb.ca/print/display.test.inc.phps but fails when I try to pass my doub

[PHP] Re: Prevent storing data when reload

2002-12-03 Thread Steve Yates
"Lars Espelid" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > When I reload the page the data gets stored once more. if (record already exists) { echo "hey you hit reload!" } else { [save record to database] } - Steve Yates - I know a good tagline when I

Re: [PHP] Whimper, help :)

2002-12-03 Thread Tom Rogers
Hi, Wednesday, December 4, 2002, 2:06:36 PM, you wrote: JTJ> Martin, JTJ> Anyone, JTJ> I'm desperate :( PHP isn't sending my SQL correctly. It's not a MySQL problem. It's my PHP syntax. JTJ> Debugging: JTJ> http://ccl.flsh.usherb.ca/print/print.html?search=%26quot%3Bready+maria%26quot%3B JTJ>

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

2002-12-03 Thread Tom Rogers
Hi, Wednesday, December 4, 2002, 1:59:11 PM, you wrote: JWH> Okay. I think I thought you were the original poster. How do you know JWH> it's returning "stale" data, though? If the cookie is valid, and there JWH> is still a session file (or data in memory), then why is it stale or JWH> expired. Ma

[PHP] Whimper, help :)

2002-12-03 Thread John Taylor-Johnston
Martin, Anyone, I'm desperate :( PHP isn't sending my SQL correctly. It's not a MySQL problem. It's my PHP syntax. Debugging: http://ccl.flsh.usherb.ca/print/print.html?search=%26quot%3Bready+maria%26quot%3B $sql = 'SELECT ... FROM '.$table.' WHERE MATCH ... AGAINST (\'"ready maria"\' IN BOOLEA

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

2002-12-03 Thread John W. Holmes
> No question :) > It's just that this is what the original question was about and why I > suggested > doing his own sesssion timeout check as the deleting proccess is too > unreliable > to depend on for timeout handling. PHP will quite happily return stale > data > which could be bad in a login ty

RE: [PHP] how to make a individual submit...

2002-12-03 Thread John W. Holmes
> i have got me a form, that when submitted is effectlively only one > variable, > but when i submit it, it grabs the last field displayed instead of the one > selected.. normally this would be easy but I think because I have it > inside > a loop it's playing havock on me.. > > > -[form code

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

2002-12-03 Thread Tom Rogers
Hi, Wednesday, December 4, 2002, 1:33:03 PM, you wrote: No question :) It's just that this is what the original question was about and why I suggested doing his own sesssion timeout check as the deleting proccess is too unreliable to depend on for timeout handling. PHP will quite happily return st

[PHP] how to make a individual submit...

2002-12-03 Thread Peter Houchin
howdy i have got me a form, that when submitted is effectlively only one variable, but when i submit it, it grabs the last field displayed instead of the one selected.. normally this would be easy but I think because I have it inside a loop it's playing havock on me.. -[form code in side the

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

2002-12-03 Thread Tom Rogers
Hi, Wednesday, December 4, 2002, 1:04:07 PM, you wrote: S> I have a similar problem only my sessions expire once you leave the site, S> even for a second. I'm not so experienced with cookies so how can I fix S> this? S> - Original Message - S> From: "Tom Rogers" <[EMAIL PROTECTED]> S> To

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

2002-12-03 Thread John W. Holmes
> 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 bac

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

2002-12-03 Thread John W. Holmes
> 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 d

Re: [PHP] My first post

2002-12-03 Thread Tom Rogers
Hi, Tuesday, December 3, 2002, 7:37:20 AM, you wrote: VE> Hi. VE> I'm new in PHP. Could you point me where can i download a sample script VE> about how can i paginate some results? VE> TIA Here is a class that will create a google like pagination of results if that is what you are after :) cou

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

2002-12-03 Thread Stephen
I have a similar problem only my sessions expire once you leave the site, even for a second. I'm not so experienced with cookies so how can I fix this? - Original Message - From: "Tom Rogers" <[EMAIL PROTECTED]> To: "John W. Holmes" <[EMAIL PROTECTED]> Cc: "'Gerard Samuel'" <[EMAIL PROTEC

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

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: [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: [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] 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] 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] 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] 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] 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] 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] 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] 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] 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

[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

[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

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

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] "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] 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 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

[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] 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] 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] "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] 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 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] "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

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

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

[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] 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.

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

[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

[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

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

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] 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] 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] 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: 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 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

[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] 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] 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

[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-

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

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] 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 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] 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] 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

[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[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] 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: [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> $

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: 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] 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: >

[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] 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] 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] 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

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

[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

[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] 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] 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

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

  1   2   >