User Profile
Collapse
-
can you help me convert it? -
-
i have made an upload .php and i need to know why this is wrong
in my config file I have the max file size set to 10. but on the website it still says 2.
here is the code in index.php
ini_set('post_m ax_size','500M' ) ;
ini_set('upload _max_filesize', '500M');
ini_set('memory _limit','500M') ;
//find real max_filesize
$max_filesize = $config['max_filesize'] * pow(2024,2);
if (!$config['upload_progres sbar']) //doesn't apply with the perl... -
Deprecated: Function ereg() is deprecated
here is the line that the error is on.
ereg('([a-z]{1,2})(-([a-z0-9]+))?(;q=([0-9\.]+))?',$lang,$fo und); -
jamietrent started a topic Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING'in PHPParse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING'
on line 4
Code:$your_data = " <?php $config = Array(); $config['w2box_title'] = "files"; ?>"; $fp = fopen("users/".$username."/config.php", "w"); fwrite($fp, $your_data); fclose($fp);
there seems to be a problem with the $ symbol
what i am doing is when you click a button it will write a certain file...
No activity results to display
Show More
Leave a comment: