User Profile

Collapse

Profile Sidebar

Collapse
olddocks
olddocks
Last Activity: Dec 20 '08, 07:29 PM
Joined: Nov 16 '07
Location: www.hrwebdir.org
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • thanks

    can anything be done with primary key set as auto_increment.
    See more | Go to post

    Leave a comment:


  • olddocks
    started a topic how to update mysql database with new data set?

    how to update mysql database with new data set?

    i have a strange problem. I have a massive database with primary key being autoincrement ID and other fields. The company i work with often publishes the data in excel sheet and i converted to mysql table.

    what if they make new changes to existing data? how do i update my mysql data base accordingly?
    See more | Go to post

  • olddocks
    started a topic php exec problem with unzip
    in PHP

    php exec problem with unzip

    I want to upload a zip file and then extract/unzip it. I am accomplishing this with php exec command. I am calling unzip from php exec command within a php script and it is not extracting files. why?
    [PHP]<?php
    echo exec('unzip file.zip');
    ?>[/PHP]

    i checked apache logs and it says


    It works perfectly fine when i unzip using SSH command line..
    how to fix this problem....
    See more | Go to post

  • olddocks
    replied to searching for a good php editor ::
    in PHP
    Thanks very much.

    I like Komodo IDE and PSpad. Both are very good.
    I managed to find them along with other editors and thanks to this site: free-php-editor.com
    See more | Go to post

    Leave a comment:


  • olddocks
    started a topic searching for a good php editor ::
    in PHP

    searching for a good php editor ::

    anybody know a good PHP editor with IDE?

    i am searching for a open source editor. i dont want dreamweaver or other paid editors.

    please suggest me one!
    See more | Go to post

  • just place the script in CRON job....
    See more | Go to post

    Leave a comment:


  • olddocks
    started a topic set textarea value to iframe?

    set textarea value to iframe?

    i am planning on kind of editor by replacing the textarea with iframe so that i could edit the content with rich html.

    I am facing weird problem and i cannot set the value of iframe innerHTML with the value of textarea while loading. The idea is hide the textarea after moving the value to iframe rich text editor.

    what could be the problem. here is the code

    Code:
    var myeditor; 
    
    window.onload
    ...
    See more | Go to post
    Last edited by gits; Jul 20 '12, 11:46 AM.

  • olddocks
    started a topic replace textarea with javascript?

    replace textarea with javascript?

    i am currently working on a WYSIWYG html editor with javascript. i have to convert textarea to iframe to do get the html environment to get it work as form POST.

    my questions are..

    1. can iframe submit the POST form data to script? is it form object?
    2. does anybody know how to replace those textarea with iframe?

    i am looking to code my own rich text editor which is a text area replacement.
    See more | Go to post

  • olddocks
    started a topic 777 Permissions Problem
    in PHP

    777 Permissions Problem

    i am very worried about assigning 777 permissions to anything that is uploaded via PHP script. i own a dedicated server running centos with cpanel.

    I read somewhere that assigning the apache or nobody ownership to the upload folder is a good security measure. I did try assigning nobody to the upload folder using



    It looks like not working for me. Here is what the problems i have...

    Eventhough...
    See more | Go to post

  • olddocks
    replied to PHP Forms Security
    in PHP
    thanks :) i am using GET only in querying mysql and i use only POST to insert or edit in the database.

    looks like i need to write a function though :) hmmm...

    i guess it should be something like filtering user data. can anybody post code for this?
    See more | Go to post

    Leave a comment:


  • olddocks
    started a topic PHP Forms Security
    in PHP

    PHP Forms Security

    what is the best way to secure forms in php?

    I basically have a login system with my script and what worries me most is i directly use $_GET[$var] in mysql queries?

    Any advice or suggestions related to securing forms is much appreciated :)
    See more | Go to post

  • olddocks
    started a topic HOWTO: Pull Title & Description from URL in PHP
    in PHP

    HOWTO: Pull Title & Description from URL in PHP

    i am planning to code a script in php for bookmarking. how to pull title and description from a given URL?

    Is there special functions exist within PHP?
    See more | Go to post

  • olddocks
    replied to Is it safe to allow HTML code inside PHP?
    in PHP
    thanks markus :)

    actually, i am bit worried becuase people can upload HTML files in the editor and PHP script outputting the page. Like..

    $text = <html content is stored in database>

    and a PHP file like show.php echoing the $text.
    See more | Go to post

    Leave a comment:


  • olddocks
    replied to what is mysql injection?
    in PHP
    can you shed more light on this? actually i also use forms to do various things, but dont get your point on how it can be exploited....
    See more | Go to post

    Leave a comment:


  • olddocks
    started a topic Is it safe to allow HTML code inside PHP?
    in PHP

    Is it safe to allow HTML code inside PHP?

    is it safe to allow users using a html text editor? i got open source java script based HTML editor and i am using it to allow people to type their blog and forum?

    is it safe?
    See more | Go to post

  • olddocks
    started a topic what is mysql injection?
    in PHP

    what is mysql injection?

    i heard a lot about mysql injection, dont know how actually people exploit it.

    I normally query my mysql like this...

    [PHP]select * from table where id-='$_GET[id]'[/PHP]

    is this safe way of quering the database?
    See more | Go to post

  • olddocks
    started a topic Does a login system prevent Spam?
    in PHP

    Does a login system prevent Spam?

    i am currently working on a small blog project with PHP. I have implemented a login system where users must register an account to make a blog post and comment it.

    does this necessarily prevent SPAM (like comment spam etc) ?
    See more | Go to post

  • olddocks
    started a topic Best Way to Process PHP Form
    in PHP

    Best Way to Process PHP Form

    what is the best method to process the form on the same page with PHP? How to do it?
    See more | Go to post

  • olddocks
    started a topic How to Output Messages from PHP page to another?
    in PHP

    How to Output Messages from PHP page to another?

    what is the best way to output error messages from one page to another?

    i currently send the messages to display using header() with GET



    Is there any good workarounds? or a standard way of doing it?...
    See more | Go to post

  • olddocks
    replied to web servers - why do they slow down?
    Looks like you are getting more traffic/visitors :)

    just optimize mysql and apache. There could be extra modules in apache that might slow down. Also do a check about mysql memory usage.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...