Re: [PHP] Strings and php.ini

2002-11-16 Thread Khalid El-Kary
hi,
infact i'm un
able to obtain a copy of my hosting company's php.ini

thanx

_
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/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Strings and php.ini

2002-11-16 Thread @ Edwin

"Khalid El-Kary" [EMAIL PROTECTED] wrote:
 hi,
 infact i'm un
 able to obtain a copy of my hosting company's php.ini
 
Then, perhaps, try running phpinfo() and compare.

I think it might even have something to do with "register_globals".

- E


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



Re: [PHP] Strings and php.ini

2002-11-16 Thread Khalid El-Kary
hi,
the script infact never used register_globals because it's a class that has 
nothing to do with the direct script input, but there's an idea that came to 
my mind, maybe the company compiled its own PHP? may this change anything?

generally is Linux different from windows in String functions? encoding for 
example?

thanx edwin, and sorry for writing so unpercise questions

khalid

_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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



Re: [PHP] Strings and php.ini

2002-11-16 Thread @ Edwin
Hello,

"Khalid El-Kary" [EMAIL PROTECTED] wrote:

 hi,
 the script infact never used register_globals because it's a
 class that has nothing to do with the direct script input, but
 there's an idea that came to my mind, maybe the company
 compiled its own PHP? may this change anything?

It's not impossible but I don't think they would really do that. Maybe you
should ask them. Or, run phpinfo() and check. Did you check? What did you
find out?

 generally is Linux different from windows in String functions?

Generally no, I don't think so.

 encoding for example?

It's possible that they are different but you can check phpinfo().

Also, if you're using multi-byte functions there's a possibility that your
the company you're using did not compile php with this feature enabled.

 thanx edwin, and sorry for writing so unpercise questions

Well, later when you are ready to ask precise or specific questions, I'm
sure a lot more people will help you :-)

Anyway, as I have mentioned earlier, run phpinfo() in Windows and in Linux
then compare them. THEN, you might just find out what's causing the
problem...

- E

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



Re: [PHP] Strings and php.ini

2002-11-16 Thread Khalid El-Kary
hi,
i was asking if there should be difference in functionality of PH string 
functions (not mb_) between the two following configurations:

the company: PHP 4.2.1, Apache 1.3.20, linux
me: PHP 4.2.3, Apache 1.3.24, windows

my confthe company's conf
thread safety			Enabled		Disabled
allow_call_time_pass_reference  off   		On
implicit_flush			on		off
log_errors			off		on
magic_qoutes_gpc		off		on
register_globals		off		on

thanx

khalid

_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


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



Re: [PHP] Strings and php.ini

2002-11-16 Thread @ Edwin
Hello,

"Khalid El-Kary" [EMAIL PROTECTED] wrote:
 hi,
 i was asking if there should be difference in functionality of PH string
 functions (not mb_) between the two following configurations:

 the company: PHP 4.2.1, Apache 1.3.20, linux
 me: PHP 4.2.3, Apache 1.3.24, windows

 my confthe company's conf
 thread safety Enabled Disabled
 allow_call_time_pass_reference  off   On
 implicit_flush on off
 log_errors off on
 magic_qoutes_gpc off on
 register_globals off on

Since I haven't seen any of your code, all I can do is guess.

So, I think it would be better if you just
(1) Edit your php.ini. Make the setting the same as the company's. (Later,
you might want to look at the way they compiled their php as well.)
(2) After you finish editing, restart your web server. Then,
(3) Try running your php scripts again.

IF you are able to run the scripts without any problem THEN the problem lies
somewhere else...

- E

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



Re: [PHP] Strings and php.ini

2002-11-16 Thread Jason Wong
On Sunday 17 November 2002 06:27, Khalid El-Kary wrote:
 hi,
 i was asking if there should be difference in functionality of PH string
 functions (not mb_) between the two following configurations:

 the company: PHP 4.2.1, Apache 1.3.20, linux
 me: PHP 4.2.3, Apache 1.3.24, windows

 magic_qoutes_gpc  off on

This setting can potentially make a difference. BTW, where possible, please 
use copy and paste. magic_qoutes_gpc should be magic_quotes_gpc. 
Introducing spurious typos into does not help in diagnosing anybody's 
problems.

Why don't you say exactly _what_ problems you're having? 

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
Modern man is the missing link between apes and human beings.
*/


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




Re: [PHP] Strings and php.ini

2002-11-15 Thread @ Edwin
Hello,

"Khalid El-Kary" [EMAIL PROTECTED]wrote:
 hi,

 are there any php.ini directives that control the PHP string functions?

You mean something like this? (Under "; Safe Mode")

-
; This directive allows you to disable certain functions for security
reasons.
; It receives a comma-deliminated list of function names.  This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
disable_functions =
-

 sorry i'm not percise but infact i have a 1200 lines script that acts well
 on a windows machine with PHP 4.2.3 Apache 1.3.24, but on a linux machine
 with PHP 4.2.1 (keep it secret :)) and Apache 1.3.20 it acts bad
 but the script wholly depends on string functions nothing more!


Why don't you just compare you php.ini files?

- E

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