Jump to content

jguy

Members
  • Posts

    23
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jguy's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. You can use "nslookup": Here's an example: exec("nslookup -type=A " . $reverse_ip . "." . $dnsbl_list . ".", $lookup);
  2. Sure can...however you will need to create the "front page" with a little php magic. After that, have seperate stores link off there. Are you doing the store yourself? OR if you're linking to other sites...that link I provided you is OVERKILL. Be a little more elaborate....
  3. Not sure how to easily do this in php, BUT if your .php scripts run on a Linux/*nix machine (I see it's windows based in the code -- however, don't know if windows cmd line can perform the following), you can use *nix's grep -A NUM syntax from the exec() function. the -A NUM tells grep to display (or pipe) all of the text after a certain line. There is a windows version of grep, http://www.wingrep.com/download.htm. With that installed you can prepare the file before trying to read it into php with AT/CRON jobs and then do your thing in php. Now, if you solely want to use php, then you're going to have to store the file into an array of some sorts (maybe) and then parse out only the data you need. Maybe something I've provided will help, maybe not... ;-) ps: the exec() function can be ref'd here: http://us2.php.net/function.exec
  4. $data = mysql_fetch_array($result); isn't going to work. All you'll get is "resourceID#1 or something..... You'll need to iterate through your $data array to get the row value for your chart. i.e.: while ($row = mysql_fetch_array($data)){ $data = row[0]; } Then: $graph->setData($data); Might work....haven't used this class b4, so it's just a guess.
  5. I use this one all of the time. Works Great! http://www.oscommerce.com/
  6. The php.ini file itself is a great place! Nicely commented.
  7. First, I would check upload_max_filesize in my php.ini file. Here's a good link: http://www.radinks.com/upload/config.php
  8. to make things really sweet and simple as possible, if you are using MySQL, you can use phpMyAdmin to do this with a CSV really easily.
  9. do a foreach loop to build the list
  10. YES!!!!!!!!!!! something like: $sql = "CREATE TABLE mytable( partno CHAR(10) NOT NULL, descript CHAR(60) NOT NULL, cost DOUBLE(10,5) NOT NULL, user CHAR(15) NOT NULL, modelno CHAR(20) NOT NULL, PRIMARY KEY(partno))"; $result = MYSQL_QUERY($sql) or die ("Invalid create");
  11. Make 100% sure that you have no HTML tags above this code: (In other words): <HTML><HEAD></HEAD> <BODY> <?PHP $User = $_POST["Username"]; $Password = $_POST["Password"]; $sql = "Select * FROM `Account` WHERE `Username` = '$User' AND `Password` = '$Password'"; if (mysql_num_rows($result) >"0") { header("location: http://www.Yahoo.com"); echo 'Login Details accepted, you are now being forwarded to the main page...'; } if (mysql_num_rows($result) =="0") { echo 'You are now being forwarded to somewhere else; header("location: http://www.bbc.co.uk"); } ?> </BODY> </HTML> Any HTML tags before this will cause the header to function improperly.
  12. Maybe I understand your question, not 100% sure though, but here's a try. I think powerpoint has a built in function that will allow you to create a presentation and export it to a web site (HTML or Flash). I have some things to say about this, though. Unfortunately, M$ did a terrible job with the export (IMHO) function within powerpoint. The resulting pages are almost completely incompatible with all web browsers except for Microsoft's Internet Explorer. There is also another option. Opensource OpenOffice is a free office system comparable to M$ Office. Open Office can also edit/export your M$ office docs as well! Now, the good news is, OO can convert them to REAL, cross-browser compatible HTML pages and Flash. Again, I'm not sure if this is what you're asking, but maybe it'll help.
  13. Dude, There's a file in there, README that will tell you what to do. Also there is some nice docs on the web site as well. Simply put, you untar/unzip it in your web dir and go from there.
×
×
  • 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.