TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 11-17-2007, 11:36 AM   #1 (permalink)
The Acquainted
 
Join Date: Sep 2007
Posts: 126
Thanks: 4
Sam Granger is on a distinguished road
Default dl() - been thrown out of latest PHP version, help!

Ok, since dl() has been "fixed" in the latest build, what ways are there to get the same functionality as previously was possible?

Looking forward to responces. :)
Sam Granger is offline  
Reply With Quote
Old 11-17-2007, 01:01 PM   #2 (permalink)
The Frequenter
Prolific Welcomer Upcoming Programmer 
 
Join Date: Sep 2007
Posts: 360
Thanks: 24
Haris is on a distinguished road
Default

http://php.net/dl

Quote:
Note: As of PHP 5, the dl() function is deprecated in every SAPI except CLI. Use Extension Loading Directives method instead.
http://www.php.net/manual/en/ini.core.php#ini.extension

Read the notes always, nuff' said!
Haris is offline  
Reply With Quote
Old 11-17-2007, 01:07 PM   #3 (permalink)
The Acquainted
 
Join Date: Sep 2007
Posts: 126
Thanks: 4
Sam Granger is on a distinguished road
Default

But doesnt that require you adding the file you want to load to php.ini?
Sam Granger is offline  
Reply With Quote
Old 11-17-2007, 01:22 PM   #4 (permalink)
The Frequenter
Prolific Welcomer Upcoming Programmer 
 
Join Date: Sep 2007
Posts: 360
Thanks: 24
Haris is on a distinguished road
Default

Quote:
Originally Posted by Sam Granger View Post
But doesnt that require you adding the file you want to load to php.ini?
Yes, it does. :)

If you have a host which allows you to edit php.ini paramters, you can modify php.ini parameters through .htaccess.

http://www.karakas-online.de/EN-Book...arameters.html
Haris is offline  
Reply With Quote
Old 11-17-2007, 01:24 PM   #5 (permalink)
The Acquainted
 
Join Date: Sep 2007
Posts: 126
Thanks: 4
Sam Granger is on a distinguished road
Default

Quote:
Originally Posted by Haris View Post
Yes, it does. :)

If you have a host which allows you to edit php.ini paramters, you can modify php.ini parameters through .htaccess.

http://www.karakas-online.de/EN-Book...arameters.html
Well, thats the problem you see :(

Is it impossible to get dl() to work without htaccess or editting php.ini? Any methods around it?
Sam Granger is offline  
Reply With Quote
Old 11-17-2007, 01:29 PM   #6 (permalink)
The Frequenter
Prolific Welcomer Upcoming Programmer 
 
Join Date: Sep 2007
Posts: 360
Thanks: 24
Haris is on a distinguished road
Default

Quote:
Originally Posted by Sam Granger View Post
Well, thats the problem you see :(

Is it impossible to get dl() to work without htaccess or editting php.ini? Any methods around it?
Can you explain what are you trying to do? :)
Haris is offline  
Reply With Quote
Old 11-17-2007, 01:36 PM   #7 (permalink)
The Acquainted
 
Join Date: Sep 2007
Posts: 126
Thanks: 4
Sam Granger is on a distinguished road
Default

Load a loader - however, i do not have access to php.ini nor can I go down the .htaccess rule.

My script cannot work without this loader. :(
Sam Granger is offline  
Reply With Quote
Old 11-17-2007, 02:25 PM   #8 (permalink)
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

Depending on your host's configuration, you may be able to place a php.ini file in your web root folder with your desired settings. This ini should (again, if your host allows) overrule the settings in the main ini file. At least, that's how my shared hosting provider works.

You don't need to copy the entire ini file, just the bits you need. E.g.;
Code:
extension = my_custom_extension.so
Salathe is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 06:30 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design