www.webdeveloper.com

Search:

Type: Posts; User: ratcateme

Page 1 of 8 1 2 3 4

Search: Search took 0.04 seconds.

  1. have a look at ffmpeg it can be used string from...

    have a look at ffmpeg it can be used string from the command line and a group of people have made a php module for it but i have never used it so can't say about that but i have used the command line...
  2. Thread: Disk cache

    by ratcateme
    Replies
    3
    Views
    823

    unless you are planning on having a very high...

    unless you are planning on having a very high user base on a slow server then this shouldn't really be necessary you should just be able to dynamically make each page for every request with no...
  3. Replies
    1
    Views
    2,088

    not really sure but check the memory limit on php...

    not really sure but check the memory limit on php (in php.ini) while opening the file you could be passing the memory limit.
    im not really sure but readfile() might be better but i dont know
    ...
  4. Replies
    1
    Views
    804

    do you have any php experience? do you have an...

    do you have any php experience?
    do you have an existing database with records already in it?
    or are you starting from scratch?

    Scott.
  5. i would advise you for test to install apache...

    i would advise you for test to install apache mysql php on your PC i use xampp on windows XP no problems it also works fine on vista

    if you mean by that that you want to upload all the individual...
  6. Replies
    6
    Views
    862

    are you meaning from this example ...

    are you meaning from this example

    if(isset($_REQUEST['test'])) $test=$_REQUEST['test'];
    because it wont get to $test=$_REQUEST['test']; if the isset returns false?

    Scott.
  7. Replies
    6
    Views
    862

    $test =...

    $test = isset($_REQUEST['test'])?$_REQUEST['test']:null;
    but it is kind stupid cause it has the null
    you could do

    if(isset($_REQUEST['test'])) $test=$_REQUEST['test'];

    Scott.
  8. try adding global $filetype_img as the...

    try adding

    global $filetype_img
    as the second line to your function or moving the line with the array of file types to inside your function

    Scott,
  9. well i assume you already have some kind of...

    well i assume you already have some kind of database to store user info in you could then say go add 2 fields to it one is either a 1 or 0 if it is a 1 the account is active if it is 0 the account...
  10. don't know if it is in vista but tasklist.exe...

    don't know if it is in vista but tasklist.exe works for me

    Scott.
  11. i have only ever run normal windows commands but...

    i have only ever run normal windows commands but try specifying the full path like

    exec("C:\WINDOWS\system32\pslist.exe",$output);
    might be a bit different for vista

    Scott.
  12. i have used xampp...

    i have used xampp on my xp pro for a while it provides apache mysql and php on a almost normal install never had any problems and should have no problems accessing the command line

    Scott.
  13. i can't see any reason i dont know of any bugs...

    i can't see any reason i dont know of any bugs with shell_exec and vista x64
    why not use exec then?
    like

    exec("pslist",$output);
    $output = implode("\r\n",$output);
    echo "<pre>"....
  14. who are you running pslist i am using xp pro and...

    who are you running pslist
    i am using xp pro and it is not there can u run it from command line on you server?
    by just typing pslist.exe in command line

    Scott.
  15. you can use $data = shell_exec("pslist"); and...

    you can use

    $data = shell_exec("pslist"); and it will run the command and $data will have all the output
    you could use the string functions to go through all the data and find the stuff you want?...
  16. Thread: Error in Php

    by ratcateme
    Replies
    6
    Views
    873

    but you are limiting the query to 2 rows right...

    but you are limiting the query to 2 rows right
    then you go

    $row2 = mysql_fetch_array( $result2 ); //get first row

    while($row2 = mysql_fetch_array($result2)){ //overwrite first row with second...
  17. Thread: Error in Php

    by ratcateme
    Replies
    6
    Views
    873

    remove $row2 = mysql_fetch_array( $result2 ); ...

    remove

    $row2 = mysql_fetch_array( $result2 );
    after the query and see what happens

    Scott.
  18. shouldn't this line $today = date("m-d-Y",...

    shouldn't this line

    $today = date("m-d-Y", mktime(date("m"), date("d"), date("Y")));
    look more like

    $today = date("m-d-Y", mktime(0, 0, 0, date("m"), date("d"), date("Y")));
    and should...
  19. Replies
    1
    Views
    528

    autosrolling page

    i have a php script that outputs a page that goes off the bottom of the page and takes about 5 mins to load.
    it produces the display line by line with about a 10 second gap between lines i have set...
  20. Replies
    2
    Views
    865

    to debug mysql query's always use ...

    to debug mysql query's always use

    mysql_query("UPDATE images SET position = $currentpos WHERE id = $rep_id && folder = $folderid") or die(mysql_error());
    your query should be

    UPDATE images SET...
  21. Replies
    1
    Views
    647

    looking at that it first check the email form a...

    looking at that it first check the email form a \r or \n (the to characters used in a new line Mac's use \r Linux uses \n and windows uses \r\n) if it has them then it is invalid because emails...
  22. you could use DATETIME fields in you database and...

    you could use DATETIME fields in you database and a query like this

    SELECT * FROM table WHERE `time` < NOW()

    Scott.
  23. Replies
    5
    Views
    789

    FROM_UNIXTIME will convert a unix time stamp (the...

    FROM_UNIXTIME will convert a unix time stamp (the number made by mktime()) to a format mysql can use for its DATETIME fields it makes a string that looks like
    yyyy-mm-dd hh:mm:ss

    Scott.
  24. Replies
    5
    Views
    789

    try $sql = "INSERT INTO `calendar` ( `id` ,...

    try

    $sql = "INSERT INTO `calendar` ( `id` , `date` , `title` , `body` )
    VALUES ('',FROM_UNIXTIME(" . $timestamp . "), '" . $_POST['title'] . "', '" . $_POST['body'] . "')"; ...
  25. Replies
    5
    Views
    789

    are you having any problems looks fine to me. ...

    are you having any problems looks fine to me.

    Scott.
Results 1 to 25 of 177
Page 1 of 8 1 2 3 4
HTML5 Development Center



Recent Articles