[PHP] Compatiblity: Zend-1.20 + PHP4.2.1

2002-05-14 Thread David J Jackson

Is my hosting company trying to pull the wool over my eyes?
There response to upgrading to 4.2.1, was that it isn't
compatible with Zind optomizer 1.20?

The only *issue* I seen with 4.2.x is of course register_globals!
(which of course be changed in php.ini)
I don't  have a problem with them holding off, but I do have a
problem with them trying to blow smoke up my ***.

Thanks,
David


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Remote Hosting: Trouble shooting

2002-05-11 Thread David J Jackson

Let's see if I can keep this short and simple.
I'm  having to problems with a hosting service.
1. index.php isn't being read as default index.
2. Form aren't working (see a below mail_call.php).
2A.The mail_call.php works on my localbox (apache-2.0.36 +PHP4.2.0)
2B. Hosting company,for reason they didn't make clear are running 
apche.2.0.35 and PHP4.2.0?RC4?

The SA at the hosting company assured me that DirectoryIndex was 
correctly configured for both the top level site index and VirturalHost?

My question is what can I do from a PHP scripting standpoint to *help*
the hosting company troubleshoot this issue? This has been going on
now for almost a month.

TIA,
David Jackson

-- Mail_call.php -

html
headtitleMailCall: Don't forget the stamp!/title/head
body

pre
?php
print pre;
print $_POST['from'];
print $_POST['mail_to'];
print $_POST['sub_ject'];
print $_POST['comments'];
print /pre;
?
?php mail(
$_POST['mail_to'],$_POST['sub_ject'],$_POST['comments'],
From:$_POST[from]\r\n.
X-Mailer: PHP/ . phpversion()
  ) ?
/pre
/body
/html


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Access denied errors

2002-05-07 Thread David J Jackson

Nick ---

Try this connect script.
Then from inside you php page use
?php include('connect.php'); ?

HTH,
David

--- connect.php --


// database connect script
$dbhostname = localhost;
$dbuser = picklesql;
$dbpasswd = pi56fb;
$dbname= pickle;
$link = mysql_connect($dbhostname, $dbuser, $dbpasswd)
 or die(Connection to server: $dbhostname FAILED!!);
mysql_select_db($dbname)
 or die(Connection to database: $dbname FAILED!!);
?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Grabbing ALL $_POST var at once.

2002-05-06 Thread David J Jackson

The code below works (but its ugly), but I know there has to be a why to 
grab all the $_POST[] at once and then parse them out?

Isn't there a why for me to access them directory without reassigning them?

TIH,
David


?php
$From = $_POST['from'];
$Two = $_POST['two'];
$Subject = $_POST['sub_ject'];
$Comments = $_POST['comments'];
echo b$From/b;print \n;
echo $Two;print \n;
echo $Subject;print\n;
echo $Comments;print \n;
?
?php mail($Two,$Subject,$Comments) ?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Grabbing ALL $_POST var at once.

2002-05-06 Thread David J Jackson

Rasmus Lerdorf wrote:
 See either extract() or import_request_variables() in the manual.

Rasmus --
I appreciate you taking the time to reply to my posting.

David


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Grabbing ALL $_POST var at once.

2002-05-06 Thread David J Jackson

John ---
Thanks for your reply, but let me rephase the question.
Let say I have a form with 50 fields on it do I have to:

echo $_POST['one']

.
.
echo $POST['fifty']


Or should I, could I use extract()?

Thanks in advance,
David

p.s I said it was UGLY :)


 ?
 
 If that's too hard to understand, use extract().
 
 ---John Holmes...
 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Is --enable-track-vars still needed?

2002-05-05 Thread David J Jackson

Miguel Cruz wrote:
 On Sat, 4 May 2002, David Jackson wrote:
 
Is I still recommended that config be run with the --enable-track-vars flag?
Or has this been deprieciated? Recently? Does the chagnes to global vars 
come in to play here?
 
 
 I believe that has had no effect (i.e., they were always enabled) for a 
 while now. In any case, no need these days.
 
 miguel
 

Migual --
Thanks for the clarification.

David


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php