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.
-1
votes
0answers
8 views
fatal error in googleapi
i have to use google api in my project using php
the project : using google search engine and gathering urls and their source pages
i downloaded google api php client and i followed what ever is ...
0
votes
0answers
34 views
How do I echo last input?
I have connected database to my site.
I have this code:
<form action="insert.php" method="post">
<label for="ime">Ime:</label> <input type="text" name="ime">
<label ...
-1
votes
0answers
7 views
NSData to NSString random characters
when i log the vaule for responseString below, it always has random characters - is that a php issue or an ios issue?
NSURLResponse *response;
NSError *error;
NSData *responseData = [NSURLConnection ...
0
votes
2answers
15 views
PHP Form not validating
Am trying to validate a form and the values of the form can only be inserted into the database if the security answer is correct.Yet the values gets inserted when a wrong answer is given.
...
0
votes
0answers
3 views
Evernote oAuth error php
I'm having issues getting an access token from Evernote using oAuth in my codeigniter app.
I am able to successfully get my temporary credentials but when I ask for my access token. I get the ...
0
votes
2answers
13 views
Remote calls via javascript
I run a service where there is a javascript file that is called and self executed on a user's site.
This then calls an external server every 10 or so seconds with a bunch of variables.
I used to do ...
0
votes
3answers
20 views
Best way to make a bi-directional array?
I'm not sure if "bidirectional" is the best name for it, but I want a data structure where both the key and the data are unique pairs. For example: a=1,b=2,c=3... and I want to be able to call the ...
0
votes
1answer
13 views
php send email using SMTP
I have an Android HTML5 php application where I want to enable users to send emails to other people by using Gmail or Yahoo. This is the code that I use
<?php
$smtp=$_GET["smtp"];
$youremail= ...
-1
votes
2answers
21 views
MySQL query using variables
I am using pretty much all variables in my query and i am pretty sure my syntax is wrong somewhere. I have tried a lot of different ways to setup my query. Basically im trying to update a specific row ...
0
votes
2answers
15 views
Redirecting each user to different page
I am creating a photography website for a friend. Part of it is a Client Login area where clients can enter the username and password my friend has given them to view all the photos from their shoot/ ...
0
votes
1answer
13 views
Editing a txt file with PHP/html
I'm currently using this PHP script to write to a text file, then another to read from that text file, however if I add more than one of these (while changing the name of textfile.txt to write to ...
2
votes
1answer
28 views
PHP: start session only when necessary
I have my own Session class, which handles session actions. I wanted to make a mechanism, that the session starts only when it is needed - if no session variables are set, system does not create it.
...
1
vote
0answers
8 views
Redis cuts of the string when getting a serialized object back. Cant find any limits
Using Redis to save serialized object. No error when trying to write to it. When getting the info back the string comes back cut off. Are there any settings I'm overlooking?
It looks like the limit ...
0
votes
2answers
19 views
Passing php variable to window.location
I use the following code for my sumbit to reddit button.
onclick="window.location = 'http://www.reddit.com/submit?url=<?php echo $url?>';
but the above won't work for cases where there a ' ...
-1
votes
0answers
21 views
Mysql Match Against & Like search
SELECT * FROM `db`
WHERE MATCH (city) AGAINST ('south ban' IN BOOLEAN MODE)
SELECT * FROM 'db'
WHERE city LIKE '%south ban%'
I have 2 queries, one is use Match against, the other is LIKE,
When I ...