Forum: PHP 15 Days Ago |
| Replies: 3 Views: 217 This cannot be done in PHP,
You need to open the source code of your player (.fla) and edit it in there.
The only thing you could do in PHP is stop the whole player from loading but the MP3 won't... |
Forum: PHP 18 Days Ago |
| Replies: 7 Views: 292 I notice that your net-bios is chrysanthemumwolf-laptop
If you are using a laptop for a testing server rather than a production server try XAMPP. You will find it much easyer... |
Forum: PHP 21 Days Ago |
| Replies: 4 Views: 192 Yes but
1) The comment count will be displayed on search pages (So calculating that for each result would slow page load and put the server under even more strain)
2) If thousands of people are... |
Forum: PHP 21 Days Ago |
| Replies: 4 Views: 192 Yes I know I can do that but there are two reasons why I wouldn't:
1) The comment count would be displayed on the search results as well so it would considerably slow search page loading down and... |
Forum: PHP 21 Days Ago |
| Replies: 4 Views: 192 Hi guys,
So I am developing a website which will allow users to comment on things. As part of this I need to display a comment count and I wanted to know what you thought was the best way of doing... |
Forum: PHP 21 Days Ago |
| Replies: 1 Views: 212 When using PHP for blogging, go for Wordpress (The support is much better on that system and its much easier to customize) |
Forum: PHP 23 Days Ago |
| Replies: 5 Views: 236 I would try
$a = 08;
print($a);
or use a string
$a = '08';
print($a); |
Forum: PHP 23 Days Ago |
| Replies: 2 Views: 196 use the include(); || require(); functions to reduce your file sizes, split things up. Put functions in there own files etc. |
Forum: PHP 24 Days Ago |
| Replies: 2 Views: 201 Firstly be more specific (Explain your problem more clearly)
Secondly I was under the impression that XAMPP doc root was
/xampp/htdocs/
but I may be wrong |
Forum: PHP 29 Days Ago |
| Replies: 5 Views: 447 OK it was a whole lot simpler than I though:
All I have to do is convert to Base32 so my functions are
function id_encode($ID) {
$Hash = base_convert($ID, 10, 32);
return $Hash;
}
function... |
Forum: PHP 31 Days Ago |
| Replies: 5 Views: 447 You have the right idea but I need it to convert an possibly infinite number to a string like aYnqW |
Forum: PHP 31 Days Ago |
| Replies: 5 Views: 447 Hi,
I need to create a function to shorten a numerical ID to a string of letters
E.G.
echo encode_num('1'); //Outputs a
echo encode_num('3'); //Outputs c
echo encode_num('26'); //Outputs z... |
Forum: PHP Nov 7th, 2009 |
| Replies: 5 Views: 339 All those players are open-source so you can download the source ActionScript 3 files and edit them to your liking, i managed to edit that to get its souce files from an XML source (Dynamicaly)
If... |
Forum: PHP Nov 6th, 2009 |
| Replies: 5 Views: 339 It would need to be done in Flash, not Javascript. I am working on a similar project and my player is roughly based on the source of this
http://flash-mp3-player.net/ |
Forum: PHP Nov 3rd, 2009 |
| Replies: 8 Views: 781 Not 100% sure what you mean but if you are in the file
/var/www/html/page/index.php (Local/On server)
and you are trying to access a file
/var/www/html/include/page.php (Local)
you can use the... |
Forum: PHP Nov 2nd, 2009 |
| Replies: 4 Views: 304 OK thanx, I think I will stick with my current method of lots of salts (In the actual function I use about 5 different algorithms) |
Forum: PHP Nov 1st, 2009 |
| Replies: 4 Views: 304 Hi,
On my websites, I encrypt passwords using a combination of hashing algorithm (Which I am obviously not going to post on a forum but its along the lines of md5(substr(whirlpool($Value), 0, 7));)... |
Forum: PHP Oct 28th, 2009 |
| Replies: 8 Views: 781 Storing files as, well, files is never a good idea, if stored as PHP files and then include/require(ed) the scripts could contain malicious code. There are two options;
1,
Save the file as .htm,... |
Forum: PHP Oct 28th, 2009 |
| Replies: 8 Views: 781 Storing files as, well, files is never a good idea, if stored as PHP files and then include/require(ed) the scripts could contain malicious code. There are two options;
1,
Save the file as .htm,... |
Forum: PHP Oct 23rd, 2009 |
| Replies: 1 Views: 302 Hi,
I have created a script to upload files
$filename = $_FILES['Filedata']['name'];
$filetmpname = $_FILES['Filedata']['tmp_name'];
$fileType = $_FILES["Filedata"]["type"];
$fileSizeMB... |
Forum: PHP Oct 22nd, 2009 |
| Replies: 6 Views: 1,206 If you only have basic FTP access I don't think its possible, some admin panels will let you do it (if you have one) but other than that no ideas so sorry =( |
Forum: PHP Oct 22nd, 2009 |
| Replies: 4 Views: 287 Step 1: Get reseller hosting;
90% of reseller hosting services will let you host UNLIMITED WEBSITES with UNLIMITED BANDWIDTH at no extra cost (Although some you have to pay for your domain names but... |
Forum: PHP Oct 22nd, 2009 |
| Replies: 5 Views: 300 Not 100% sure what you are trying to do but mysql(i)_insert_id() can get the primary key from the last insert statement
http://php.net/mysql_insert_id
http://php.net/mysqli_insert_id (If using... |
Forum: PHP Oct 22nd, 2009 |
| Replies: 5 Views: 300 Not 100% sure what you are trying to do but mysql(i)_insert_id() can get the primary key from the last insert statement
http://php.net/mysql_insert_id
http://php.net/mysqli_insert_id (If using... |
Forum: PHP Oct 22nd, 2009 |
| Replies: 6 Views: 1,206 Several ways to run a PHP script outside browser:
CLI (Command Line Interface)
Call your script like #php /path/to/your/script.php from terminal/CMD
Telnet/SSH (Same as above)
Crond
On *NIX... |
Forum: PHP Sep 26th, 2009 |
| Replies: 4 Views: 379 Thanks for the suggestion but same error again :( |
Forum: PHP Sep 26th, 2009 |
| Replies: 1 Views: 253 2 ways to do this
Option 1, as you said, edit the php.ini file
however from what you were saying this may be easyer
at the start of the file that handels the upload (Not the one with the form on)... |
Forum: PHP Sep 26th, 2009 |
| Replies: 4 Views: 379 Hi,
I am having a problem with my PHP mail function. I am trying to send an email from user@site.com. This code is fine:
mail($to, $subject, $body,
"From: user@site.com\n" .
... |
Forum: PHP Sep 26th, 2009 |
| Replies: 2 Views: 250 Due to the way the HTML file selector works it is not possible to do this through only HTML/PHP
However...
It is possible through Flash
There is a brilliant up-loader here - http://swfupload.org/... |
Forum: PHP Sep 16th, 2009 |
| Replies: 3 Views: 359 There are a few options
1st would be JoomlaXplorer if you are running a Joomla system
This is a very good method of editing files and includes pritty syntax highlighting which makes it much easyer... |
Forum: PHP Aug 12th, 2009 |
| Replies: 4 Views: 240 See the contents of your variable with
print_r($row);
This prints out all the values in an array |
Forum: PHP Aug 12th, 2009 |
| Replies: 3 Views: 340 $Escaped = mysql_real_escape($String);
or
$Escaped = mysqli_real_escape($Connector, $String);
(Depending on connector used) |
Forum: PHP Aug 5th, 2009 |
| Replies: 3 Views: 296 If you use Dreamweaver it can create them for you (Spry>Menu) but this is realy much more to do with HTML, CSS and Javascript than PHP |
Forum: PHP Aug 5th, 2009 |
| Replies: 4 Views: 446 Image magik is a command line tool so it gets its own little "lump" of memory whereas gd runs of the memory already given to PHP. There will be now difference in quality HOWEVER magik is faster and... |
Forum: PHP Jul 31st, 2009 |
| Replies: 5 Views: 718 You meen the URLs look like
index.php?ID=1251341234
Etc. |
Forum: PHP Jul 31st, 2009 |
| Replies: 5 Views: 463 This is nothing to do with PHP, its all to do with the browsers trying to "URL Encode" the strings. |
Forum: PHP Jul 31st, 2009 |
| Replies: 4 Views: 446 For doing something like this you should realy look into imagemagik etc. as GD is very CPU intensive and lower quality |
Forum: PHP Jul 31st, 2009 |
| Replies: 6 Views: 531 But TommyBs, that will be the first 50 charicters. I would do something like this
<tr>
<td bgcolor="ffffff" width="400" valign="top"><img src="mainpic.jpg"></img></td>
<td bgcolor="ffffff"... |
Forum: PHP Jul 31st, 2009 |
| Replies: 2 Views: 230 Well in that expression it meens if it fails to connect to the database (IE the function returns a FALSE value) it will run testFun(); Probably the most common use in that format is
... |
Forum: PHP Jul 30th, 2009 |
| Replies: 4 Views: 259 Please correctly read my code, the lines added were
$msgBody="Name: $name\n BNameEmail: $bname\nAdd: $add\n $email\n\n Message:$message" mail("paul.white1978@hotmail.com","Email Subject ",... |