Search results

  1. M

    PHP Linking?

    The best thing is to use include or include_once, as I mentioned earlier. If the form validation fails (including captcha validation), include the form, having it display which fields failed and filling the default input values with the values the user entered. If the validation succeeds...
  2. M

    help me about curl function

    The PHP curl extension is installed on all hosts. @waldopulanco29: your description of the problem isn't very clear. There is extensive curl documentation, and many tutorials on using curl in PHP. Start there.
  3. M

    php create link on users desktop

    Don't contribute to desktop clutter. Let users that want to return to your site bookmark it.
  4. M

    PHP Linking?

    What you want to do isn't clear. You can include one script (any file, really) in another using include, include_once, require or require_once.
  5. M

    Cron job not working!! help!!!

    As per the ToS, running a cron job every minute will get you suspended. You can run no more than one cron job every 5 minutes. You could fill out the minute field yourself (*/5), but a better choice for novices is to use cPanel's cron wizard. "-q" isn't a valid command line option to PHP. Give...
  6. M

    Interaction design: When to check a grouping checkbox

    The convention is only checking the group checkbox when all items are checked. Unless you have a very good reason to go against convention ("it makes more sense to me" isn't a good enough reason, because you are the minority), don't do it. The better solution (which is tricky, but possible) is...
  7. M

    Still struggling. Could use help. Wordpress related

    You can tell PHP is running in safe mode because the error message says so: "open_basedir restriction in effect". You have to upgrade to paid hosting. The problem isn't in .htaccess. Some PHP script is calling is_writeable('/'), and anything outside of "/tmp" or "/home" isn't allowed. The error...
  8. M

    Image source from URL query

    Do you want to output HTML that links to the image, or the image itself? If the former, simply generate an <img> tag with the appropriate value for the src attribute. If the latter, generate relevant HTTP headers (such as Content-type; use http://php.net/Fileinfo to get the MIME type for a...
  9. M

    String to text file

    That's basically the best way. With the Content-Disposition header, you should be able to set the proper MIME type for the content. If the string is text, set the Content-type to "text/plain".
  10. M

    SQL Injection?

    Store product information, including sample image URL, in a database. Anytime you need to generate a page that includes information about a product (such as the order & product info pages), fetch it from the DB. You only need one script for all product info pages. For more on how to do this in...
  11. M

    Python Script Not Running

    First, search the forums for that error message and the basics of running Python scripts. If that doesn't resolve it, tell us what you've done, including posting the script. It's impossible to diagnose the issue with the amount of information you've given.
  12. M

    Domain inaccessible.

    The site loads for me as of this post. Slowly, to be sure, but WordPress is known to run slowly with many plug-ins. Search the forums for more on that topic.
  13. M

    Please HELP how to use cronjob

    First try searching and read over the many threads covering running a PHP script from Cron.
  14. M

    SQL Injection?

    While adding the captcha as a separate page would make it easier for you, it will make the process clunkier for your users. Your users should come first. You don't need to rewrite every page, since you don't need a page for every product. One script can cover the order form, and another for...
  15. M

    Error in my test VB app for connecting to MySQL Database

    The server name should be "localhost", not "mysql-chopin.x10hosting.com". Other than that, you'll need to find out and post the specific error message from the MySQLException. For testing a simple app, placing the connection string in the code is fine, but for anything else you should use...
  16. M

    SQL Injection?

    Just change the files that must have dynamic content to PHP; leave those with static content alone. If you're concerned about appearance, you can support extensionless URLs with either content negotiation: Options +MultiViews or rewriting: RewriteEngine On RewriteRule \.(php|s?html)([/?#].*)?$...
  17. M

    MySQL ACCES DENIED ERROR

    There's definitely something going wrong either with the script or script configuration. The error message indicates that the script is trying to connect with default MySQL credentials, so either the connection call isn't getting the configured username & password, the script isn't creating a...
  18. M

    Is my IP adress locked?

    If it ever happens again, you can also open a ticket or try to get ahold of an admin in X10's IRC server. You shouldn't use IRC for just any problem, but for this particular problem it's sometimes the only way if you're blocked from the forums and other support sites.
  19. M

    I can't export neither procedures nor functions from phpmyadmin

    How did you create the procedure(s)? cPanel's MySQL procedure support is incomplete. In particular, users created through cPanel can't execute procedures created in phpMyAdmin, though the cPanel MySQL user should have all privileges on any database created through cPanel.
  20. M

    I think my IP got banned?

    Can you use access them if you use a proxy, or from a different network?
Top