PHP is an open-source server-side scripting language widely used in web development. Use this tag for questions about PHP classes, methods, functions, syntax and use.

learn more… | top users | synonyms (7) | php jobs

0
votes
0answers
3 views

Xdotool : need to modify ( WID=`xdotool search “Mozilla Firefox” | head -1` ) so it's more specific

This code will find a firefox window and then refresh it. WID=`xdotool search "Mozilla Firefox" | head -1` xdotool windowactivate --sync $WID key --clearmodifiers ctrl+r What i need is to make it ...
0
votes
0answers
4 views

Symfony DI Extensions - add custom DoctrineExtension

There is a DoctrineExtension in the Doctrine\Bundle\DoctrineBundle\DependencyInjection\DoctrineExtension package. I cant find where it is defined in the framework and how do I replace this class ...
0
votes
0answers
10 views

Missing select and select thumbnail option in ckeditor 4

I'm using kcfinder integrated with ckeditor (ckeditor inline )to upload images and selecting. While selecting the image by clicking on browse server button, it was displaying images as expected. But ...
-1
votes
3answers
25 views

How to get the response data in ajax call

I have a php file(index.php) with two fields when i post that form, in javascript i am doing form data serialize and send it to next php page(results.php) through ajax. When i try to print the data ...
0
votes
0answers
7 views

PHP HTML 5 Reportdata in the cloud or an API

i have a php html report that the user generates the user wants to click a table row in the report and get related date whats the right way to do this : API : put data in Cloud : special link with ...
0
votes
1answer
11 views

how do i extract values from multiple divs with xpath

How do I make this code snippet return the values for every div with class age on the page I am parsing rather than just the first one as it does now? $nodelist = ...
0
votes
5answers
15 views

How to create a proper photo album application in PHP?

I've worked with photo albums before, and I've found 2 methods of managing them through PHP: Store the images in the database or Store them in the filesystem Each has its own advantages and ...
-2
votes
1answer
19 views

What are the limitations of PDO and select statments

Can PDO return the number of rows in a db when using a SELECT staement? And does php even support named parameters?
0
votes
0answers
41 views

PHP Checking if is set on multiple inputs

i have a car inventory website, we all know cars can vary greatly. so i made a table with the most common attributes, it includes checkboxes, radios and text now i need to check each one, i dont know ...
0
votes
1answer
23 views

What's wrong with my code preg_match?

While running this regex: if(!preg_match("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email)){` I get the following error message: Warning: preg_match(): No ending ...
-2
votes
2answers
49 views

Getting Query from Following

I have the following query that grabs all of the photos from everyone across the service (world feed): SELECT IdPhoto, title, l.IdUser, username FROM photos p JOIN login l ON (l.IdUser = p.IdUser) ...
0
votes
0answers
7 views

Access Drupal7 site in a subdirectory without trailing slash

I have a Drupal7 site hosted in a sub-directory and site can be access following with directory path and trailing slash: http://mydomain.com/dir1/dir2/ (with the trailing slash). I’m looking to ...
0
votes
0answers
7 views

MongoDB timestamp now

How can I check the current timestamp in MongoDB? Currently I use a query that looks like: "last_visit": { "$lt": NumberLong(1373779876) } I store that query, and then I have a cron job ...
0
votes
1answer
37 views

create function to validate existing user / new user

How do i check if the user already exist in the database. I can create user but not very sure how to check if the user already exist in the databas. here are my code: view file <?php echo ...
0
votes
0answers
14 views

Table Structure for a User Feed with “Followed” items

I want to create a User Feed similar to Twitter where user can "Follow" specific blogs. But im stucked with the best table structure. When they followed specific blog/s, all products and blog posts ...

1 2 3 4 5 28313
15 30 50 per page