Hi there. It's final try with PHP, if it fails, I'll try with JS. So my goal is to post on FB page as "Page name" through PHP: this is what I want to get
But all I get is shown pic below. Also, it's visible ONLY to this profile (not to friends/ppl who like/etc.).
This is my current code
function post_facebook($data=null, $redir =...
I have a PHP script that is run through an AJAX call, and it can sometimes take very long (up to 30 seconds) for some people. To help keep the visitor's attention, I show a progress bar of how far along the process is, as well as listing random facts about the what the web app does, etc etc.
In order to update the progress bar to show e...
I have a fairly simple question I'm guessing. I have the following code at the beginning of my function, but it must not be correct because it causes the blank to turn blank. If I comment out the IF statement, everything runs fine.
What am I doing wrong?
Sorry, it's probably very basic...
function get_entries($order = 'newest', $slug ...
Why do a lot of people use both these functions on a string?
I see a lot of stripslashes(strip_tags($field)); (or the other way around)
Isn't strip_tags enough to filter any xss stuff and such things?
...
what i want is this the date variable which i insert and select back in my table to echo should display the correct date like today date is 2005-10-27 when i insert the variable date and select to echo it display this 2012-10-20 also my U_date field i choose date for the type lastly how can i make the date to look like this 10-June-2010 ...
Hi,
I got 2x public functions in a class that must call 1 private function with different parameters also in the same class... for some reason it tell me that it can't find the function...
example:
class Foo {
private function Do(...)
{
....
return $whatever;
}
public function One(...)
{
return Do(...);
...
Hello everyone,
I have a csv file with records being sorted on the first field. I managed to generate a function that does binary search through that file, using fseek for random access through file.
However, this is still a pretty slow process, since when I seek some file position, I actually need to look left, looking for \n charact...
Hi,
I have some trouble with this.
I have one database with the following tables:
Countries -> All countries of the world are added
Cities -> The cities are also added
user_profile -> The profile of the user with the fields "country" & "city".
Everything works fine, even the populating of the boxes is working. But I don't know how to ...
$j[0]='is';
$j[1]='for';
$diff = array_diff($uniqdesc, $j);
foreach($diff as $find){
echo $find."</br>";
$uniquedesc is an array from a string of words.
I need to print out all the uncommon words. The above code is working fine and eliminating 'is' 'for'
Now I stored all the common words in a text file. And I need to eliminate those...
I have this script in the head of all my pages- which in an include:
<?php
if (isset($robots) && $robots == "off") {
$robots = '<meta name="robots" content="noindex,nofollow">';
print $robots."\n";
} else {
$robots = '<meta name="robots" content="index,follow">';
print $robots."\n";
}
?>
After the hea...
I have this array in PHP
array(5) {
["mai_id"] => string(1) "3"
["mai_logo"] => string(0) ""
["mai_title"] => string(16) "Vitrine Cultural"
["mai_description"] => NULL
["mai_description2"] => NULL
}
And I'd like to remove ["mai_description"] and get only
array(5) {
["mai_id"] => string(1) "3"
["mai_logo"] => string(0) ...
I'm trying to add seconds to a date based on certain events that occur. Often times, if these events occur at the same time, too many seconds get added on. Here's how I am currently doing it in PHP and MySQL
$time_add_on = 15 - $seconds_left;
DATE_ADD(STR_TO_DATE(end_dt,'%Y-%m-%d %H:%i:%s'), INTERVAL '".$time_add_on."' SECOND
What t...
I'm trying to make a sort of PHP bot. The idea is to have to php files, named a.php and b.php. a.php does something, then sleeps 30 seconds, calls b.php, b.php ends the Http request, does some processing, and then calls a.php, which ends the Http request, and so on.
Only problem now is how to end the Http reqest, made using cURL. Ive tr...
I have viewed my httpd.conf and apache2.conf and I have no AllowOverride directive in either of the files.
The .htaccess works fine. I have a bunch of rewrites in it, so I know it works.
Is apache2 by default set to "AllowOverride All"?
Anybody know if I should add this? Or if it would hurt to add it?
The reason for all this is that ...
I have several stages to an application process consisting of multiple forms on different pages.
I have created a session to handle the data.
My question is, without explicitly stipulating every form field form can i add the form post to an individual part of the session array one by one.
So that when im at the end i can just loop...
Having problems with and update query i keep getting
Warning: Crud::update() [crud.update]: Property access is not allowed yet in crud.php on line 60
This is my code
$stmt = $this->mysql->prepare('UPDATE links SET title = ?, url = ?, comment = ? WHERE id = ?');
$stmt->bind_param('sssi',$title,$url,$comment,$id);
$stmt->execute();
...
please help me, my problem is:
in one .txt file i have
rpgoCPpref = {
["enabled"] = true,
["button"] = true,
["debug"] = false,
["questsfull"] = false,
["tooltipshtml"] = true,
["tooltip"] = true,
["verbose"] = false,
["scan"] = {
["inventory"] = true,
["talents"] = true,
["glyphs"] = true,
["honor"] = true,
["reputat...
I need to store the customers' driver license # (most of the time) (or personal ID) so when they come to pick their product they can identified themselves based on their id. This is usually the way it is handled everywhere in my country (unfortunately). However, I would like to store this #'s encrypted in mysql. I now I can make use of A...
Ok I have the following function that creates a select menu so a user can choose a state.
function state_selection()
{
$str = '<select name="state">';
$states = array(
'Alabama', 'Alaska', 'Arizona', 'Arkansas', 'California', 'Colorado', 'Connecticut', 'Delaware', 'District of Columbia', 'Florida', 'Georgia', 'Hawaii...
Hello.. At the root of my site... www.domain.com . want to add some static pages that the page url can be set from the user.
So if the users set as url profile then full page url should be www.domain.com/profile ..
So far a simple rewrite rule would do the job.
trasnlate it to something like /staticpage.php?tag=profile
The problem...