Search Results

Showing results 1 to 33 of 33
Search took 0.01 seconds.
Search: Posts Made By: ReDuX ; Forum: PHP and child forums
Forum: PHP Jan 21st, 2005
Replies: 3
Views: 2,466
Posted By ReDuX
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
Posted By ReDuX
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
Posted By ReDuX
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
Posted By ReDuX
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
Posted By ReDuX
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
Posted By ReDuX
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
Posted By ReDuX
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
Posted By ReDuX
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
Posted By ReDuX
try print $_POST['first_name'];
Forum: PHP Dec 28th, 2004
Replies: 2
Views: 11,963
Posted By ReDuX
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
Posted By ReDuX
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
Posted By ReDuX
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
Posted By ReDuX
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
Posted By ReDuX
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
Posted By ReDuX
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
Posted By ReDuX
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
Posted By ReDuX
$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
Posted By ReDuX
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
Posted By ReDuX
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
Posted By ReDuX
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
Posted By ReDuX
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
Posted By ReDuX
Me either till a few weeks ago ;)
Forum: PHP Oct 20th, 2004
Replies: 19
Views: 7,185
Posted By ReDuX
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
Posted By ReDuX
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
Posted By ReDuX
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
Posted By ReDuX
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
Posted By ReDuX
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
Posted By ReDuX
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
Posted By ReDuX
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
Posted By ReDuX
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
Code Snippet: Simple server stats
Views: 3,847
Posted By ReDuX
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
Posted By ReDuX
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
Posted By ReDuX
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...
Showing results 1 to 33 of 33

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC