[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

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

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).

[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=somethingx=100y=200 And I'm passing it to this URL: http://www.somesite.com/index.php?var=val So if I use:

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

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? If

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

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 session

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

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

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

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:

[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

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

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.

[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

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 data

[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

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

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 just fine.

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

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,

[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

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

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 and

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

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 General

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

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 this

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

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: ?php function sortByTime($a, $b) { if ($a[time]

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 input type=hidden name=blocker value=1 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

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 the

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

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

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 :) ?

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 done

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 back to 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: John W.

[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

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

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 in side

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 type of

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

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. Maybe

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 $sql

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

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

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 trying to pass

[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

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

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

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 possibility.

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 =

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 =

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] 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.php);

[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

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:

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

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

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

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 would

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! HTH,

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

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

[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

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

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

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

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 what

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 have

[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

[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

[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

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 going, you

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

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

[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

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

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. Savenkov

  1   2   >