Forum: PHP 7 Days Ago |
| Replies: 3 Views: 231 Well without seeing your code I can only show some examples of proper usage:
<?php
$myArray=array('aa','bb','cc','dd');
while (list ($key, $val) = each ($myArray) ) echo $val; ... |
Forum: PHP 7 Days Ago |
| Replies: 1 Views: 161 Yes, first make sure ModRewrite is enabled on your server.
Then use .htaccess to rewrit urls.
Then something to this effect:
Options +FollowSymLinks
RewriteEngine on
RewriteRule... |
Forum: PHP Feb 14th, 2009 |
| Replies: 4 Views: 505 What will this "Top Secret" platform need to be able to do? |
Forum: PHP Apr 11th, 2008 |
| Replies: 2 Views: 728 Well your main problem here is trying to use javascript + php natively like this with frames.
I would look to convert this to ajax as it is much more flexible. Sort of middle ground for client vs.... |
Forum: PHP Apr 11th, 2008 |
| Replies: 1 Views: 460 paypaldev is a great and resource full site with many samples and demo's to use.
It is quite easy what you are trying to accomplish. |
Forum: PHP Apr 11th, 2008 |
| Replies: 2 Views: 467 MD5.
Here is a sample for both:
<?php
$salt1="something custom";
$salt2="blahblah";
$salt3="differentblah"; |
Forum: PHP Feb 22nd, 2008 |
| Replies: 3 Views: 506 username is root by default.
mysql_connect("localhost","root","") |
Forum: PHP Feb 20th, 2008 |
| Replies: 4 Views: 498 Depends on your look up feature.
But general idea is:
<?
$user=$HTTP_SERVER_VARS["PHP_AUTH_USER"];
?>
Welcome back <b> <?= $user ?>, We have missed you!
<br><br> |
Forum: PHP Feb 20th, 2008 |
| Replies: 3 Views: 3,693 Like this:
$script = "tar -czf $backupdir/DATABASE-$dbname.tgz $backupdir/$dbname.sql";
$results = system($script,$retval);
echo "\n CREATE TAR FILE:\n $results\n RETURN VALUE: $retval\n";
... |
Forum: PHP Feb 19th, 2008 |
| Replies: 1 Views: 447 Is this site going to be completely tutorial based?
Do you want users to be able to review the tutorials/post feedback?
Do you want the users to be able to submit their own?
You really need... |
Forum: PHP Feb 14th, 2008 |
| Replies: 11 Views: 4,868 basically you want to do something like this:
if ($_REQUEST[your_image_var] == 1) {
header("Content-type: image/jpeg");
print $bytes;
exit ();
} |
Forum: PHP Feb 14th, 2008 |
| Replies: 1 Views: 844 There are quite a few ways to accomplish your goal.
One way could be to have a cron'd job index all text into mysql then have a split | join function to store into the db.
Then when someone... |
Forum: PHP Dec 12th, 2005 |
| Replies: 1 Views: 2,182 I did not read over the entire thing there but you probably want to do something like this:
$oursql="select * from tblproducts" LIMIT $start,$end;
Then on your creation of numpages set... |
Forum: PHP Dec 12th, 2005 |
| Replies: 7 Views: 4,714 One of two things are happening.. but to correct the error you can:
output_buffering = Off
Toggle this to produce the error.
Most liekly you are using an include to like header.php" that is... |
Forum: PHP Aug 18th, 2005 |
| Replies: 3 Views: 7,316 Yes. Paste me your code and I will do it for you. |
Forum: PHP Aug 18th, 2005 |
| Replies: 6 Views: 4,060 Glad I could help I am sure they will approve of it.
If you need help coding it then let me know. |
Forum: PHP Aug 18th, 2005 |
| Replies: 5 Views: 2,512 No problem. Glad I could help. |
Forum: PHP Aug 17th, 2005 |
| Replies: 5 Views: 2,512 Well what is the error you are getting? |
Forum: PHP Aug 17th, 2005 |
| Replies: 5 Views: 2,512 two ways...
First way is to JOIN:
SELECT table1.* FROM table1
LEFT JOIN table2 ON table1.id=table2.id
WHERE table2.id IS NULL; |
Forum: PHP Aug 17th, 2005 |
| Replies: 6 Views: 6,785 I create barcodes for our MFG plant all day long..
Its very simple.
We use intermec printers & 139 barcode standard.
All you need to do is build a flat text file with all the barcode... |
Forum: PHP Aug 17th, 2005 |
| Replies: 6 Views: 4,060 Create a Movie Rental Systems....teahcers & Professor Love that stuff cause it deals with all aspects.
Youu make an ON Loan, In Stock, Out Of Stock type system with admin panel to add,edit ,... |
Forum: PHP Aug 17th, 2005 |
| Replies: 3 Views: 7,316 Put the check boxes in a form
<form method="post">
<input TYPE="checkbox" NAME="five" VALUE="5" checked>Five
<input TYPE="checkbox" NAME="ten" VALUE="10" checked>Ten
<input type="submit"... |
Forum: PHP Aug 8th, 2005 |
| Replies: 4 Views: 1,571 kiwi: I am glad you agree and I do not mean this in a negative way but do you have anything else to add to this? or was this strictly to increase your post count? |
Forum: PHP Aug 3rd, 2005 |
| Replies: 4 Views: 1,571 With careful regedits you can cahnge the service path but I would say clean install.
Remove old one. Then delete all associated files BEFORE re installing. |
Forum: PHP Jul 26th, 2005 |
| Replies: 3 Views: 1,729 Permissions. 99% sure of it.
chmod 777 the directory you are trying to upload too. |
Forum: PHP Jul 8th, 2005 |
| Replies: 8 Views: 3,360 the php_ini set flag is a good idea before adjusting the execution time for every script on the box.
But you should honestly be able to handle this in the code it self without having to even... |
Forum: PHP Jul 7th, 2005 |
| Replies: 8 Views: 3,360 That is a php.ini setting
So you have two choices...
One increase the execution time.. or two... set a counter in there to count to 10.. if you reach 10 before output conside rthe host down or... |
Forum: PHP Jul 7th, 2005 |
| Replies: 8 Views: 3,360 Just out put that to a FILE. then read in from the file
like
somecommand > somefile.txt
then |
Forum: PHP Jul 7th, 2005 |
| Replies: 8 Views: 3,360 Why not do something like this?
<?php
$string = 'REPLY FROM'; // your ping output data
if (eregi('REPLY FROM', $string)) {
echo "'$string' Host is up!";
}
?> |
Forum: PHP Jul 6th, 2005 |
| Replies: 4 Views: 2,522 |
Forum: PHP Jun 25th, 2005 |
| Replies: 4 Views: 2,522 I am not going to fix your code for you.
If I do .. you will never learn anything form it.
But have a look at this:
How to add multiple attachment to an email: |