
Is programming in core PHP better than using a framework?
What are the advantages of programming a big website using core php? is it more reliable and stable than frameworks such as codeignitor or Cakephp? Or are the frameworks better to use than corephp for valueable or big and complex websites? Or does it simply not matter at all?
Thanks in advance
this question revolves around the whole convention over configuration mindset. If you want to accomplish more for your site in less time you could use a framework. However, if you want the satisfaction of creating something on your own you would want to build from the ground up. In my experience I have always programmed everything on my own simply because I enjoy the satisfaction that comes along with using my own scripts.
How to get a random string in php programming?
You can use session id to geenrate random string
<?php
session_start();
echo session_id();
?>
How to learn php programming language ?
I am an web designer but dont know any programming language but i am interested in php how to improve it learn it ……..
I learned it just by searching on google. Like: submit command PHP. That way I can do anything. It works for me and I hope for you too.
Web Programming (PHP, HTML, JAVA, etc.) question for Sorting arrays?
I need an answer as to which language (and hopefully pre-built algorithm) would be required to build a massive sort for multiple statements. i.e. "I would like to go to get ice-cream in toronto". I need the sort to find keywords (such as ice cream and toronto), then it needs to find people (in a website i control) and it needs to sort the people in order of an "availability" variable. I’m not asking that someone builds this, I am simply asking what program and what type of sort is the best for achieving some sort of undertaking like this.
java runs faster then php i think and if you want to go for speed i recommend you to use hasmaps or some sort of hastables not a sorted array… hastables uses linear algorithms to get the variables that means is really fast and its eays
if realy need arrays(i don’t see why) quick sort is proved to be the best comparing sorting method..
and you don’t have only numbers that mean you can’t applay a numerical sorting algorithm
still i recommend java with hasmaps
PHP Programming Loop Question?
Hi,
if i am retrieving the information in the database table using loop (While Loops and For Loops), and i want to add in a submit button in every row. How can i store the ID inside the submit button so i can post to another php page?
As the problem i am facing now is that, with every button display at every row, when i click submit button of one of the row, it supposedly should post the ID to the next page, but it isn’t doing it. Therefore i would like to know how to store the value inside the submit button in a loop.
Thanks so much!! =D
My code will be:
<td>
<form method=’post’ action=’doView.php?id=<?php echo $Course_id; ?>’>
<input type=’submit’ value=’More Information’ name=’<?php echo $Course_id; ?>’ />
</form>
</td>
You need to create the url that you are going to use for the button. The url is just a string with a variable in it. In fact the code for the button will just be a string.
"myPage.php?ID="
Now append to the above string your id. That is it. You may have to escape some quotes to get to that but that is all.
Have fun.
Is php a good programming to write exploits in?
I am wanting to learn some hacking, I am fairly good with php. I am curious if that is a good language to know of hacking? Also if decent exploits can be written in it?
PHP is good for building bots as well as many other languages such as Java, Perl, and Python.
How can I transition PHP website code over to a client who doesn’t program?
I program PHP-MySQL based websites as a side job/hobby. Most of the stuff I’ve done is for family, friends, friends of friends, etc. I have a strong programming background, and many of these websites have been quite extensive.
My question is regarding clients who have as a goal to eventually take the website over themselves. I’m shocked to find that many of these people have pictured in their minds that the site is created in Microsoft Word (or something like that). I can’t help but discourage these people from asking me to turn the site over to them.
I’ve tried to explain to some of them that their website is complex, including a few different programming languages and a large amount of database integration. Few of them take this very well. They just can’t understand why they couldn’t be able to perform "simple maintenance", such as creating a form, or adding a new page to their ordering process. Little of what they describe is really very "simple".
I always tell them that they are welcome to do whatever they like — they own the code if they have paid me for it. But I discourage them from trying to take it over.
One client recently insisted that he be given complete and exclusive ownership his site. It was a website for his business and had taken a couple of years to complete to his satisfaction. I gave him the files, got him setup on his own host, and said "Good luck". He would accept no less. Sadly, the site fell to pieces within weeks of him tinkering with it.
I have another similar client asking me for the same thing now.
So, what do side-job programmers like me do? How can I explain this to clients? What’s the professional thing to do?
The best way is to not create everything yourself.
Create the website with a CMS / shopping cart you like, define user roles, and it gets really easy to perform simple maintenance without killing the code.
If something is still missing, create a plugin.
Don’t take the following the wrong way:
You are still creating websites the web 1.0 way. Nowadays, it’s web 2.0 and people are used to add content, widgets, etc. themselves, like they do it on Ebay, Facebook, Weebly, etc. You can’t tell them that it is not possible to perform simple maintenance because they already do it everyday.
So, invest some time to find a flexible framework you like and then build the websites on it. Believe me, you can even ask for more money that way.
How do I change a PHP file back to PHP?
So I edited a php file with notepad, and unfortunately I forgot to un-check the "Always use this for these types of programs" thingys.
Advanced thanks ![]()
I don’t have english Windows, but lets have a try.
- Right click on the file
- select "open in application…"
- select the app you want to use and check the "always use this for these types of programs"
Ta-daa!
How to encrypt a string in php programming?
You can use md5 function to encrypt a string
<?php
$str="hello";
echo md5($str);
?>
CodeIgniter, jQuery & JSON How To – http://geekhut.org
A comprehensive JSON tutorial for use with CodeIgniter and jQuery. geekhut.org
Caffeinated Content