Pure PHP Upload Add-On Pack Support Product Page
Function eregi()
Reported 06 Jan 2011 11:28:56
1
has this problem
06 Jan 2011 11:28:56 Dick Medema posted:
Hello DMXZone,In the script from DMXZone, excample
if (!eregi("GP_upload=true", $_SERVER['QUERY_STRING'])) {
I get the next error "PHP Deprecated: Function eregi() is deprecated in"
The eregi is the problem
Is there a solution for?
The PHP version server is 5.3.3
Geetz,
Dick M
Replies
Replied 06 Jan 2011 11:40:37
06 Jan 2011 11:40:37 Miroslav Zografski replied:
Hello Dick,
Quick fix is to substitute the eregi with preg_match.
However in the latest version of the PPU this is fixed so download the latest version from our site and update it according to this FAQ: www.dmxzone.com/go?17354
Regards,
Quick fix is to substitute the eregi with preg_match.
However in the latest version of the PPU this is fixed so download the latest version from our site and update it according to this FAQ: www.dmxzone.com/go?17354
Regards,
Replied 07 Jan 2011 14:56:01
07 Jan 2011 14:56:01 Dick Medema replied:
Hello Miroslav,
I have still the problem with the Function eregi() is deprecated .
I have done exactly as in the explanation.
The first solution "substitute the eregi with preg_match" isn`t work.
The second solution is even don`t work I have the exactly done according to the explanation.
1.Remove the currently installed version of the extension.
2.Clear the cache file and restart Dreamweaver then close it again.
3. Install the extension Pure PHP Upload 2 Version 2.1.10.
4. Start Dreamweaver and follow the DMXzone installation wizard.
5. Restart Dreamweaver.
Greetz,
Dick
I have still the problem with the Function eregi() is deprecated .
I have done exactly as in the explanation.
The first solution "substitute the eregi with preg_match" isn`t work.
The second solution is even don`t work I have the exactly done according to the explanation.
1.Remove the currently installed version of the extension.
2.Clear the cache file and restart Dreamweaver then close it again.
3. Install the extension Pure PHP Upload 2 Version 2.1.10.
4. Start Dreamweaver and follow the DMXzone installation wizard.
5. Restart Dreamweaver.
Greetz,
Dick
Replied 07 Jan 2011 17:47:36
07 Jan 2011 17:47:36 Dick Medema replied:
Hello,
I found somethig that work manual:
Change:
to:
Now still the extension
Greetings,
Dick
I found somethig that work manual:
Change:
if (!eregi("GP_upload=true", $_SERVER['QUERY_STRING'])) {
to:
if (!preg_match("/GP_upload=true/i", $_SERVER['QUERY_STRING'])) {
Now still the extension
Greetings,
Dick