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 (6) | php jobs

0
votes
0answers
7 views

Grab Posts Content from Database with hyperlink - PHP

hello guys, i want to know how to get content from database with Anchor tag.. as a example i have posted the post on the site. Hello I am the PHP.go from here http://php.net now when i get data ...
0
votes
0answers
22 views

php multiplication, it shows code when i press sumbit

I got 2 files and i have to make multiplication <!DOCTYPE html> <html> <head> <title></title> <meta charset="utf-8" /> </head> <body> <div> ...
-3
votes
1answer
18 views

How to redirect page when i type it in browser?

How can i type in browser url example.com it can redirect to page example.com/project/home/index.php and in my url browser not change(still example.com).
0
votes
0answers
4 views

Mongo showing on php info but MongoClient not working?

I'm using a Mac and I've installed the Mongo Driver for PHP (5.3.1, my version). It shows up on php info but when I use it in my PHP script it wont work. Here is what my PHP info shows: MongoDB ...
0
votes
2answers
18 views

date_diff outputs wrong value

$end=date_create("2013-07-30 00:30:33"); $now=date_create(); $x=date_diff($end,$now); echo $x->format('%a days'); When I use %a it returns 45 days which is correct, when I use %d it returns 15 ...
0
votes
0answers
2 views

JavaPipe web protected IP and php mssql script. It doesnt work as it should be

I've got a protected web proxy IP from javapipe.com that I'm using for my website. I've got a script that people can buy items for my game from the website and when they buy something .. it will add ...
-1
votes
0answers
12 views

.htaccess - I can't see my url

I was wondering if there is a quick solution for my website. I put my website on my bookmark but when I click on the icon it's goes perfectly to my website BUT it's not displaying the link in the ...
0
votes
1answer
11 views

Parsing CSS files using RegEX

I'm messing around with CSS files, and I'm trying to traverse through a CSS file using PHP. What I'm looking for is capturing any image path within a url() selector, using regex (any faster ways you ...
0
votes
0answers
6 views

Turn off or handle errors within a production environment?

After having an argument with my team because we all have different views on this sort of situation.. When is it actually acceptable to turn off PHP error messages, or to suppress some functions which ...
-2
votes
0answers
4 views

PHP image - imagecreatefromjpeg or readfile or file_get_contents

What is better to use, what is fastest, what use less cpu (It's gallery with a lot thumbs on page). header('Content-Type: image/jpeg'); $path = "wallpaper.jpg"; $new_image = ...
-2
votes
4answers
25 views

how to call function form javascript inside php?

hi im new to php and im wonder if there any way to use javascript inside php code then i want to know how to call that function in javascript inside php code , really im sorry for my bad english and i ...
0
votes
1answer
27 views

How to display normalized MySQL data in a flat HTML table with PHP?

I want to display this data in table format, like <table border='1'> <tr> <th>Firstname</th> <th>Lastname</th> ...
0
votes
1answer
10 views

Calling javascript functions from drop down with php variables

Problem Outline: I have a couple php pages scraping data from a web page and they perform calculations with this data and assign it to a variable. I am then assigning those php variables to javascript ...
-1
votes
0answers
14 views

How to get all countries shipping service name and rates using PHP API

I am developing a site using PHP and now i need any API or anything I don't know exactly what I have to do. I want to get all shipping methods of countries and their prices against weight of products. ...
0
votes
2answers
24 views

Give value to radio button php and save to sql

I have a little problem that i have been struggling for the last 16hrs I can find a solution for this... I really really need some help please... I have the form which is generated by a query based ...

1 2 3 4 5 26875
15 30 50 per page