[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead [phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead [phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead [phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead [phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead [phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead [phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead [phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead [phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead [phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead CareersNG • View topic - building dynamic web pages using PHP and MySQL.(tutorials)
CareersNG
Career Development for Nigerians ... A Knowledge Sharing Forum!
Hello all,
I just start something on building dynamic pages with php and mysql .This post shall be very long, and I would be updating as we all move together.
Soon you will know just how easy it is to build dynamic web pages using PHP and MySQL. Really, PHP and MySQL is easy to learn, and I hope this tutorial will help you realise that .
Of course this tutorial is not perfect. So if you have any critiques, question, problem or suggestion please let me know.
But before we get started there are certain things we have to install Apache PHP and MySQL .In case you haven't installed the trio yet don't skip this part.The trio are pre installed with linux(optional). This part explains about installing Apache, PHP and MySQL on Windows .
we continueeeeeeeeee from here
Hello x-2-x
I acknowledge the typo error in the code.
As for the first questions the double quotes " is quite different from the single quotes normally the single quote is used for a simple string but the challenge with it is that if you have to used it with string that involves single quote you have to escape it with a back slash while using the double quote PHP understands more escape sequences for special characters.So they can be used interchangeably but their implementation differs
And for the second question variables In PHP, a variable exists with a data type when the variable is defined by an assignment statement. That means, you do not have to declare a variable before using it. And they are automatically initialize when declared and used.
Variable scope
Basically, a variable could be used only in the program or the function in which it is defined. But if you want, a variable could be used outside of the function in which the variable is defined by adding "global" at the front of the variable, or define the variable outside of all functions but in the same program
more still coming on variable
For people already vast in other "C style" languages, it is a good idea to point out some salient issues, that was why I asked.
For example someone might assign to a variable outside a PHP function, he then goes into a function and assigns to what he thinks should be this same variable (cos they share the same name) - In the C/C++/Java mindset, this is "fine" but with PHP, you are talking to different two different variables as it were, except u use global prior to the variable within the function.
Again someone might just single quote a string literal, only to despair from error messages because he is not aware of escaping single quotes in strings with such.
As you continue your tutorial, I will keep "reminding" you to talk on these kind of issues by asking you questions that bring them to the fore, right here on the board.
Hello forumites
I hope we are moving together, I expect a lot of question opening this thread .Like i said form the beginning contribution and question is always welcome as we move ahead.
I expect to see more contribution from experience people and questions from learners .Lets continue movinggggggggggggggggg.
Joined: Thu Nov 23, 2006 12:03 pm Posts: 64 Location: UK
How about opening and editing a saved php file? How do we go about this?
Also, is there any chance of establishing a server to host local sites that would be very affordable (say N100 - N200 per month) to the common nigerian who wish to setup their online business bearing in mind that exchange rate affects a lot of would be indigenous business. If 'Yes', can the local banks (eg Firstbank PLC, ecobank, Zenith, etc) support plugins like 'gateways, address finder'? The reason why I raised this is because setting up websites is one tasks, and affording the costs from hosting such is another since most website hosts engage the services of international companies which results in huge amounts levied on the owners of this sites.
Joined: Mon May 22, 2006 11:56 am Posts: 2772 Location: Virtual
Yea i feel you....i know some good webhosting companies in Nigerian like Nairahost you can check them out. But i am not sure they have gone to the level of per-month stuffs. I think the free servers might still be ur best option if its just temporary hosting of some PHP/HTML files. But if you want an application server, then you might need to think about some more investment. If its me i would rather build my server in my house if its for temporary runs. You can setup your own Apache and MySQL and do ur webhosting on ur local system.
I hope that helps?
_________________ Fowe. Choices make or mar Chances ... add extra care to your choices today.
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum