NewStats: 3,263,892 , 8,181,785 topics. Date: Sunday, 08 June 2025 at 04:11 PM 4l405v

6382y

Post your PHP Problems Here - (15) - Nairaland 501w4m

Post your PHP Problems Here (66331 Views)

(4)

Go Down)

sojmann(m): 5:56pm On Jan 11, 2015
Please I am having problems with removing the featured image from the homepage and post page in my wordpress blog.
I have looked for plugins and have even tampered with some code,mes the whole site,which I had to start from scratch.
How do I get the featured images off the post and home pages??

Re: Post your PHP Problems Here by Nobody: 4:20am On Jan 13, 2015
oyinkembu:
I need this help.I used a joomal template to design a we application on wamp server.I exported the data base from wamp to the online database I created and I hosted it using file zilla but the problem is that the application is not displaying on the online server.I need help
Seems you did not the files to the public_html folder
Akinsnaira: 6:15pm On Jan 13, 2015
Please, hosting your domain name with 'web.com', what is the cost and benefit?

The experienced fellow in the house
Webhost(m): 3:06pm On Jan 14, 2015
Nihtem Solutions - One of the best web design companies in Nigeria Call 07030595653 for all your web design related services...
DONOCSO(m): 8:05pm On Jan 14, 2015
Elvisten10:
Hello,

If You need help or request solutions to problems on php, kindly post on this thread.

No matter how simple or complex it is, people are here to help.

Happy Coding smiley


How can I port html to php?
akay48(m): 9:17pm On Jan 14, 2015
Webhost:
Nihtem Solutions - One of the best web design companies in Nigeria Call 07030595653 for all your web design related services...
PLEASE, keep your postings to the ads section. Do we have Mods around here?
akay48(m): 9:18pm On Jan 14, 2015
Akinsnaira:
Please, hosting your domain name with 'web.com', what is the cost and benefit?

The experienced fellow in the house
This thread sir, is opened to solve PHP related issues, your question does belong in another thread.
akay48(m): 9:25pm On Jan 14, 2015
DONOCSO:



How can I port html to php?
What do you mean by "port html to php"?
DONOCSO(m): 9:42pm On Jan 14, 2015
akay48:

What do you mean by "port html to php"?

custom php cms
xyluz: 12:45pm On Jan 15, 2015
DONOCSO:



How can I port html to php?

What do you mean by port?

HTML and PHP are two different things, you can hardly write a PHP code without the use of HTML. PHP is a programming language, HTML is not. If by port you mean, switching ... then its not possible nor necessary.

I hope i was able to help?
DONOCSO(m): 1:10pm On Jan 15, 2015
xyluz:


What do you mean by port?

HTML and PHP are two different things, you can hardly write a PHP code without the use of HTML. PHP is a programming language, HTML is not. If by port you mean, switching ... then its not possible nor necessary.

I hope i was able to help?

Yes. Thanks.
xyluz: 1:30pm On Jan 15, 2015
FUNCTION TO LOG ERROR MESSAGES...

function log_error( $action, $message="" ) {
//fetch date
$datestamp = strftime("%Y-%m-%d", time());
//name error file, using my datestamp as name code
$errorfile = 'log/error'.$datestamp.'.txt';
//checking if the file already exists
$newError = file_exists($errorfile) ? false : true;
//open the file and write the error message inside
if($handle = fopen($errorfile, 'a')) { // append
$timestamp = strftime("%Y-%m-%d %H:%M:%S", time());
//get info
$content = "IP of : {$_SERVER[REMOTE_ADDR]} {$timestamp} | {$action}: {$message}\n";

fwrite($handle, $content);
fclose($handle);
if($newError) { chmod($errorfile, 0755); }
} else {
echo "Could not open log file for writing.";
}

Usage Example here:

http://xyluzcodes..com/2015/01/pdo-tutorial-series-2.html

Tell me what you think.
xyluz: 1:57pm On Jan 15, 2015
DONOCSO:


Yes. Thanks.

You're welcome
Adesege(m): 9:38pm On Jan 22, 2015
oyinkembu:
I need this help.I used a joomal template to design a we application on wamp server.I exported the data base from wamp to the online database I created and I hosted it using file zilla but the problem is that the application is not displaying on the online server.I need help

Hope my answer is not coming late? If not...

There are a couple of things which can cause this. First check if the default files which are loaded upon creating your host are deleted. If they are not, trying deleting those files especially "default.html".

Hope i've been able to help
Walexwal: 6:33pm On Jan 27, 2015
Pls knidly help me on my site problem. www.agripreneurforum.com. I just ed this script. I was told the problem is with my mysql database but I don't know how to create it. Pls kindly help!
lovebondz(m): 10:24pm On Jan 27, 2015
Walexwal:
Pls knidly help me on my site problem. www.agripreneurforum.com. I just ed this script. I was told the problem is with my mysql database but I don't know how to create it. Pls kindly help!


You don't know how to create a MySQL database?

First, check the FAQ page of your hosting provider for their MySQL connection configuration.
Open your website via FTP and change the settings in Connections/forum.php to the one from your host (check line 9)
Your site should work.
to your anel
Under PHP settings, turn off Display Errors.

1 Like

ispeaklight(m): 6:11pm On Jan 28, 2015
mine is not realy a problem, i need to know what platfrom was myschool.com.ng built on, and how can i learn to build a site like that?
lovebondz(m): 8:34pm On Jan 28, 2015
ispeaklight:
mine is not realy a problem, i need to know what platfrom was myschool.com.ng built on, and how can i learn to build a site like that?

Check Built with

1 Like

xyluz: 10:37am On Jan 29, 2015
Walexwal:
Pls knidly help me on my site problem. www.agripreneurforum.com. I just ed this script. I was told the problem is with my mysql database but I don't know how to create it. Pls kindly help!

The response given by lovebondz is actually good. However, since you're new to database issues... i advice you focus on PDO or MySQLi as mysql is no longer in use and might not be ed in future.

You can read more here: http://xyluzcodes..com/2015/01/pdo-tutorial-series-1.html
Walexwal: 12:37pm On Jan 29, 2015
xyluz:


The response given by lovebondz is actually good. However, since you're new to database issues... i advice you focus on PDO or MySQLi as mysql is no longer in use and might not be ed in future.

You can read more here: http://xyluzcodes..com/2015/01/pdo-tutorial-series-1.html
tnks bro!

1 Like

Walexwal: 12:37pm On Jan 29, 2015
lovebondz:



You don't know how to create a MySQL database?

First, check the FAQ page of your hosting provider for their MySQL connection configuration.
Open your website via FTP and change the settings in Connections/forum.php to the one from your host (check line 9)
Your site should work.
to your anel
Under PHP settings, turn off Display Errors.
. Tnks sir
aje75(m): 6:34pm On Jan 29, 2015
Walexwal:
Pls knidly help me on my site problem. www.agripreneurforum.com. I just ed this script. I was told the problem is with my mysql database but I don't know how to create it. Pls kindly help!

sorry bro did i just see sql error reported on ur site while itz online ??
Walexwal: 8:04pm On Jan 29, 2015
aje75:


sorry bro did i just see sql error reported on ur site while itz online ??
yes sir!
Walexwal: 8:04pm On Jan 29, 2015
aje75:


sorry bro did i just see sql error reported on ur site while itz online ??
yes sir! Pls can you help me rectify it bro?
xyluz: 3:55am On Jan 30, 2015
Walexwal:
yes sir! Pls can you help me rectify it bro?

wow... the first thing you should do is put it offline... Or just use the @ sign in front of your queries to hide the error message.

Then, the problem is probably your server name, is your hosting default localhost? Check with your hosting company for the right server name. And also check that your is correct.

I also noticed that you have directory listing turned on, that's very dangerous. I suggest you read your hosting company knowledge base to learn how to turn off directory listing.. its usually straight forward...

You might also want to take note of your file and folder naming convention, its too predictable...

I hope this was helpful.
lovebondz(m): 2:16pm On Jan 30, 2015
xyluz:
You might also want to take note of your file and folder naming convention, its too predictable...

Too predictable? I don't understand. With directory listing turned off using proper htaccess and only allowing specified routes to be accessed, I don't get how predictable naming conventions are a problem.

Take me for example, my s and libraries are not in a publicly accessible path but other files are. Enlighten me.
xyluz: 4:11pm On Jan 30, 2015
lovebondz:


Too predictable? I don't understand. With directory listing turned off using proper htaccess and only allowing specified routes to be accessed, I don't get how predictable naming conventions are a problem.

Take me for example, my s and libraries are not in a publicly accessible path but other files are. Enlighten me.

No, normally... i guess it doesn't matter what you name your folders... but if he had named his folders better or used names that are not so common, even with directory listing turned on i might still have a bit more difficulty guessing the folder names used.

I just think there can not be too much security measures when it comes to programming and especially web...

But maybe its just me being paranoid... smiley
fraphael: 4:51pm On Jan 30, 2015
Hw to b changin content

Reply)

Setting Up Wamp Server To Run On Local Area Network

(Go Up)

Sections: How To . 35
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or s on Nairaland.