[PHP] Earlier versions hurt PHP 5

2005-12-19 Thread PHPDiscuss - PHP Newsgroups and mailing lists
As a developer, I would love to use PHP 5+ for applications but I am afraid to do so because 90% of web hosting companies do not offer it. The biggest reason that that they do not offer it is because there is little demand for it. The reason why there is little demand for it is that developers

[PHP] PHP SOAP Client question

2005-02-01 Thread PHPDiscuss - PHP Newsgroups and mailing lists
The following wsdl file was provided to me. http://64.122.63.81:5454/IfxService.wsdl I first attempted to genrate the PHP classes using the following code... ?php require_once('SOAP/Client.php'); $wsdl=new SOAP_WSDL('http://64.122.63.81:5454/IfxService.wsdl); // Look at the generated code...

[PHP] Re: 404 custom handler on a cgi-wrap PHP - No input specified error

2005-01-19 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Luke Barker wrote: I have made a 404 custom error handler, using .htaccess in a directory - it is usppoed to route all unfound pages to error.php, and works as expected for .htm and .html pages as well as gifs etc. But ofr .php scripts, e.g /path/to/wrongurl.php it doesnt show my page -

Re: [PHP] Forms on PHP

2005-01-11 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Leon Poon wrote: Refer to the following line numbers: 01 ?php 02 // Start of PHP code - Extract values from form. 03 /* Other values read */ 04 $n=$_POST['n']; 05 06 // Pass the data from the form to lightcurve_csharp 07 $command=./lightcurve_csharp $a $i $e $lomega $bomega

[PHP] Forms on PHP

2005-01-10 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Hi, I am new to this or any newsgroup in PHP, as well as PHP itself, so this question is probably rather elementary. I have a form which on clicking on the Submit button calls up a compiled program on the server that is executed and writes output to a file. This file is then read by the PHP

[PHP] php mail

2004-12-10 Thread PHPDiscuss - PHP Newsgroups and mailing lists
I have a dedicated Red Hat linux boxed leased from Interland and the php mail function does not work. I have found several articles on things to try and have tried everything I saw but to no avail. I set up a php script to mail and then print the return code and I get a 1 (success). But the

[PHP] php mail

2004-12-10 Thread PHPDiscuss - PHP Newsgroups and mailing lists
I have a dedicated Red Hat linux boxed leased from Interland and the php mail function does not work. I have found several articles on things to try and have tried everything I saw but to no avail. I set up a php script to mail and then print the return code and I get a 1 (success). But the

[PHP] Php Mail not working properly

2004-12-10 Thread PHPDiscuss - PHP Newsgroups and mailing lists
I have a dedicated Red Hat linux boxed leased from Interland and the php mail function does not work. I have found several articles on things to try and have tried everything I saw but to no avail. I set up a php script to mail and then print the return code and I get a 1 (success). But the

[PHP] Re: __PHP_Incomplete_Class Errors...

2004-11-11 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Stephen Craton wrote: I've been working on a script for a while now and it works perfectly on my local machine. I'm using a couple of classes, mainly my database and users classes. After logging in, I assign a session variable to the user's row in the database: $_SESSION['user'] = $db-row;

[PHP] Cannot retrive the data ???

2004-11-01 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Hi there, Look at the following code please. I have a mysql db setup and apache running. I have the register_globals=OFF on the php.ini file. The code is suppose to show all the jokes in the databse and give user to enter jokes. The code works fine when when the register_globals=ON in the

[PHP] Cannot retrive the data ???

2004-11-01 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Hi there, Look at the following code please. I have a mysql db setup and apache running. I have the register_globals=OFF on the php.ini file. The code is suppose to show all the jokes in the databse and give user to enter jokes. The code works fine when when the register_globals=ON in the

[PHP] SimpleXML: DOM, SAX or Other?

2004-10-15 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Hi, Does anybody have any depthful knowledge of the SimpleXML extension in PHP5?.. More accurately, do you know if the simpleXml-xpath() method uses DOM, SAX or some other method of parsing a loaded XML document? I ask because I am trying to parse arbitrary XML documents as efficiently as

Re: [PHP] SOMETIMES, my SID gets embedded in the URL ???

2004-10-11 Thread PHPDiscuss - PHP Newsgroups and mailing lists
. Also when I access the forums on my site (IPB), the sid isn't embedded. So my question is: if session.use_only_cookies is ON, why on earth is the sid present in the url ? PS: php is version 4.3.8. Marek Kilimajer wrote: PHPDiscuss - PHP Newsgroups and mailing lists wrote: he problem

[PHP] SOMETIMES, my SID gets embedded in the URL ???

2004-10-07 Thread PHPDiscuss - PHP Newsgroups and mailing lists
he problem is that SOMETIMES, my SID gets embedded in the URL, although at the begining of every page I have this code: ini_set(session.use_only_cookies, 1); session_set_cookie_params(60*60); session_start(); session_register(blabla); if (!$_SESSION[logged_in]) session_destroy(); etc, etc; So

Re: [PHP] SOMETIMES, my SID gets embedded in the URL ???

2004-10-07 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Wow, thank you, it was so obvious! Marek Kilimajer wrote: PHPDiscuss - PHP Newsgroups and mailing lists wrote: he problem is that SOMETIMES, my SID gets embedded in the URL, although at the begining of every page I have this code: ini_set(session.use_only_cookies, 1); The above sets

[PHP] Open all subdirectories in a directory

2004-08-14 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Hello Professionals, Can anybody help me to open all subdirectories in a directory, I used is_dir() to check whether it is a dir, and if yes, I recursively called it with the new dir name. But all subdirectories are not open the recursion is not working for more than 1 level. I tested it in

[PHP] Open all subdirectories in a directory

2004-08-14 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Hello Professionals, Can anybody help me to open all subdirectories in a directory, I used is_dir() to check whether it is a dir, and if yes, I recursively called it with the new dir name. But all subdirectories are not open the recursion is not working for more than 1 level. I tested it in

[PHP] Open all subdirectories in a directory

2004-08-14 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Hello Professionals, Can anybody help me to open all subdirectories in a directory, I used is_dir() to check whether it is a dir, and if yes, I recursively called it with the new dir name. But all subdirectories are not open the recursion is not working for more than 1 level. I tested it in

[PHP] code

2004-08-14 Thread PHPDiscuss - PHP Newsgroups and mailing lists
; } } } closedir($dh); } } } getfiles($dir); ? Hope you can help me. Thanks. John Holmes wrote: PHPDiscuss - PHP Newsgroups and mailing lists wrote: Hello Professionals, Can anybody help me to open all subdirectories

[PHP] need help with $HTTP_RAW_POST_DATA

2004-08-05 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Hi all, I am using a Debian server with all stable packages so PHP is version 4.1.2 I was developing a SyncML server and was using $HTTP_RAW_POST_DATA as a receiving container for incoming SyncML communication from my Sony Ericsson T-616. Recently finished writing the WBXML convertor and are

[PHP] Automatically run a php page once a day

2004-07-29 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Hello everybody, Can someone help me saying how i can run a php script automatically once in a day. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP5 for Fedora Core 2

2004-07-27 Thread PHPDiscuss - PHP Newsgroups and mailing lists
C.F. Scheidecker Antunes wrote: Hello all, Are there any pre compiled rpm packages from Fedora Core 2 yet? If not, I will most likely built it myself. Thanks. Any chance you can send it to me when you finish? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] DAYLIGHT SAVINGS TIME OR NOT

2004-07-20 Thread PHPDiscuss - PHP Newsgroups and mailing lists
You could also use the php date() function. date('I'); If you need it for a specific date, then date('I',$timestamp); Curt Zirzow wrote: * Thus wrote Chirag Shukla: This function can be used to know whether it is Daylight Savings time or not for the given date. It may not be the

[PHP] Re: PHP 4.3.7 update - how to

2004-07-06 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Alan McDonald wrote: I've downloaded the 4.3.7 tar ball and extractted it. I've run configure (after deleting the cache), no errors. I've run make - no errors, I've then run make install.. no errors, it says it's updating and installing. Now I've restarted my httpd service - I've

[PHP] Re: how to verify PHP has been installed with ldap?

2004-05-21 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Bing, Run ?php phpinfo(); ? If you don't see a section for LDAP, it's not installed. In a Windows XP, PHP 4.3.6 environment, installed in C:/Program Files/PHP,I had to change a working default installation as follows to get it to work: Add to php.ini: extension_dir = C:/Program

[PHP] List() help

2004-05-09 Thread PHPDiscuss - PHP Newsgroups and mailing lists
I'm using list like list($a,$b,$c,$d) = $MyArray MyArray holds more than three items, 0-4 more, my problem is that $d only gets one and I lose the others if more tha one extra. I know I can just add more $e,f,g,h,i but how do I get the extras into an array? TIA RGauthier -- PHP General Mailing

[PHP] PHP: Eregi multi-line question

2004-03-25 Thread PHPDiscuss - PHP Newsgroups and mailing lists
?php $rootPath = ; $cacheTime= 0; $Diff = (time() - filemtime($rootPath.stuff.dat))/60; $cntrp=0; $cntrb=0; $cntrt=0; $cntrd=0; $cntrc=0; if ($Diff $cacheTime) { $file = fopen (local file, r); if (!$file) {

[PHP] PHP: eregi multi-line Question

2004-03-25 Thread PHPDiscuss - PHP Newsgroups and mailing lists
?php $rootPath = ; $cacheTime= 0; $Diff = (time() - filemtime($rootPath.stuff.dat))/60; $cntrp=0; $cntrb=0; $cntrt=0; $cntrd=0; $cntrc=0; if ($Diff $cacheTime) { $file = fopen (local file, r); if (!$file) {

[PHP] Re: Inconv in PHP5 compile

2004-03-20 Thread PHPDiscuss - PHP Newsgroups and mailing lists
I'm having PHP5 compile problems as well. Here's some shortened output from commands giving a picture of my problem. The first thing that troubles me is vi giving this output: [EMAIL PROTECTED] php-5.0.0RC1]# vi ext/mysql/php_mysql.c ext/mysql/php_mysql.c 2514L, 70348C Error detected while

[PHP] shell_exec and accents

2004-01-29 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Hi, I'm using shell_exec to call a command that can return accented characters. Unfortunately the accented characters are being transformed into other characters instead (for example, an acute e becomes a ','). How can I get the real output? I'm running on Windows 2000. In the command prompt

[PHP] shell_exec and accents

2004-01-29 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Hi, I'm using shell_exec to call a command that can return accented characters. Unfortunately the accented characters are being transformed into other characters instead (for example, an acute e becomes a ','). How can I get the real output? I'm running on Windows 2000. In the command prompt

[PHP] PHP CONTRACT ROLE IN BERKSHIRE, UK

2004-01-20 Thread PHPDiscuss - PHP Newsgroups and mailing lists
PHP developer required with good SQL (MySQL preferred), HTML and Linux open source operating systems experience for contract in Berkshire. Experience of data analysis, requirements analysis and technical documentation an advantage as is any knowledge of Oracle databases. Role is to develop a cost

[PHP] Search For File

2003-11-18 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Hello, I am trying to write a simple application using PHP on a Windows 2000 server. There is one text box for input and one search button. Basically the user would input a file name (for example help.pdf) and then the php script would search a directory (for example c:\help\) and subfolders

[PHP] com obj from php

2003-08-14 Thread PHPDiscuss - php Newsgroups and mailing lists
Hi all; Does anyone know if ti is possible or not to create a com object from php?? cheers :o) Steve. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php