Quantcast
Channel: PHP Website Development » BTW
Browsing latest articles
Browse All 10 View Live

Protected File Download Script. Almost there

I have a file that users will purchase via paypal, clickbank and paydotcom. I have to host the file’s download page on my server.I’ve placed the file in a directory outside my public_html folder. The...

View Article


How to code feature on checking visitor IP address in PHP?

I still confused on this subject and ask for any help and reference on how to check a visitor IP address via PHP.I’m know it seems lazy to ask something before attempting to code something to show, but...

View Article


PHP, problem with str_replace while reading from array

i am new to php, and i am trying to do a script that reads an CSV file(file1.csv) and compare the words in the file with words in a html file (file2.html), if word in file2.html match with the key part...

View Article

What’s wrong in this simple PHP SQL sentence?

i want to recober all the users with “blo” in their full name, for example: “Pablo”I pass the “blo” parameter with user PHP parameter:$q=mysql_query(“select * From user Where fullName Like...

View Article

Two Errors trying to include .php file: Warning: require(…)

Here is the first error:Warning: require(/hb/includes/constants.php) [function.require]: failed to open stream: No such file or directory in C:\wamp2\www\hb\includes\connection.php on line 2And the...

View Article


PHP/Smarty – Need help with multi array and foreach loop

I use this code:$result = mysql_query(“SELECT * FROM data WHERE user_id=’$user_id’”); $output_array = array();while ($row = mysql_fetch_array($result)) { if(!isset($output_array[$row['plant_id']]) ||...

View Article

MySQL/PHP database value check not allowing for extra charac

I have a username check in PHP, and whenever someone enters the value ‘username2′ when ‘username’ already exists, it returns that it is already taken. include ‘connect.php’; $username =...

View Article

Image may be NSFW.
Clik here to view.

Magento Extension 404 Error

Im stumped!I have a custom extension that works beautifully locally on Mac Leopard, however after pushing live to the host (Centos Linux) I get a Magento 404 error when I try to call the frontend...

View Article


Insert all rows from one table to another + time stamp at th

I’m creating a change log db that’s the exact same as my active db except it has a changedate DATE field at the end.The db is basically one primary key id, and about 50 other columns of various data...

View Article


Using regex to filter attributes in xpath with php

I am trying to filter html tables with regex matching their id attribute. What am i doing wrong? Code i am trying to implement: $this->xpath = new DOMXPath($this->dom);...

View Article
Browsing latest articles
Browse All 10 View Live