Jump to content

chopficaro

Members
  • Posts

    46
  • Joined

  • Last visited

    Never

Posts posted by chopficaro

  1. thanks to your advice here i had successfully uploaded a csv file into a mysql database about a week ago in phpmyadmin with no errors, on my wamp server that seems to be working almost perfectly

    but the file has just gone from 1000 lines to 3000 lines, and ive tried it again and i got the error

    MySQL server has gone away

    in phpmyadmin on my attempt to import it

    i looked the error up and some guy says it usually means the server has timed out, but i dont believe this because i get the error very quickly on the import

    does anyone have another theory about what this error might mean, or a solution?

    thanks

  2. im trying to make an art gallery site for my sister with free hosting, i need upload_max_filesize to be at least 3mb

    ive tried many free hosting services and they are all 1.5mb

    ive tried changing it with .htaccess files and php.ini files, seems the free hosts are cracking down on that stuff

    does anyone know of a free hosting service that has at least 3mb upload_max_filesize? or perhaps someone knows of a service where it can be changed with php.ini files or .htaccess files

  3. im trying to make an art gallery site for my sister with free hosting, i need upload_max_filesize to be at least 3m

    ive tried many free hosting services and they are all 1.5m

    ive tried what these guys say

    http://www.openg.info/entry/php-cpanel-change-upload-max-filesize-cpanel-access-php-ini

     

    which is put this in htdocs:

     

    .htaccess

    #Enables mod_rewrite, otherwise all Rewrite directives below will not work
    RewriteEngine on
    #Activates php.ini config located in main folder to work also recursively for all subfolders, obviously replace your_cpanel_user with your full path, you find it in cPanel home page on the left it's called 'Home Directory'
    suPHP_ConfigPath /home/vol2/20x.cc/20x_6657899/public_html
    

    php.ini

    upload_max_filesize = 3M
    post_max_size 8M
    memory_limit 128M
    max_input_time -1
    

    which just gives me a 404

     

    and ive tried running this, and it gives me the same old 1.5m every time

    index.php

    <?php
    phpinfo();
    ini_set("upload_max_filesize", "3M"); // Think that's right...
    phpinfo();
    ?>
    

  4. i have a question about how relative links work

    i went to a particular website and saw that i was 2 subdirectories deep, that is i was at www.blabla.com/bla/bla/page

    then i looked at the source code of the page and saw that the source of an image was src='/images/soso.png'

    so one would expect that the full address of this image was

    www.blabla.com/bla/bla/images/soso.png

    but it wasn't!!! it was at

    www.blabla.com/images/soso.png

    this is not how these links usually work.

    somehow, the browser knew to use the root directory, instead of the current subdirectory of the page. how did it know?

  5. A few months ago I knew next to nothing about web development. I then watched like 1000 hours of tutorials and was still a n00b. It was in building the sites and asking questions here and in some other sites that I was able to crack the shell of my egg and spread my wings. I cannot express the depth of my gratitude to those who helped me, but I've at least linked the sites and listed your names in the links section of my resume site. Take a look at what your teachings have produced:

     

    http://yankeescreen.000space.com/

    http://patrickallard.000space.com/

     

    tyvm

  6. this:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Patrick Allard</title>
    </head>
    <body>
    <p>html working</p>
    <?
    include_once 'geshi.php'; 
    $file = file_get_contents('/samples/actionscript/firebutton.as', FILE_USE_INCLUDE_PATH); 
    echo $file;
    $language = 'actionscript 3';
    $geshi = new GeSHi($file, $language);
    echo $geshi->parse_code();
    ?>
    </body>
    </html>
    

    is producing this:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Patrick Allard</title>
    </head>
    
    <body>
    <p>html working</p>
    <pre class="actionscript3" style="font-family:monospace;"> </pre>
    </body>
    </html>
    

    it should have at least echoed the file back, even if im not doing the geshi class correctly, but i am pretty sure i am. i know the directory of firebutton.as is correct, and im pretty sure i put everything that geshi needs where it should be. i unpacked it so that geshi.php is in the same directory as my script, along with the folders it came with. if you want to check my directorys go here:

    http://patiscool.000space.com/pats%20resume%20site%20v1.4/actionscript.php

    i have directory listings enabled so u can go up a directory and check.

     

  7. ive got a resume web site and i want to let my viewers click on a link to a particular code sample of mine to read. ive got .as files, .cpp files, .h files, .js files, ,php files, u name it, but they're all just text. now i tried just linking the user to the unaltered file and that was buggy, and i also tried pasting the code into MS word and saving it as an html file, but that was buggy too, they couldn't get the indents right. is there some software out there that converts text files into readable html with all the indenting done correctly?

×
×
  • 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.