Jump to content

Daniel0

Staff Alumni
  • Posts

    11,885
  • Joined

  • Last visited

Everything posted by Daniel0

  1. Your problem can be solved using AJAX.
  2. Won't work. You just need to ensure that nothing is outputted before you attempt to set your cookie or you can add ob_start() to the very top of your script.
  3. If you use the div's scrollbar it wont continue scrolling, but if you use a scroll wheel I guess it will continue scrolling. No way to "fix" that as it is supposed to do so.
  4. [quote author=AndyB link=topic=117021.msg477313#msg477313 date=1165017400] [code]<?php // nextpage.php $picked = $_POST['widget']; echo "You chose option ". $widget; ?>[/code] [/quote] Change [tt]$widget[/tt] to [tt]$picked[/tt].
  5. I'm having a hard time believing that the performance decrease is caused by the iframe and td tags, but I might be wrong. Try to make a timer that will output the total execution time and echo it in the PHP script. Then run it in all those three ways a couple of times and take the average time and then you should be able to determine if there is any decrease caused by the tags (which I doubt there is).
  6. mysql_real_escape_string() gets all the characters that causes a security risk. An important thing to note is that the characters % and _ which are considered as wildcards if combined with GRANT, LIKE and REVOKE will not be escaped so if you are going to put a string into a such query you must manually escape those characters as well.
  7. That would add extra work when adding modifications as well. There was a similar request not too long ago which was declined as well.
  8. Hmm... I think I'll need my dictionary to lookup "mince"...
  9. Merry Christmas. [quote author=redbullmarky link=topic=118718.msg485429#msg485429 date=1166193490] In the UK, it is ILLEGAL to eat a mince pie on Christmas Day. [/quote] Why? What is so special about that? (I probably miss the point since I don't know what a mince pie is)
  10. I would use getElementById('the_textarea_id').innerHTML instead.
  11. 'You' was meant as anyone in general, but I see why you misunderstood me.
  12. I remember that there was one posted that was free a while ago. Can't remember the link though. I think it was in the 'Application Layout/Design' forum.
  13. obsidian: If you do not care then why vote at all? If you vote for an election then there aren't an option called: "I do not care" or "N/A". I think the same goes for here: If you do not care, then do not vote. Edit: If you [obsidian and ober] think that there should be a N/A option, well... then there should be a 'N/A' option in every single poll in the case that somebody would like to "vote on a topic wherever they damn well please". Nice language ober, by the way. Really great example of how to talk to other people on this forum. From now on everybody should use foul language when posting.
  14. Haven't noticed the edit button? Edit: http://www.adobe.com/products/illustrator/overview.html See the "3D effects" headline. It appears you should be able to wrap a flat picture around a globe with Adobe Illustrator.
  15. Yeah, well... that was my point. I supposed you were able to figure it out yourself (which you did).
  16. What is the absolute path to your themes directory?
  17. I think you can use javascript to show it while loading the page.
  18. Daniel0

    cron vs httpd

    [quote author=thorpe link=topic=118676.msg485184#msg485184 date=1166146511] Another option is simply to have cron make a request to your scripts via the webserver. eg; [code] 20 * * * * /usr/bin/wget -O - -q http://yoursite.com/cron/job.php [/code] This uses the wget program to make a requesto to your server. Of course this may open up some security issues or unwanted results if people find (and can browse to) the scripts. [/quote] [code]<Directory "/home/scott/public_html/cron"> Order Deny,Allow Deny from all Allow from 127.0.0.1 </Directory>[/code] Now put your script in the cron folder and use this cron that thorpe said. You'll have to edit the dir to fit your setup though. Edit: Ahh... you got it to work. Well then you just got another solution there.
  19. Take a look at [url=http://php.net/mcrypt]mcrypt[/url]
  20. Looks fine to me. Consider this though: [code]<?php $clean = array_map('mysql_real_escape_string',$_POST); $query = "INSERT INTO table (f1,f2,f3) VALUES ('{$clean['f1']}', '{$clean['f2']}', '{$clean['f3']}');"; mysqli_query($db, $query); ?>[/code]
  21. Got a demo somewhere?
  22. Hmm... doesn't work. [code]http://www.m-software.de/screenshot/Screenshot.png?url=http%3A%2F%2Fphpfreaks.com&scale=3&width=1600&height=1200[/code] should give a pretty big screenshot, but it's just a small one: [img]http://www.m-software.de/screenshot/Screenshot.png?url=http%3A%2F%2Fphpfreaks.com&scale=3&width=1600&height=1200[/img]
  23. [quote author=fert link=topic=118689.msg485260#msg485260 date=1166158837] wouldn't hitting the PrtSrc button be easier? [/quote] Not if you want a screenshot in a larger resolution than your monitor/graphic card supports.
  24. Try this: [code]<?php $msg_body = null; foreach($_POST as $key => $value) { $msg_body .= "Var '{$key}': {$value}\n"; } mail('[email protected]','Worker Application',$msg_body,"From: {$name} <{$email}>\n\r"); ?>[/code] But where does $name and $email come from??
  25. Won't solve your problem, but you might consider using field names like this: [code]<input type='text' name='songname[]' /> <input type='text' name='songname[]' /> ... <input type='text' name='songname[]' />[/code]
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.