RE: [PHP-WIN] using the mail function in php

2004-08-17 Thread Lenny Davila
Try using the strip slashes http://us3.php.net/stripslashes stripslashes($messageVariable); Eleno Davila - SEO [EMAIL PROTECTED] (877)933-6750 Ext 163 (direct line) http://plasticsurgery.com  -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, v

[PHP-WIN] Newbie working with PHP 5.0, IIS, Win2000

2004-08-17 Thread Chuck
Hello everyone. Hopefully someone can help me with this. I was able to install PHP successfully. I tried a sample script and it worked fine through IE. I then tried to create a script that would pass a value on to another script using the post method. These are called Pass.php and Pass1.php.

RE: [PHP-WIN] Re: include_path and relative vs. absolute paths

2004-08-17 Thread David Hamilton
I've had some problems with this at well. I thought about implementing one of the solutions below: $dir = dirname($_SERVER["PATH_TRANSLATED"])"/../includes/"; But it looks like this might have some problems when used with PHP 5. http://www.php.net/manual/en/migration5.incompatible.php Just my

RE: [PHP-WIN] Re: include_path and relative vs. absolute paths

2004-08-17 Thread Gryffyn, Trevor
Maybe not the most elegant, but I like to keep my stuff kind of modular so what I've done is just create an "includes" folder in the root and them reference it as include("../includes/includename.inc") from the scripts that are all in their own folders (by project). This may not be the best as far

[PHP-WIN] Re: include_path and relative vs. absolute paths

2004-08-17 Thread neil
Thanks John That is a great solution, well at least for my development box where I can control my php.ini. The jokers who host one of the sites I look after have the include_path pointing to a non-existent place and won't modify it. Thanks anyway Neil "John Lim" <[EMAIL PROTECTED]> wrote in mess

[PHP-WIN] Re: include_path and relative vs. absolute paths

2004-08-17 Thread John Lim
Good question. I had the same problem when i switched from .asp to .php Suppose you want to use relative paths, eg. reference child1.php from file1.php, where the file locations are: path/file1.php path/child/child1.php The trick is to generate an absolute path for the current file, and find