Tagged Questions
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.
0
votes
0answers
3 views
How to combine timer and a auto redirect? PHP
So for my timer page, I am trying to figure out how I can use this PHP timer for a redirect. It will be displayed on the page from a countdown of 5, and then it should execute the script to visit one ...
0
votes
0answers
4 views
How to select postgre view (with session_user variable) in PHP?
I need to use php session_user data in postgresql view. How is it possible?
I have created postgre view with session_user variable in db.
CREATE OR REPLACE VIEW test_view AS
SELECT T.name, TT.age
...
0
votes
0answers
21 views
Load a specific page at midnight using Javascript/Jquery/Ajax or HTML5?
This sounds a bit orthodox, i'll admit.
However i was wondering if there was a way to load a specific website using Javascript/Jquery/Ajax or HTML5?
Reason i ask is because i'm aware there's a ...
0
votes
1answer
17 views
PHP & MySQL: Get all values from a table?
I'm trying to run this MySQL code in PHP.
SELECT DISTINCT teamid FROM teammembers INNER JOIN teams WHERE teams.id = teammembers.teamid
If I run this code in SQL, I get around 20 different values, ...
0
votes
1answer
9 views
PHP Wrap Long Text Into Pages Like MS Word
I am using http://builtbywill.com/code/booklet/ to create a book-like reader for my website. The contents of the book are SQL TEXT fields for each individual chapter taken from the database. I ...
-3
votes
0answers
13 views
Expressing cURL line commands in PHP
I've spent quite a bit of time doing variations of code, none of which work.
Here is the sequence of cURL commands I am attempting to replicate in PHP:
curl https://any.server.com/v2/oauth/token \
...
-2
votes
1answer
20 views
How to append a POST HTTP request data to a text file in PHP? [on hold]
What I need is a local web server appending all the POSTed data to a text file. The actual idea is to implement this (Storing into file using JavaScript/GreaseMonkey). I think the fastest way is to ...
0
votes
1answer
22 views
php header function not redirecting and giving me error
I've been following a tutorials very closely and I reach a section were I am getting a error message I've checked my code several time its perfectly the same as the tutorial I've reseacrh ways to fix ...
0
votes
1answer
6 views
Laravel 4 - Update the values of the child table “persons” and at the same time the values of the parent table “users”
I'm using the framework Laravel.
I have 2 tables (Users and Persons). I want to update the values of the child table "persons" and at the same time the values of the parent table "users". I have an ...
0
votes
5answers
25 views
How To Make 'Submit' Button Refresh Page?
On my website I have a 'Contact Us' form.
Currently, I am using a php form to have the information that has been filled out on the form to be e-mailed to my e-mail.
I wanted an echo message to come ...
0
votes
0answers
13 views
issue with getheader and mysqli
i am using below code to get the image from any link but its giving few errors and mysqli is not updating.
Warning: get_headers() [function.get-headers]: This function may only be used against ...
0
votes
0answers
11 views
W3C validation giving errors on AJAX page
Works great, but get five errors from W3C validation. Tried the sugestions, but no help. Issues are;
No Character Encoding Found! Falling back to UTF-8.
Unable to Determine Parse Mode!
No ...
0
votes
0answers
15 views
Link Wordpress post images to post
I'm developing a wordpress theme for my blog and I'm having some difficulty.
When I make a new post, the first image of that post is displayed on the homepage. When the image is clicked, it links to ...
0
votes
0answers
10 views
pass PHPUnit arguments from browser
I'm trying to run PHPUnit from within the browser. I've followed the suggestion from this question. I'm using a PHP Archive version of PHPUnit. The problem is it looks like the command line arguments ...
1
vote
3answers
33 views
More efficient way to use args in function
I need to define a function in PHP that contains multiple arguments (as shown below):
function the_function($arg1, $arg2, $arg3, $arg4, $arg5, $arg6, $arg7, ...)
but I believe there is a more ...