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

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

[PHP] Sending file stored on server via email - How?

2007-01-08 Thread Matt Arnilo S. Baluyos (Mailing Lists)
Hello everyone, I store files on the server (.pdf, .doc, .txt, etc.) which are referenced by entries in a database. The filenames are only stored in the database and are not BLOBs. What I'd like to do is to be able to show a web form wherein a user can choose stored documents on the server and s

Re: [PHP] Re: Sending file stored on server via email - How?

2007-01-08 Thread Matt Arnilo S. Baluyos (Mailing Lists)
On 1/8/07, Ville Mattila <[EMAIL PROTECTED]> wrote: Matt Arnilo S. Baluyos (Mailing Lists) kirjoitti: > What's the easiest way to go about this? Specifically, what's the > easiest way to read a file from the server and send it as an email > attachment. I woul

[PHP] Classified Ads Script

2007-02-19 Thread Matt Arnilo S. Baluyos (Mailing Lists)
Hello everyone, I'm planning to put up a local classified ads website and I'm looking for an open-source script for this. I've already had some links from Google and Sourceforge but I'd like to get some opinions on people who've already run a classifieds website as to what they're using and what

[PHP] SNMP support on compile from source FastCGI

2007-03-25 Thread Matt Arnilo S. Baluyos (Mailing Lists)
Hello everyone, I'm trying to add the SNMP module with a compile-from-source PHP 5.2.1 installation. This is on a Fedora Core 5 system with target web server being lighttpd. This is the configure script that I have: ./configure --enable-fastcgi --enable-discard-path --enable-force-redirect --wi

[PHP] Re: SNMP support on compile from source FastCGI

2007-03-25 Thread Matt Arnilo S. Baluyos (Mailing Lists)
On 3/26/07, Matt Arnilo S. Baluyos (Mailing Lists) <[EMAIL PROTECTED]> wrote: Hello everyone, I'm trying to add the SNMP module with a compile-from-source PHP 5.2.1 installation. This is on a Fedora Core 5 system with target web server being lighttpd. This is the configure script

[PHP] short open tags not working even if enabled - lighttpd + fastcgi

2007-03-26 Thread Matt Arnilo S. Baluyos (Mailing Lists)
Hello everyone, I have a working lighttpd + fastcgi + PHP + eaccelerator installation. I have also enabled short tags on the /usr/local/lib/php.ini but I'm having problems with PHP not escaping the short tags. To better illustrate, my phpinfo() file can be accessed at http://202.171.164.70/phpin

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

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

2004-05-21 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Bing, Run 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 Files/PHP/extensions/ extension

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

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

[PHP] Two MySQL instances in one server

2007-10-15 Thread Matt Arnilo S. Baluyos (Mailing Lists)
Hi all, Would it be possible to have two MySQL instances running on one server (each having different ports) and then have only one running Apache server with PHP? I have tried this once but PHP can only connect to one MySQL server because it can only read one socket file at a time. As much as po

Re: [PHP] Which PHP-Editor to use?

2007-10-17 Thread Matt Arnilo S. Baluyos (Mailing Lists)
Does Eclipse already have word-wrap? To my disappointment, it was still lacking that basic functionality the last time I tried it. On 8/3/07, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > eclipse with php eclipse, but i may be switching to eclipse pdt once it > becomes stable if there is no support

Re: [PHP] Which PHP-Editor to use?

2007-10-17 Thread Matt Arnilo S. Baluyos (Mailing Lists)
On 10/18/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > 2007/10/18, Matt Arnilo S. Baluyos (Mailing Lists) > <[EMAIL PROTECTED]>: > > Does Eclipse already have word-wrap? > > > > To my disappointment, it was still lacking that basic functionality > > t

[PHP] TLS transport for Windows

2007-10-22 Thread Matt Arnilo S. Baluyos (Mailing Lists)
Hi all, I'm looking for a PHP environment for Windows (like XAMPP), that already has TLS transport built-in. Would anyone know of something like it? If not, any pointers on how to get TLS transport for a PHP Windows environment? Thanks, Matt -- Stand before it and there is no beginning. Follow

[PHP] ORM framework suggestion

2007-08-08 Thread Matt Arnilo S. Baluyos (Mailing Lists)
Hello All, I'm thinking of using an ORM framework for a new project. From my research, I've found Propel and Doctrine (of course, there might be others). Would anyone suggest what ORM framework they're using right now? I am experienced with OOP and am just looking for a framework to speed things

[PHP] Script to sanitize variables

2006-03-28 Thread Matt Arnilo S. Baluyos (Mailing Lists)
Hello everyone, Would anyone know a PHP script that can sanitize variables to prevent XSS and SQL injection? Thanks and best regards, Matt -- Stand before it and there is no beginning. Follow it and there is no end. Stay with the ancient Tao, Move with the present. -- PHP General Mailing List (

Re: [PHP] Script to sanitize variables

2006-03-28 Thread Matt Arnilo S. Baluyos (Mailing Lists)
On 3/29/06, Ray Hauge <[EMAIL PROTECTED]> wrote: > Chris Shiflett has written a number of good articles on the matter. You can > find them at: > > http://shiflett.org/articles > > The articles in particular would be: > > Security Corner: Cross-Site Request Forgeries > Security Corner: Data Filterin

[PHP] Handling illegal byte sequences in UTF-8 strings

2006-04-21 Thread Matt Arnilo S. Baluyos (Mailing Lists)
Hello list, We have recently upgraded our database to PostgreSQL 8.1.x which handles UTF-8 more strictly than previous versions. The new version will not allow illegal byte sequences when inserting data. This has caused some errors in our system which inputs data. Basically, what the system does

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

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

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

[PHP] PHP: Eregi multi-line question

2004-03-25 Thread PHPDiscuss - PHP Newsgroups and mailing lists
$cacheTime) { $file = fopen ("local file", "r"); if (!$file) { $dump = "Does not exist"; } else { while (!feof ($file)) { $line = fgets ($file); if (eregi ('', $line, $pt)) { $cntrp=$cntrp+1; $post[$cntrp]=$pt[1];

[PHP] PHP: eregi multi-line Question

2004-03-25 Thread PHPDiscuss - PHP Newsgroups and mailing lists
$cacheTime) { $file = fopen ("local file", "r"); if (!$file) { $dump = "Does not exist"; } else { while (!feof ($file)) { $line = fgets ($file); if (eregi ('', $line, $pt)) { $cntrp=$cntrp+1; $post[$cntrp]=$pt[1];

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

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

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

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

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

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

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

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

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

[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... http://64.122.63.81:5454/IfxService.wsdl); // Look at the generated code... echo ( $wsdl->generateProxyCode() ); ?> ---

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

[PHP] define() or $variable for application settings?

2006-02-08 Thread Matt Arnilo S. Baluyos (Mailing Lists)
Hello Everyone, I have a config.inc.php file which basically contains all the configuration info that the applications needs (directory/file locations, database credentials, etc). The information there is set using the define() function. However, I've seen some open-source projects which either u

Re: [PHP] define() or $variable for application settings?

2006-02-09 Thread Matt Arnilo S. Baluyos (Mailing Lists)
On 2/9/06, Jochem Maas <[EMAIL PROTECTED]> wrote: > bare in mind though that define() is horribly slow (to paraphrase > Rasmus) which may be the reason many projects choose to use variables > instead. see here: Thanks Chris and Jochem! That should've been my follow up question - which is, if defi

<    2   3   4   5   6   7