User Profile

Collapse

Profile Sidebar

Collapse
Jeigh
Jeigh
Last Activity: Jul 16 '08, 12:25 PM
Joined: Jul 14 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Jeigh
    replied to Query Function Array
    in PHP
    Always ends up being the simplest thing haha, I'm getting some results now. The script is still throwing up some wierd errors but through all my testing the codes become very messy so I assume I'll be able to sort all that out.

    Thanks for all the help, I appreciate it.
    See more | Go to post

    Leave a comment:


  • Jeigh
    replied to Time/Date - posted
    in PHP
    You'll have to store the time in the database. Make this column datetime eg:

    Code:
    ALTER TABLE somthing ADD date_added datetime NOT NULL DEFAULT "0000-00-00 00:00:00"
    You can get the current time by usind the date(); function in PHP:

    [PHP]
    $date = date('Y-m-d H:i:s', time());
    [/PHP]

    This will give you time in the format yyyy-mm-dd hh-mm-ss. As for displaying it in formats...
    See more | Go to post

    Leave a comment:


  • Jeigh
    replied to Query Function Array
    in PHP
    Thanks for that link, I was unaware you could turn Error Reporting on for just one page and with this new host I'm with (planning to switch to GoDaddy very soon) dosn't seem to allow me access to the php.ini file from the control panel. This helps a lot.

    The error message I got was:

    Notice: Undefined index: 1 in (address) on line 26

    Line 26 being:

    $title = $parent_array[1];

    ...
    See more | Go to post

    Leave a comment:


  • Jeigh
    started a topic Query Function Array
    in PHP

    Query Function Array

    Been using PHP for a little while now but have never really looked into using functions and such thinking I didn't really need them (coupled with me be lazy). I've started a new project and have decided to get a handle on them and this tutorial:

    http://bytes.com/forum/thread632487.html

    Has helped me quite a lot, I've made some modifications and it for the most part everything seems to be working however this one problem...
    See more | Go to post

  • Jeigh
    started a topic Fading / Rotating Images

    Fading / Rotating Images

    I've been searching around quite a bit but I can't seem to find what I'm looking for. I'm after a tutorial or source code I could look at for rotating images with a fade effect. I'm looking to have somthing on my site that will rotate a few images (with the fade effect) and have for example the numbers 1, 2, 3, 4, 5 underneath, so clicking on that number would take you to the respective image. I managed to find a few tutorials for this sort of thing...
    See more | Go to post

  • Jeigh
    replied to ASP to PHP
    in PHP
    I think your problem is here:

    switch substr($cleanPo stCode,0, 2); {

    The semi colon isn't needed I believe, so try:

    switch substr($cleanPo stCode,0, 2) {...
    See more | Go to post

    Leave a comment:


  • Jeigh
    replied to Hacker Site - SQL Injection
    in PHP
    I use the following to check images:

    [PHP]
    if (!is_uploaded_f ile($_FILES['uploaded_image ']['tmp_name'])) {
    $error = "You didn't select a file to upload.<br />";

    } else {
    if ($_FILES['uploaded_image ']['size'] > $maxfilesize) {
    $error = "Your image file was too large.<br />";
    unlink($_FILES['uploaded_image ']['tmp_name']);...
    See more | Go to post

    Leave a comment:


  • Jeigh
    replied to Hacker Site - SQL Injection
    in PHP
    Thanks for the responses.

    People can upload image files on my site but they need to be signed up to do so and I didn't notice any odd usernames signed up, they all seem pretty genuine.

    Thanks for that link too I'll definetely be having a thourough read of that. I do have password information stored in my one file which is for the database connection, which is in the public_html folder, is this what I should not be doing?...
    See more | Go to post

    Leave a comment:


  • Jeigh
    started a topic Hacker Site - SQL Injection
    in PHP

    Hacker Site - SQL Injection

    Quite a while back now I had a file uploaded to my site overwriting the index, which boasted of this hackers amazing skills in defacing my site. Never did figure out how they did it, however I found my website listed on this site:

    <link removed> (Note thats the link to some sort of hacker site, the link may not be safe I don't know so just letting you know).

    Anyway, the site is in another language but I noticed...
    See more | Go to post
    Last edited by Atli; Jun 19 '08, 06:12 PM. Reason: Link removed.

  • Jeigh
    started a topic Files not Downloading Properly

    Files not Downloading Properly

    When I link to a file on my site eg: www.examples.co m/uploads/somthing.psd instead of a message coming up prompting users to Open / Save the file, it opens up in another explorer window with somthing like this:

    6C4DC4D6*ë* È#4*â„ ÿÿÿÿÃVÃX ÃYÃS„ „ÿÿÿÿé êë ìütu vwxyzƒ„…†‡ˆ‰Š’“ ”•–—˜™š¢£¤¥¦§¨© ª²³´µ¶·¸¹ºÂÃÄÅÆ ÇÈÉÊÒÓÔÕÖרÙÚáâ ãäåæçèéêñòóôõö÷ øùúÿÄ ...
    See more | Go to post

  • Jeigh
    replied to Big CAPTCHA Problem
    in PHP
    For now I've just wrote a new registration script (the other one was beyond salvagable). So at least people visiting my site can register now but there is no CAPTCHA (which for now is not a problem). If anyone still has any ideas as to why that may have happened please post or if you can recommend another CAPTCHA script I could look into I'd appreciate that.

    Thanks.
    See more | Go to post

    Leave a comment:


  • Jeigh
    replied to Big CAPTCHA Problem
    in PHP
    Hi thanks for the response, here is a snippet of code that I think will be the most relevant (the entire thing is quite long):

    [PHP]
    function make_seed() {
    // from http://php.net/srand
    list($usec, $sec) = explode(' ', microtime());
    return (float) $sec + ((float) $usec * 100000);
    }

    function rand_color() {
    global $bg_type,$rand_ func;
    if($bg_type==3)
    {...
    See more | Go to post

    Leave a comment:


  • Jeigh
    started a topic Big CAPTCHA Problem
    in PHP

    Big CAPTCHA Problem

    My host has been 'upgrading' lately and its caused me a whole mess of problems. The last of which being that my CAPTCHA form no longer works. I remember to get the CAPTCHA working it took me weeks to do (this was a long time ago too), and at some point I recall editing it in a Hex editor before finally getting it to work, basically I do not have a clue what this thing needs to do to work.

    One day I tried my registration form (without...
    See more | Go to post

  • Jeigh
    replied to PHP 4 or PHP 5
    in PHP
    Thanks for that, very helpful info.

    Just want to clarify, I'm under the impression that if I use a script that works on PHP 4 it should still work on PHP 5 for the most part. So am I able to continue to code how I always have or are there any common things that will no longer work or are deprecated.

    Thanks again.
    See more | Go to post

    Leave a comment:


  • Jeigh
    started a topic PHP 4 or PHP 5
    in PHP

    PHP 4 or PHP 5

    As I've mentioned before I'm creating a new and am trying to cover everything before I start, so I save myself a lot of work later.

    One thing that has been concerning me for a while is the upgrade to PHP 5. I've tried searching around and can't seem to find much on how differently PHP 5 works regarding coding. I assume it isn't a very smart idea to just stick with PHP 4 so my question is what exactly has changed in PHP 5 and what do...
    See more | Go to post

  • Jeigh
    replied to PHP Security 101
    in PHP
    Thanks for that pbmods, exactly the sort of thing I'm looking for. Very helpful....
    See more | Go to post

    Leave a comment:


  • Jeigh
    replied to PHP Security 101
    in PHP
    Thanks for the advice delite and the discussion of MD5 being cracked is fine, since it's pretty much what the threads about anyway.

    I'm not looking for something that will check my current coding for vulnerabilities but some sort of a list of the most common practices to follow to ensure security with PHP and manipulation of data, or the most common mistakes people make that leave their code being vulnerable.

    Thanks...
    See more | Go to post

    Leave a comment:


  • Jeigh
    started a topic PHP Security 101
    in PHP

    PHP Security 101

    I've had quite a bit of experience with PHP (I'm certainly no expert on the matter though) and lately I've been trying to find as much information on making my method of coding and manipulating database information as secure as possible.

    I'm planning on creating a site now that will use PHP and MySQL, and the information people will be storing in the database may contain personal details and such. My last site just felt a little sloppy...
    See more | Go to post

  • Jeigh
    replied to Security of user uploaded files
    in PHP
    Ah yes I see, so the /uploadedfiles folder I have to chmod so users can't access it, but by using the PHP script it will still allow them to download it?

    Thanks for all the help I appreciate it.
    See more | Go to post

    Leave a comment:


  • Jeigh
    replied to Security of user uploaded files
    in PHP
    Thanks for the response but I'm not entirely sure what you mean, would you be able to elaborate on that at all?...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...