Search results

  1. Scoochi2

    discussion: php script design

    When a PHP file is executed, the whole file must be read and checked for errors. So obviously, if you keep running a large file, more and more checking needs to be done. If you organise the site into many smaller files and only run when you need to perform that specific task, much less checking...
  2. Scoochi2

    PHP Obfuscation

    PHP already has all the obfuscation you need. When it runs, PHP code is invisible, and will only output whatever you choose to output. Usually, a PHP page will look like it contains plain HTML, although it could be a picture or anything else you choose to make. The only exception is when you...
  3. Scoochi2

    ASP: Hello World !

    http://forums.x10hosting.com/programming-help/96061-asp-not-working.html
  4. Scoochi2

    how do you make a page only accessable after a certain time?

    Not at all, for several reasons... the best route to go down would be <?php $page1 = 'pages/after315.html'; $page2 = 'pages/before315.html'; if ((date('G') > 15) || ((date('G') == 15) && (date('i') >= 15))) require_once($page1); else require_once($page2); ?>Simply put, that checks if the...
  5. Scoochi2

    how do you make a page only accessable after a certain time?

    Another thing to consider is when 15:15 actually is. It is that time for you/the time the server happens to be on, or is it specifically after 15:15 for each visitor to your site?
  6. Scoochi2

    PHP help

    Where exactly have you uploaded it to. It needs to be in /public_html or /www
  7. Scoochi2

    Positioning help

    I don't fully understand... why not just get rid of the padding??? Can you link us to the source?
  8. Scoochi2

    How to create Cookies by using PHP???

    Completely not true. ob_start() will simply prevent anything being output, and instead saves everything until it is flushed. In my example I saved a string to a variable and then output that, basically performing the same function. You can get away with NEVER using ob_start, and still create...
  9. Scoochi2

    How to create Cookies by using PHP???

    simply put, setcookie() must be used before ANYTHING is output to the page. for example, the following will not work because there is a newline before the PHP engine is engaged: <?php setcookie(name,1,time()+3600); ?>The following will work however, despite it not being the first bit of...
  10. Scoochi2

    Iframe and imagemap links - anyone know?

    Your links are looking for a frame named "datamain", but you don't actually have such a frame... The iframe you have put in has an id of "datamain", but you'll need to actually name it as well. Just replace the one line in your code for iframe to the following: <iframe name="datamain"...
  11. Scoochi2

    Script Help

    What part of it do you need help with? ...keeping in mind you don't sound like you're asking for help, you're asking for someone to do it for you :D
  12. Scoochi2

    I need your help

    To elaborate, in order to open with a relative URL, the default base folder is the one that the page is in. For example, if your page is in "public_html" and an image is in "public_html/images" then in the HTML page you will need to open ''images/myimage.png". If you try to open...
  13. Scoochi2

    Need Help on a Form

    There are two quick links I can give you here. http://www.tele-pro.co.uk/scripts/contact_form/ This first one will create the PHP form for you (and does other languages as well, you choose), and you just have to upload it to your hosting. http://www.emailmeform.com/ This second one will submit...
  14. Scoochi2

    Loading checkbox[] values

    probably because if the form is created dynamically, we won't know the names of all the fields that will be used, or how many... well, not without making the action page dynamic as well. It's much easier and simpler (and more efficient) to get the results as an array, which is why checkbox[]...
  15. Scoochi2

    Date and Time Script

    What language are you using. Furthermore, do you want <DATE> and <TIME> to be something held separately or just information for the viewer? If it's just information to the viewer, you can use JavaScript to get and show their time. <script type="text/javascript"> <!-- var currentTime = new...
  16. Scoochi2

    PHP Shorthands are not working in my Site

    Actually, PHP can be run in a .htm or .html file, but it requires editing of .htacess AddType application/x-httpd-php .htm .html Add the above to a .htaccess file, save it and *bingo*! (hopefully). If you're unfamiliar with .htaccess files, create a new file named EXACTLY '.htaccess' (without...
  17. Scoochi2

    Favicon Help

    First of all, have you tried refreshing the pages after uploading the favicon? You might be looking at a cached version. Is the favicon called 'favicon.ico' and in the root directory? Also check to make sure you don't have a .htaccess or HTML pages that are looking for a favicon elsewhere or...
  18. Scoochi2

    [PHP] - Video Leeching

    Use PHP to open the URL. Use file() or file_get_contents(), depending if you prefer to search through an array or a large string. This will give you the source of the page. Next, search for the string <input id="embed_code" name="embed_code" type="text" value=" Save the rest of the line after...
  19. Scoochi2

    if()

    I disagree. I think it is better to put the execution statement on a separated line to the condition statement. Indented, of course. That way, it becomes far more clearer to distinguish the condition and statement, and to match them up. But of course, everyone works in a different way, and when...
  20. Scoochi2

    Picture of the week script

    Does your host allow you to use cronjobs? If so, set one up for a weekly run. If not, we'll have to use a pseudo-cron :) The script you want to run will be fairly simple and will do a small number of things: Look for the highest rated image file, depending on how the site works (do people vote...
Top