Hi, there you can call me Vee, am a Freelance web designer from UAE, i love PHP and i am here to learn more about it. I'm a pHp Fan :)
- Interests
- PHP, Gaming, Movies, Football, Pool, Religion
- PC Specs
- Galaxy Tab 10.1, Window 7, HP, Intel Corei3 Processor....
I have always copy/paste this below code as a template for meta tags on project, but I think they are not effective as they could possible be. So, I need to know if there is anyway I can improve it. suppose I have a site called `coop.com` for a company … |
|
I am tring to make a search script, but I have no idea how and would appreaciate if anyone could give me samples or websites. thanks |
|
I'm having hard times, learning desing patterns. And, I've been reading quite a lot. But, I'm only interested to know, about two things: Adapter & Factory patterns. From what I undestood, (*which is close to nothing*) Factory Pattern helps create objects on the fly Adapter Pattern helps adapt your class … |
|
I would like to know, why extending a built-in class in php is important. I mean let's take the PDO class for example. One can either work with using new PDO(); or class Foo extends PDO. to do the same task. I guess, maybe the only thing that makes sense … |
|
Re:
Hi.. 'm new to PHP so please guide me.. i just want to create a simple yet secure login page with PHP and MySql as db.. The following must be the program flow.. 1.when a user tries to login for the first time it should check whether the user is … |
|
When I check sometimes, on the php.ini files, I see that there are many loaded extentions, and for the most part, I only open the file to enable or disable some extentions like curl, but other than that, I do now know what the hundreds of extention do, so I … |
|
Re:
We have a new layout. Should you encounter a layout issue, or just want to add your opinion... do so here. If there's some issue, do inform uus of your OS and browser, and optionally an annotated screenshot. If you find reproducable bugs, please use [this thread](http://www.daniweb.com/community-center/daniweb-community-feedback/threads/460894/new-layout-bugs-and-glitches). |
|
I am new to PHPUnit & unit-testing in general, I have got this problem, thankfully I can sense, the answer is out there, maybe with everyone has ever done their first tests. Here it goes: I have been trying to find tutorials for unit-testing with PHPUnit. And, so far all, … |
|
Sorry for the confusing title, as I am new to C++ Basically, what I am trying to do is, to read a simple **test.txt** file's content, which are just two words actually: "Hello World" and desplay thier hexadecimal content in a shell, CMD or command line.(Whatever it is called), if … |
|
Hi All. I am new to C++, infact I started watching tutorials just about an hour ago. But, I had some experiece of Javascript, PHP, so It is fine. Now, my question is that, I am untimately, learning C++ to be able to manipulate a .wav files, just to write … |
|
Hi, I am chaging from mysql_* to PDO and I found this tutorial in [Here](http://net.tutsplus.com/tutorials/php/php-database-access-are-you-doing-it-correctly/) And, so far let's say I chose this query to update a database. $id = 5; $name = "Joe the Plumber"; try { $pdo = new PDO('mysql:host=localhost;dbname=someDatabase', $username, $password); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $stmt = $pdo->prepare('UPDATE someTable … |
|
I am a php newbie, and I have realised that there are many functions to learn in php, but can anyone point out which ones are the best for beginers? Can you mentions 10 most usefull functions or more? |
|
I just saw a tutorial on a PHP site, and saw the super global $_SERVER['SERVER_SELF'] getting sanitized with htmlspecialchars. Us there any use for this? If you submit a post that has form action="$_SERVER['SERVER_SELF']" what difference does it make what the url is set when submitting a form, because the … |
|
I just need to know, what is the difference and relashin ship between the two? |
|
Hi all. I have a site with articles and members and since the url ends for both like.. site.com/articles.php?id=232 or site.com/ref.php?user=3232 I costumised this script I found online to costumize the url. I did for the profiles which is working, but I can't add for the articles: RewriteEngine On RewriteCond … |
|
Re:
Hello PHP geniuses! I am a beginner in php and would like to seek your expert advices and knowledge. When I display the result to a table, it always loop at the bottom, I want to display the another table at the right side of the first table. When I … |
|
Hi, I have a lot URLs in my site that look like: http://localhost/DIRECTORY/FINAL/ref.php?id=category Now, I need a PHP function to search for = Sign and return all the text after that i.e. 'category' Is this possible, if so can anyone help |
|
Re:
Why this code doesn't redirect to profile page? i need help.. <?php include('connectvars.php'); if(isset($_POST['login'])) { $con = mysqli_connect(DB_HOST,DB_USER,DB_PASSWORD,DB_NAME); $user_username = mysqli_real_escape_string($con,trim($_POST['username'])); $user_password = mysqli_real_escape_string($con,trim($_POST['password'])); if(!empty($user_username) && !empty($user_password)) { $query = "SELECT * from Account where Username = '$user_username'"; $data = mysqli_query($con,$query); if(mysqli_num_rows($data) == 1) { $row = mysqli_fetch_array($data); $_SESSION['user_id'] = … |
|
I need to pass a variable from page1 to page2 without URL, or without making the variable visible to users, to I figured, I might use the hidden field method, but I can't do this with the following script <form method="POST" action="page1.php"> Username: <input type="text" maxlength="25" name="username" value="" class="i_login" /> … |
|
Re:
hi all, i am actually working on a project. But the mysql_real_escape_string() is not working on my php5 codes. Can anyone suggest me an alternative to avoid sql injection, plz! Thank you! |
|
Hi guys. It's been a third day now, I am having problems with header. I have many included files which output echo before the header, so since I can't output them after the header, I used ob_start(); and ob_flush(); but still I am getting header problems. If you wanted to … |
|
Re:
hello guys how are you i wrote this code but i have an proplem i can not verify if there is no file uploaded when anyone hit submit and i can not specific the allowed extinsion for example "jpg" how can i do this in "foreach", i can do this … |
|
Re:
I am just trying to submit two input fields, username and password. I am not able to do that because my code won't submit my data to the PHP database. The code is below, also please note I am trying to use ajax: getData.php <?php $db = mysql_connect('localhost', 'wont tell', … |
|
Ok, Assume i am creating a site for people who own business companies and when they submit their names, phones, and other details, i want a php code to generate a URL of their Company Name only. Now, here is the trick, i don't want just any URL, i want … |
|
Ok, i am so new to PHP and today, i wanted to create a very simple php code that submits username and country name into myqsl. So, I created databse and tables in phpMyAddmin, and i created two php files ( c below ) i.e. form.php & insert.php [B]This is … |
|
I just bought a domain starting with an uppercase letter and inside my domain registrar control panel, it shows the same way as it it registered( first letter uppercase. ) anyway, contrary to what many people said i read in here SNIP that registering a domain with mixing upper/lower case … |
|
Re:
Hi all, I hope you're having a good day. I'm 15 and as a way to earn some money this this year I am thinking of starting a small web development business. I have knowledge in HTML (4 and 5), CSS (2 and 3), PHP 5, SQL, and some knowledge … |
|
What are the best SEO tricks other than the; 1- Good Meta tag and description and title structure. 2- Add your url in [ [url]http://www.google.com/addurl_confirm.html[/url] ] 3- Add hyperlinks to your site on other website. 2nd Question - I know that google searches for more link for your website on … |
|
I wanted a good search engine ranking and, in one of my websites i created index.html file and (1) placed this code: [CODE]<!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 name="keywords" content="Habehsa, Abesha, Ethiopia Website, Eritrea Website, Ethio Media, Eri Media, Ethio Web, Website Ethiopia Eritrea, … |
|
Hi there, since recently i have been trying to master HTML, and now i am full ready to take on PHP therefore, just like HTML instead of making many .html files | i want to use the PHP dynamic page function that can show me pages from database. usually as … |