I am trying to map traceroutes to google maps. I have an array in php with traceroute data as $c=ip,latitude,longitude, 2nd ip, its latitude, longitude, ….target ip, its lat, its lng I used …
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 …
How to select distinct query using symfony2 doctrine query builder?
I have this symfony code where it retrieves all the categories related to a blog section on my project: This works, but the query includes duplicates: I want to use the DISTINCT command in my query. The only examples I have seen require me to write raw SQL. I want to avoid this as much as possible as I am
What is this character ( Â ) and how do I remove it with PHP?
It’s a capital A with a ^ on top: Â It is showing up in strings pulled from webpages. It shows up where there was previously an empty space in the original string on the original site. This is the …
How to find a start date & end date of any given year & month
I have problem in php find start date & end date of month & year , when i know the year and month ? ex: input – > year = 2011 , month = 08 output -> start date = 01 , end date = 31
Don’t reset form values after submit
After giving a preview by php header code, I want to not reset the input boxes? Thanks. This is my simplified code: html Code Answer You have to give all the input boxes a value attribute equal to the previously submitted value.
How to get the message body from PHPMailer?
I use PHPMailer to send email via SMTP. It works, but it doesn’t save the sent emails in sent items. I want to make to sent emails in the sent items, any idea? I know can use imap_append function …
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 …