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
2answers
15 views

Comma inside MySQL query

$sql_query_posts = "SELECT * FROM `posts`"; $sql_form_permission = mysql_query("SELECT * FROM `integrations` WHERE `rank_id`='$user_level' AND `mode`='form_per'"); if ( ...
0
votes
1answer
11 views

How to exec external script

Hello i want to ask how to exec external php script with exec() which is not located on my website Does it work like this ? exec("php http://site.com/executor.php?something=1&something2=A");
0
votes
1answer
9 views

No From: address has been provided

I am writing a support ticket site and need email functionality (PEAR) and I keep getting this issue: "No From: address has been provided" below is part of the script showing where I think the issue ...
0
votes
0answers
4 views

Could the access_token endpoint return a 200 on an error?

I'm reading up on the login flow and looking at the API's response of OAuth's access token endpoint: The response you will receive from this endpoint, if successful, is ...
0
votes
0answers
16 views

Return control to main file from inside function

If I want to return control from an included file to the main file, I can just use return in the global scope. But what can I do if I need to return control from inside a class method?
-1
votes
1answer
24 views

Displaying specific data from database

I have a database that contains data and I want to display it, but I want this database have table rows which contains "0" and "#" and I want to display all the data but "0" and "#"; I'm asking if ...
-1
votes
0answers
26 views

how create webpage for attendance

I want to create a page for my team players to indicate their attendance for a match (it will be view on mobile device). Basically it includes a table of player name with their image on each row, and ...
0
votes
0answers
13 views

How to upload large files on YouTube using Youtube API V3

I am using the following code to upload large files onto Youtube, but it chunks the large files into different parts, and rather than sending them separately and upload them at once it uploads them ...
0
votes
2answers
21 views

Converting a PNG to GIF using PHP

This should be fairly simple (given the tools on hand) but there's something I'm completely overlooking.. I'm trying to convert a PNG as a base64 URL to a GIF87a or a GIF89a GIF using PHP. I've got ...
-4
votes
0answers
15 views

Positional representation of the given value in the given radix [closed]

can anyone help me with this? An integer can be expressed in a positional representation with different radices. The most common radix is R = 10; other frequently used radices are 2, 8, 16. Any ...
0
votes
0answers
13 views

Email not sent using Codeigniter 2

In my server email is sent if we use simple mail() function but it's not sent by using the following codes of Codeigniter. $this->load->library('email'); ...
0
votes
1answer
9 views

Error backup sql database but succeed creating database dump file

I tried this following code to backup mysql database into file and it works perfectly create the .sql file I need. function backup_tables() { $host='localhost'; $user='root'; $pass=''; ...
-5
votes
1answer
40 views

which programming languages to learn for web development [closed]

i hope this question is relevant unlike my previous question. i am new to programming and my interest is in web development,so far i am thinking to learn html php mysql java but i would like to know ...
-4
votes
1answer
28 views

Returns the number of integers within the range [A..B] that are divisible by K [closed]

Can somebody help me write function my_func($A,$B,$K) which: Given three integers A, B and K, returns the number of integers within the range [A..B] that are divisible by K, i.e.: { i : A ≤ i ≤ B, i ...
0
votes
3answers
49 views

How to trim current filename of page from URL?

I have a method, it looks like this: private function setURL() { $pageURL = 'http'; if(isset($_SERVER["HTTPS"]) && $_SERVER['HTTPS'] == "on") { $pageURL .= "s"; } ...

1 2 3 4 5 26661
15 30 50 per page