Search results

  1. marshian

    Auto down counter

    that's an easy one! it's all wrong :p change fwrite($num); to fwrite($fh, $num);
  2. marshian

    Auto down counter

    Strange, when the contents of that file are equal to "4", filesize() should return 1... try to use $number = fread($fh, 1024); instead of $number = fread($fh, filesize($file)); (in both files) EDIT: I can add loads of code to the .htaccess to be honest, but it doesn't seem to work xD
  3. marshian

    Auto down counter

    If you're using his code, it's because your file is empty @lszanto: thanks, i didn't realise you could cast stuff in php, i was just hoping the server would understand xD @wiowky: i didn't even know flock() existed o_O thanks For the .html problem, add AddType application/x-httpd-php...
  4. marshian

    Auto down counter

    1: make a text file, open it and type how many there is in stock. 2: add this to your page that has to change the number in stock <?php //Relative path to your chosen file here $filename = "stock.txt"; //Url to redirect to when there is no stock left. (full url!) $redirurl =...
  5. marshian

    HTML question

    I don't think it's possible, but there is always a solution! You have to name your submit buttons so you can see what button the user used. Then in your php, you can get that information with $_GET["submit"] or $_POST["submit"], depending on what you chose. Edit: Good point, that should...
  6. marshian

    Javascript to change iframe url

    (Very tired when writing this.) Don't ever use the same id twice, either you rename the div or the iframe, it will help you a lot if you just keep in mind you must be able to know what object you're talking about. And in your scripting, try (if you'ld keep the iframe as "menu" and RENAME THE...
  7. marshian

    PHP with .htaccess

    i think that will be hard to do with .htaccess perhaps you should try it with CHMOD 770 and create a sort of cp for the users?
  8. marshian

    Help installing a mediawiki

    that is what we were talking about the whole time... the advanced version is the less strict version. he's now requesting an upgrade.
  9. marshian

    Flash Web Page Strech to Screen Size?

    If I open that page in IE, the flash movie fits the window perfectly, if I open it in FF, there's a border on the left and right of the flash movie. this is the source of that page: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type"...
  10. marshian

    Help installing a mediawiki

    Alex, when I was looking for info about your problem, I found out shell_exec() is connected to the operator ` (as in ò, ì, à). The code $string = shell_exec("command"); is the same as saying $string = `command`; And as I said before, maybe it does work with the advanced version. (once...
  11. marshian

    Help installing a mediawiki

    It is what it says, that function has been disabled by x10 staff for security reasons. try <?php phpinfo(); ?> And you'll see this somewhere (for the intermidate version): suhosin.executor.func.blacklist passthru, leak, listen, diskfreespace, link, dl, exec, system, source, fpaththru...
  12. marshian

    About making a random image.

    Obviously a flaw in the communication ;-) But since I think the way with the directory is the best one, due to the server filters, I explained it that way, as it also explains how an image can have a normal image extension (.gif, .png etc) while it's acutally php. It's also very useful to have...
  13. marshian

    About making a random image.

    I don't think that was what Mattura ment, he seems to say that images would have some code that would execute when you view them. And of course you could just use any name for your php script, and refer directly to it (eg. script named "image.php" and your image path "yoursite.com/image.php")...
  14. marshian

    About making a random image.

    Actually you're not really tricking the browser into anything, it's perfectly normal to send headers other then text/html but yes, when the browser asks for "image.png", the server knows it's a directory and executes index.php, which sends an image.
  15. marshian

    JavaScript problem

    Are you sure you have javascript enabled? it should usually do something or give an error... Try this: <select name="cmbmonth" size="1" id="Combobox8" style="position:absolute;left:181px;top:341px;width:73px;font-family:MS Shell Dlg;z-index:17" OnChange = "Populatecmbdate(document.frmdreg)">...
  16. marshian

    Upload files script

    First of all: we might want to know more about that internal error... How to get that info: 1. Go to your cp 2. Click "Error log" under "Logs" 3. Find the right error and tell us ^^ Second, there's a tutorial on PHP and file uploads here: http://www.tizag.com/phpT/fileupload.php I...
  17. marshian

    About making a random image.

    I'm not sure I get what you mean mattura, but most people use PHP scripts to make dynamic images... It works like this: You make a directory "image.png" with all images etc you'll need for your images + an index file "index.php" (PHP has some nice functions to edit images, for more info see...
  18. marshian

    help!! coding advanced drop down menu

    You'll have to script this in javascript. Something like that menu already on the page, but with "visibility:hidden" so the user doesn't see it. Then a javascript function to set the visibility to visible when the user clicks on the button.
  19. marshian

    Hey guys! My X10hosting ads and some other scripts which i have just add to my forum

    Re: Hey guys! My X10hosting ads and some other scripts which i have just add to my fo I'm not getting any message about a tojan if I open that site, and in both IE and FF the adds are working
  20. marshian

    [php] variables

    If $war_type is based on user input, make sure it consists of legal characters ([a-zA-Z_]) or you might end up with php errors.
Top