Grr not enough room to post it. Can anyone give me an idea of how it is possible please. If you need the code i will email it. Thanks :D
Also any links i could use to guide me threw would be good like a tutorial on how to do it. Thanks
Hiya thanks for responces - im fairley new to php and mysql but i do know a bit.
Basically i was slowley developing a social network that i can build on and eventually launch. Im kind of using it to learn php and stuff. So basically i have a login and user regiration page but like when they login it goes straight a page that everyone gets the same. Using the header(Location:) thing. What i want is like myspace everyone to see a diffreant page like there control panel but also like a profile page so they can create a url. Is there anyway i can do this. Thanks
I m trying to install a software which I bought. Every time I click the icon of the software- this message come out - "Error connecting to the server: Unable to connect to any of the specified MySQL host. I asked them for help- they said I need to check my system security settings (i.e. Norton- McAfee- AVG- etc) and make sure there are no files in the blocked lists of those programs.
The problem is- I don t use any of them. Is there another security setting inside my PC that I don t aware?
My interest is to be able to have my .txt files and/or html files load dynamically. What I have the idea of is I can create a page and have all the text- images- prices whatever load directly from my mysql file. I am interested in concepts like this since I am new to php/mysql. If you know of a different way then what I may be trying to do I am more than interested in knowing.
Hi - I am currently making a user login system. I follwed a tutorial on an about.com page. Its all great so far - i can register and it adds to database fine - when it comes to logging in its another story. I have copied the code correctly but when i try login it says
Warning: Cannot modify header information - headers already sent by (output started at /home/www/socialnetwork.atwebpages.com/login.php:7) in /home/www/socialnetwork.atwebpages.com/login.php on line 59
Warning: Cannot modify header information - headers already sent by (output started at /home/www/socialnetwork.atwebpages.com/login.php:7) in /home/www/socialnetwork.atwebpages.com/login.php on line 60
Warning: Cannot modify header information - headers already sent by (output started at /home/www/socialnetwork.atwebpages.com/login.php:7) in /home/www/socialnetwork.atwebpages.com/login.php on line 62
I will post the lines which seem to be causing probs as addition info. Anyideas? Thanks.
Here is a few lines of code which the error message mentions.
$_POST[ username ] = stripslashes($_POST[ username ]);
$hour = time() + 3600;
(This is line 59)setcookie(ID_my_site- $_POST[ username ]- $hour);
(This is line 60) setcookie(Key_my_site- $_POST[ pass ]- $hour);
//then redirect them to the members area
(This is line 62) header("Location: members.php");
Any ideas please - any help will be great :)
Hi thanks for the first 2 answers - the very first line of my page starts:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Login</title>
</head>
<?php
Then after i start my php i enter rest of the code.
does header need to go even before
<!DOCTYPE html PUBLIC "-//W3C//DTD .....
thanks - Please help its annoying me.
Thanks alot for all your help everyone - ive got it sorted - i swapperd the php and html code around.
Anyideas of how i can make it so when user loggs in they are taken to a personal page of there own - and not just a page tht is shared between all users. Please help me on this one - thanks.
When using Mysql- how do you change system values like- ft_min_word_len? I am trying to build a search but I want the search to allow words less than four letters- which is the default.
I have a 115 MB mySQL database on one of my osCommerce powered stores. The store has around 47-000 products in it. I have cached just about query I can for this store. On every page that displays a product price there are two queries that I cannot cache. It can take anywhere from 0.2 seconds to 2 seconds to run each of them. It takes about 3 seconds on average to load each page (plus download time).
I currently have this store on a vps with 256 MBs of RAM and 1% CPU time from eight 3.2 GHz Xeon cores.
Is there something I can do in the database to speed up the query times? Will upgrading to a 512 MB or 1024 MB VPS with 2% or 4% cpu time make much of a difference?
No comments:
Post a Comment