Skip to content

Notice: Array to string conversion in

I’m trying to select a value from a database and display it to the user using SELECT. However I keep getting this error: Notice: Array to string conversion in (pathname) on line 36. I thought that …

how to install ioncube loader?

I recieved this error: Site error: the file C:wampwwwhtmlnews.php requires the ionCube PHP Loader ioncube_loader_win_5.1.dll to be installed by the site administrator. Then I have obtained the proper file and pasted it in the HTML folder. Nothing has changed. What should I do? Answer You need to download DLL …

Login redirect Issue in post comment area in PHP

If someone wishes to comment on any item e.g. and article or forum item, etc. on my site. It prompts them to login/create account. Is it possible to make sure that when the client logs in it takes them back to the comment they wanted to make? But now it’s going not like this flow. The user not logging i…

How can I get a PHP value from an HTML form?

I have an HTML form as follows: I want that the user of this form enters data in the input box. Then I would like this data to be the value of a PHP string – e.g. $username = “MY_NAME”; where MY_NAME is the value of the HTML form entered by the user. If the input by the user in

Get comments in a PHP file

I’ve been trying to get the comments out of a certain .php file on my server, in order to parse its variables. I thought Ii found an easy way to do this, however, the function I use doesn’t return anything, even though I clearly have comments in the file. Here are the comments I use: Here’s …

How to use the Google calendar API’s functions

I’m trying to use the Google calendar API and I can’t properly call the built-in functions. For reference: This code return a fatal error: Call to a member function getItems() on a non-object I don’t understand how to use an object which is not instantiated by a New(). Answer You need to add…

Is there a downside to session.auto_start in PHP?

I usually end up adding session_start() to the top of every page on my PHP sites (or in a header file which is in turn included on every page). I recently discovered that you can have sessions start …