www.webdeveloper.com

Search:

Type: Posts; User: Dudsmack

Page 1 of 9 1 2 3 4

Search: Search took 0.02 seconds.

  1. Multiple Foreign Keys Referencing One Column?

    Is it not possible to have multiple foreign keys referencing the same column in one table? I keep getting 'ERROR 1005: Can't create table (errno: 121)' on MySQL 5.5

    For example:


    CREATE TABLE...
  2. Looking for backup tool - From remote linux to windows

    Looking for a backup tool that runs in windows and can connect to a remote mysql server (linux) and preform regular, automated backups.
  3. Replies
    3
    Views
    2,240

    Sorry, I should have been more specific. I have...

    Sorry, I should have been more specific. I have the following:



    ini_set('log_errors', TRUE);
    ini_set('error_log', ROOT. 'logs/'. date('Y-m'). '.log');
    ini_set('error_prepend_string',...
  4. Replies
    3
    Views
    2,240

    error_prepend_string to log file

    Is there anyway to get the directive error_prepend_string to output to the log file (upon an error) and not the screen?
  5. Looking for help finding remote desktop software

    My job requires the management of a couple of different offices each with a handful of computers. I'm tired of driving to the offices for simple fixes and am looking for ways to do it remotely.
    ...
  6. Replies
    4
    Views
    2,283

    It looks like there is a separation whenever...

    It looks like there is a separation whenever there are 2+ spaces. It also appears there is no such thing as an empty column.

    I'd start w/ trying something along the lines of:



    $fileName =...
  7. Replies
    7
    Views
    2,048

    Are you specifying the "admin" directory in...

    Are you specifying the "admin" directory in addition to the filename?



    include_once( 'admin/admin_videos.php' );
  8. Look at JavaScript - particularly image maps.

    Look at JavaScript - particularly image maps.
  9. If done correctly, there should be a VERY low...

    If done correctly, there should be a VERY low probability of a collision - even for a site that receives thousands of hits a month.



    This also depends on the custom handler.
  10. Replies
    2
    Views
    1,774

    Please format your code in the future, eg: ...

    Please format your code in the future, eg:


    <?php

    if( !function_exists('findsysfolder'))
    {
    function findsysfolder($fld)
    {
    $fld1=dirname($fld);
  11. that worked - thanks!

    that worked - thanks!
  12. Regular Expression Woes - Extract key/values

    Have strings, such as:


    $s = "name:example;param1:value;param2:value2;";


    Want to get an array of the array[key] = value.

    Here's what I'm trying to use:
  13. Replies
    8
    Views
    4,369

    Is there a PDO equiv?

    Is there a PDO equiv?
  14. There are all types of mysql-based geolocation...

    There are all types of mysql-based geolocation scripts out there. You could easily set up your own server to receive a zip code and output the lat/long.
  15. Thread: URL to PDF

    by Dudsmack
    Replies
    2
    Views
    989

    In my experience TCPDF is the best library to...

    In my experience TCPDF is the best library to generate PDFs in PHP. But it isn't going to be good enough to convert just any url to pdf - you're going to have to convert all kinds of css/2 into html...
  16. Replies
    4
    Views
    940

    Yes, you would use mod_rewrite. Google for...

    Yes, you would use mod_rewrite. Google for tutorials:

    http://www.elated.com/articles/mod-rewrite-tutorial-for-absolute-beginners/
    http://www.workingwith.me.uk/articles/scripting/mod_rewrite
  17. Replies
    2
    Views
    817

    Getting a blank page sounds like php is...

    Getting a blank page sounds like php is encountering an error that is being suppressed.

    Add the following to the start of the script(s) and see if it shows anything:
    ...
  18. Replies
    4
    Views
    3,272

    Why are you regenerating the id upon every visit...

    Why are you regenerating the id upon every visit to a restricted page? Not only does it cause problems with AJAX calls but it creates havoc when opening pages in new tabs/windows.

    I highly...
  19. Replies
    1
    Views
    715

    This should cut down on any stupid bots you may...

    This should cut down on any stupid bots you may get submitting things to your page:

    I'm assuming the referring page that POSTs is part of the same website. On the "contact us" (or whatever it's...
  20. Replies
    2
    Views
    761

    Error: The image is too wide. It must be

    Error: The image is too wide. It must be <= 400 pixels in width.
    Error: The image is too tall. It must be <= 200 pixels in height.

    Why not offer a re-size?
  21. I highly suggest using cURL. Something along the...

    I highly suggest using cURL. Something along the lines of:



    function fetch_url( $url )
    {
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_USERAGENT, USER_AGENT );
    curl_setopt( $ch,...
  22. Replies
    1
    Views
    916

    http://www.vbulletin.com/forum/showthread.php?3440...

    http://www.vbulletin.com/forum/showthread.php?344035-Create-a-custom-PHP-page-in-vB-CMS
  23. Replies
    1
    Views
    1,592

    Subdomains in .htaccess

    I use .htaccess to add "www." to the front of the domain name if it is not present, via:



    # Add a leading www to domain if one is missing.
    RewriteCond %{HTTP_HOST} !^www\.
    RewriteRule ^(.*)$...
  24. Replies
    6
    Views
    890

    Simple answer: Yes, it can be done. This is...

    Simple answer: Yes, it can be done.

    This is best done using AJAX - which is going to have a learning curve to it.

    I recommend finding a javascript library (I recommend jQuery) that has strong...
  25. Replies
    3
    Views
    1,438

    I'm assuming you have mod_rewrite installed -...

    I'm assuming you have mod_rewrite installed - see: http://articles.sitepoint.com/article/guide-url-rewriting

    Something like:



    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule...
Results 1 to 25 of 215
Page 1 of 9 1 2 3 4
HTML5 Development Center



Recent Articles