Forum: PHP Jan 21st, 2005 |
| Replies: 3 Views: 2,466 Do you mean cache ?
This is really a html question.
You can make the browser not cache the webpages by adding the following html meta tag within your header tags ( <head> )
<META... |
Forum: PHP Jan 17th, 2005 |
| Replies: 6 Views: 5,564 I think the use of quotes and escaping the variable within echos is for the sake of exclusivity. In the case of variables containing escaping characters or handling secure connections, you can have... |
Forum: PHP Jan 16th, 2005 |
| Replies: 5 Views: 3,533 That example would be the default 'index.php' page for your domain i.e.
http://www.domain.com/index.php
It will then be run, and depending on the subdomain you requested, it will direct to the page... |
Forum: PHP Jan 13th, 2005 |
| Replies: 6 Views: 7,415 With the If statement are you trying to compare the posted values with the variables in the config.php array ?
if so, you should try ask if the posted values are the same as those static values in... |
Forum: PHP Jan 12th, 2005 |
| Replies: 3 Views: 44,898 Well firstly to answer your question, i believe you need to alter this line and add target="_blank" within the anchor tag ( <a href...> )
<a target="_blank" href="<?php echo $PHP_SELF?>?path=<?php... |
Forum: PHP Jan 12th, 2005 |
| Replies: 5 Views: 17,515 alc: the mysql 'stuff' collects variables from the form when submitted and performs a mysql database search for records that match the submitted information. In that case, autor, text, aft and bef.... |
Forum: PHP Jan 12th, 2005 |
| Replies: 4 Views: 3,330 Well yes because its passed using the HTTP headers you can use it for anything from php to ASP to javascript etc.
When requesting a page page.html for example. the header requests it using the URL... |
Forum: PHP Jan 12th, 2005 |
| Replies: 4 Views: 3,330 Yup. its a way to pass data from one page to another. you could call it a variable but as you say its moved around by HTTP rather than php scripts temselves.
and yes it is a replacement for... |
Forum: PHP Jan 12th, 2005 |
| Replies: 2 Views: 6,123 try print $_POST['first_name']; |
Forum: PHP Dec 28th, 2004 |
| Replies: 2 Views: 11,963 If you are using php on a linux machine you can use the system function.
http://uk2.php.net/manual/en/function.system.php
Or if you are using Windows machines, you can use shell_exec function.... |
Forum: PHP Dec 27th, 2004 |
| Replies: 5 Views: 3,533 Yes you can do this.
You can simply redirect users to the correct folder.
There are two ways to do this really. the first is static. i.e. you set up instances of each domain you intend using. The... |
Forum: PHP Dec 27th, 2004 |
| Replies: 7 Views: 5,746 You could of course use sessions to maintain a users logged in period, but the deleting will need to be handled by a cron executed periodic script.
To do this you would simply need to add a tmie... |
Forum: PHP Dec 27th, 2004 |
| Replies: 7 Views: 18,724 Check the default htaccess permissions in your httpd.conf file first to make sure everyone has global access to .php files.
Then it might be worth checking that there is a guest internet user in... |
Forum: PHP Dec 10th, 2004 |
| Replies: 6 Views: 2,724 Think of a variable as a little bit of memory that you give a name, and you can store things in it.
for example:
If say, you wanted to make the php page show differnt things, depending on the... |
Forum: PHP Nov 2nd, 2004 |
| Replies: 6 Views: 4,029 In the line:
mysql_select_db ('peilife_admin') or die ("Couldn't select database");
You are selecting a database with named after your username, not the database name..
Should it not be:
... |
Forum: PHP Oct 31st, 2004 |
| Replies: 7 Views: 4,567 Why not alter the table and make id auto_increment as mentioned above.
ALTER TABLE myTable MODIFY id NOT NULL AUTO_INCREMENT,
ADD PRIMARY KEY (id);
That way you can use MySQL features and save... |
Forum: PHP Oct 31st, 2004 |
| Replies: 6 Views: 4,029 $database = "peilife_busdir"
That line requires an ; (semicolon) at the end of it.
As do these lines..
$query1 = "INSERT INTO name(busname) VALUES ($busname)"
$query2 = "INSERT INTO... |
Forum: PHP Oct 26th, 2004 |
| Replies: 2 Views: 9,102 Do you work with datasheets regularly ? Always getting .pdf files open in your browser and having to wait EONs for them to download/display ? Well here is a resolve for that most frustrating of... |
Forum: PHP Oct 24th, 2004 |
| Replies: 2 Views: 6,122 If you have done a PHP based website, chances are you have dynamic content called by variables and so on.
As many people use a main page (index.php) and use code within that page to dictate what... |
Forum: PHP Oct 23rd, 2004 |
| Replies: 3 Views: 35,518 If you are already setting the username in a cookie
e.g.
setcookie("your_cookie", $username, time()+99999999, "/", ".domain.name.com", 0);
Then you can just check it's set:... |
Forum: PHP Oct 23rd, 2004 |
| Replies: 2 Views: 8,873 Ok, this is about as simple as it gets. This is a hit counter for your page that stores the count in a simple text file of your choosing. No need for a database, MySQL or otherwise. No complicated... |
Forum: PHP Oct 20th, 2004 |
| Replies: 7 Views: 6,920 Me either till a few weeks ago ;) |
Forum: PHP Oct 20th, 2004 |
| Replies: 19 Views: 7,185 Not sure what level you are at, but php.net have done a pretty darn good tutorial for absolute beginners.
check it out: http://gr.php.net/tut.php
Also another great resource for web developers in... |
Forum: PHP Oct 20th, 2004 |
| Replies: 7 Views: 6,920 Well its a language construct rather than a function, And its more flexable using both ( and " ..
speed difference will be un-noticed on a small/non-busy site, unless he ends up getting 100k hits a... |
Forum: PHP Oct 18th, 2004 |
| Replies: 7 Views: 6,920 handy for pages generated by those dreadfull wysiwyg things naming a file bob's-page.html |
Forum: PHP Oct 18th, 2004 |
| Replies: 6 Views: 3,882 should really have a break after the default: and before }
and no real need to use _GET with $page cos switch works on gets anyways :x |
Forum: PHP Oct 18th, 2004 |
| Replies: 7 Views: 6,920 It would be easier for you to use switch.
e.g.
switch($page) {
default:
$content = "news.php";
$title = "News page/Home page";
break;
case "links": |
Forum: PHP Oct 17th, 2004 |
| Replies: 2 Views: 9,388 You wouldnt normally store the actual image in the database, rather store/fetch its name from the database and include that in a html <img src="images/<?=$image_name_here?>"> tag..
In this example... |
Forum: PHP Oct 17th, 2004 |
| Replies: 10 Views: 4,173 Well thus far the program itself works fine, although I havent tested its more fancy features like php parsing and FTP upload gadget. I will try those later on.
It is clear that some of the minor... |
Forum: PHP Oct 17th, 2004 |
| Replies: 10 Views: 4,173 Worth checking it out.
I have used many IDE's on many OS's in my time, this could have potential.
I will post back with comments shortly.
(downloading it now) |
Forum: PHP Oct 12th, 2004 |
| Replies: 2 Views: 3,847 This is a very simple statistics script that provides for services on/offline, memory info, server load averages and uptime and lastly drive info.
Its easily customised and i have usef <font> alot... |
Forum: PHP Oct 12th, 2004 |
| Replies: 2 Views: 6,318 Well like my previous snippet but completing the collection i suppose, this snippet counts how long it takes to parse the page and displays it somewhere.. |
Forum: PHP Oct 12th, 2004 |
| Replies: 1 Views: 3,285 You've seen those sites that say how many seconds it took to parse the page and how many database queries comprised the page. Well heres the database query bit... |