Skip to content

php variable ask ques

My goal is to grab the name of a page by querying the page ID. And then store it in a variable. The current code I have for doing part of this is below, however as you can see the only thing I’ve done with the data is print it. CODE: OUTPUT: I want just the plaintext of the pagename

jQuery .post won’t read PHP include

I built my website from bunch of php include files that work like a template. When I change something in one file whole website changes. When I click on a radio button, ajax should activate and it should try to communicate with the other php file which should connect to the database and to send information ba…

Is there an easy way of seeing PHP info?

Each time I want to see the phpinfo(); I have to: Create a info.php file; Write phpinfo(); in it. Go to the browser and type my “thisproject.dev/info.php” I’m on Ubuntu. Isn’t there a more …

Get class name from file

I have a php file which contains only one class. how can I know what class is there by knowing the filename? I know I can do something with regexp matching but is there a standard php way? (the file …