Jump to content

igor berger

Members
  • Posts

    288
  • Joined

  • Last visited

    Never

Posts posted by igor berger

  1. Hi, guys sorry, I have not been here for a while but been involved i SEO and Social Media! I have a few clients who need a developer for 1. Blogger Blog and 2. Word Press CMS.

     

    The Blogger Blog is for a Web Industry leader, and you can get paid or get a  PR post. "Very high profile"

     

    The Word Press CMS is to create some simple pages with a few PHP forms! So CSS templates knowledge is a must!

     

    I will be working as a consultant on the projects, and will introduce you to the clients directly! You must be an experienced developer with a resume of finished projects.

     

    Please PM me if you are interested! As a developer myself I know what it is about, but I am too busy in social media and consulting clients.

     

    I hope a few of you will be interested in working with me.

     

    Thank you,

    Igor

  2. Sorry for coming back late on this. Now that I think about the table was destroyed, and I got some error that the table cannot be accessed. When I looked at the table there were no fields configured. It was ripped apart, sort of. Maybe it was some MySql bug, because if it was an injection, the table would have been truncated or dropped.

     

    I do not have the exact error code! What do you think?

  3. Recently a session database table was destroyed on my phpBB forum!

     

    I was able to restore the table from an earlier database dump.

    I changed the databade user permissions not to allow DROP, this is a temporary hack at best.

     

    I am consern that a hacker can be more sofisticated next time and delete database records.

     

    1. Any suggestion to preventetive methods that can be used to prevent attack on the MySQL database?

     

    I have noidea how this could have happened! There are no hidden Worms or Trojans on my server account, although it is a virtual server, so could have been attacked from another account on the server?

     

    Changing the password will also help..:)

     

    Any comments are welcomed.

     

  4. Sorry guys, this syntax is new to me, how is the $form echoed?

     

    Also what does period = means?  $add1 .=

     

    Thank you.

     

    $sql = "SELECT * from programmes";
    $result = mysql_query($sql, $conn) or die(mysql_error());
    
    while($row = mysql_fetch_array($result))
    {
    $add1 .= "<option value='$row[programe_name]'>$row[programe_name]</option>";
    $add2 .= "<option value='$row[no_of_semesters]'>$row[no_of_semesters]</option>";
    }
    
    $form = "
    <body>
    <form action='studentregistrationform.php' method='post' enctype='multipart/form-data'>
    <td>Programe:</td>
    <td>
    <select name='programe'>
    $add1
    </select>
    </td>
    </tr>
    <tr>
    <td>Semester:</td>
    <td>
    <select name='semester'>
    $add2
    </select>
    </td>
    </table>
    </form>";

  5. echo <<<END

     

    END:

     

     

    Is supported in PHP4, I use it in all my scripts.

     

    Just make sure there are no blank spaces at the end of each syntax command or you will get an eror.

     

    An when I say make sure, I mean put your mouse over at the end of END and slide it to the right, this are blind blank spaces, you cannot see them but they may be there. So when I copy paste echo <<<END I hit return at the end of END to make sure there is only a carage return charcter there.

     

    But you welcome to do as you like in terms of how you code display your PHP, just it makes it hard to debug when you use short hand...

  6. Honestly it is very hard to debug short hand PHP.

     

    I recommend to you for best coding practices to use.

     

    echo <<<END

     

    HTML code

     

    END;

     

    Make sure their are no spaces after each command on the command line.

     

     

    Clean up your code and it will be easy too check what syntax is missing what!

     

    You will also find this useful for modifying it later, adding new stuff.

  7. Whose images are you trying to show?

     

    http://flash-portal.org/fpslay/codedfp/po/tempimages/layout.jpg

     

    This image is not on your server.

     

    Are you trying to load curl_init url right? you need to save the content to a temporary file, than add the path to the images in that file, then display it in a frame as html file, otherwise it will display the page without the relative path. You micht be able to manipulate the buffer adding the path to it and then displaying it on your origanal path without frames.

     

    Try it out, and refer to php.net for reference, I will give it a look later.

  8. Actually you may not need touse TLD, just use parse_url() to get the host name, take a look will need to test.

     

    I needed the TLD url parser script because I needed to seperate the subdomain from domain, but in your case you just need to find out the hostname and the path, so parse_url should work for you...just check for sheme and www before parsing or you will have bad results.

  9. Exactly be responcible coder...

     

    And I did read the thread.

     

    Just put a time out mechanisem not more that 3 times an hour or something.

    Dnsstuff.com does that...

     

    If you want to take care of the broken pictures, you will have to get the absolute url and join the domain name and path to it.

     

    Check out how my url extracter on phsdl works, it uses TLD table to parse the url...

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