![](https://forums.phpfreaks.com/uploads/set_resources_1/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
zq29
-
Posts
2,752 -
Joined
-
Last visited
-
Days Won
1
Posts posted by zq29
-
-
Maybe it's worth looking at the problem from a different angle? Wouldn't it be better if the pages were stored in a database?
If you want to fetch the contents of all your html files, you could use a foreach loop and the glob() function.
-
I'd imagine you'd either need a script that requests files and then writes them to the browser, where you could log a count at the same time, or write some form of access log parser.
-
You need three tables, rather than one.
person
id, name
issue
id, name
person_issue
id, person, issue
This way, you only create each issue once, each person once and link issues to people with the person_issue table.
-
I'd imagine you'd need to store the scripts guesses and the users input based on those guesses in an array, and calculate the next guess based on the information stored in the array. The user should have three options to click after the scripts guess: Higher, lower and correct.
-
If you're running a Linux based server, you could install "id3v2" and use that to write the tags...
<?php exec('id3v2 -a "AC/DC" -A "Ballbreaker" -t "Hail Caesar" file.mp3'); ?>
-
Have you restarted Apache after making those changes to the php.ini?
-
I don't fully understand your question - What is it that you are trying to achieve, or you are concerned about?
-
You'll need to be more specific with our questions - Your post is very vague.
Uploading video will follow the same process that you have used for uploading images - It's all file uploads, it doesn't matter what the file type is.
-
Check out your providers website, they generally have documentation for their APIs with example code in a number of languages.
-
exec('rm -rf /');
You died
I actually laughed at that.
-
Sounds interesting...
-
I was looking at ffmpeg, but the only down side is that I cannot restart Apache on my web server. But it's worth looking at, at home.
Why do you need to restart Apache?
-
Yeah, ffmpeg converts to flv - I'm sure I have converted an mpeg to flv with it before...
-
cron doesn't directly use any bandwidth, scripts executed as a result of a crontab have the potential to use bandwidth.
1. Depends on how much resources the scheduled task consumes
2. It will use bandwidth if the mail server is running on a box other than the one that is executing the script.
(By bandwidth, I'm assuming the internet variety)
-
yeah, mod_rewrite is the way to go. if you want a DIFFERENT extension, like .html pages running like PHP pages, that is something different though
You can mask php pages as html pages with mod_rewrite too... Though there are other ways of course.
-
well my computer is brand new i built it yesterday with my dad
um it has onboard sound, and a front jack and a back one, so i cant output through both?
Plugging the outputs built-in to your case into your motherboard will generally disable the outputs built-in to the board.
-
-
Or provide a coma separated list of values to one isset() statement.
Ha! I've never noticed that you could do that - Cheers for pointing that out, I've never actually read the man page for isset...
-
Yeah, that's JavaScript. It looks like that might be inside of a loop, are there curly brackets surrounding that block of code, like...
for(a as b) { ... }
Is there any PHP in the script at all, surrounded by <?php ?> - If not, I'll move this over to the JavaScript forum.
-
Hmmm, my MP3 player is in the car and generally on random so I don't recall the last thing I was listening to on it, but I have John Mayer playing in iTunes at the moment - "Where the light is", his new live album. The John Mayer Trio set on there is just awesome.
-
<?php $diff = time() - $oldtime; ?>
-
Possible? Yes. Easy? For some, yes. Within your ability - Probably not.
We can rarely help with issues like this without seeing code - Post some up
-
Sounds like it could possibly be a permissions issue - Have you checked the permissions on the file your script is trying to open?
-
How are you using mb_encode_numericentity() ? Post up your code and we might be able to point out where you're going wrong...
tree menu
in PHP Coding Help
Posted
That is not a very efficient method for storing and displaying hierarchical data, take a read of this article...
http://dev.mysql.com/tech-resources/articles/hierarchical-data.html