Hello,
I would like to set a cookie with PHP that has to expire at the end of the month.
How can I get the number of seconds until the end of the month?
Thank you.
Can anyone tell me if its possible to validate a link with php? By validate, I mean check if the link is active and works not just the actual format of the link.
Hi,
Can anyone please tell if there is a simple and easy to use treeview control in php which support checkboxes?
I am looking at something that can work in IE 7 please.
I should be able to get the selected values etc.
Thanks.
What do I need to put in a php code so that the user cannot access it even if he specified the correct url for the page they are trying to access. And redirect it to the logon page. I'm really having difficulty in this matter, everytime I click back button on the browser the user can still access the page
hi all,
i m searching for a php script that download video from any video site( youtube,metacafe etc..) by submitting only url of that video.
is that possible by one script or i have to search different script for different site??
what is basic need to download video???
please reply ASAP.
thank for support me always.
is it possible to return findOne result as object ..or it always return an array?
i found something about mongo.objects = 1 adding to php.ini ..but did not work for me.
can some one tell me more about this?
Hi All
I just installed php 5.3.1 in my linux server and now my old work which i used to write with tags is not working at all..
Please help me out..
How can i resolve this??
hello
i want to create a special php and javascript page. but i want to use it into my wordpress so i want to use the exact theme that is already there in my wordpress. how to do that?
Thanks
hi,
what does this construct mean in PHP ? It is storing a variable called "function" with his String value in an array ?
array('function' => 'theme_select_as_checkboxes')
thanks
I am using wordpress and I am wondering how do I get just the permalink and name of the category of a post when using:
<?php the_category() ?>
The above outputs a list and I just want to be able to wrap the permalink and category in my own markup
Hi guys.
I have :
<a href="http://abc.com">Title</a>
And :
<a href="http://xyz.com">Title</a>
I want to replace link to text "Title", but only from http://abc.com. But I don't know how ( I tried Google ), can you explain for me. I'm not good in PHP.
Thanks in advance.
I'm looking for a function that will accept a string representing the scheme portion of a URL (e.g., "http", "https", "ftp", etc.) and return the standard port. It might be used like this:
echo get_port_from_protocol("http"); // 80
As a last resort, I suppose I could write something to parse through /etc/services (assuming I only need to run under UNIX-like operating systems).
But surely there must be something built-in to PHP, no?
Thanks in advance, I am looking for a good way to make forms in php. I don't want to have to create all the items in html and want it to look good, be easily validated, and in general be easy to work with. Suggestions.
Hi ....
i have a problem in php code (inserting values in database)
i use PHPMyAdmin
my DATABASE has 3 tables:
1) Member with this fields: MemberID, MemberName
2) Room with this fields: RoomID, RoomName
3) Join with this fields: MemberID, RoomID
the idea is to join the member in the room.
My query was
mysql_query("INSERT INTO join (RoomID, MemberID)
VALUES ('121', '131')");
but unfortunately it is not work
Hi,
Okay, so I currently execute an ffmpeg command via PHP to run a video conversion. The Problem I'm Having is during the conversion, the ffmpeg process(es) use up so much CPU/Processing Power (near 100%), which slows down the response of my webserver.
Is there a Way (crontab or script) I can limit the ffmpeg processes to a certain CPU percentage?
Thanks,
More good news on the Interoperability front: the new phpBB release is now available for installation from the Windows Web Application Gallery and Web Platform Installer (Web PI) for Windows, IIS and SQL Server. Version 3.0.7-PL1 of phpBB takes advantage of a number of features for PHP applications on the Microsoft Web Platform with Windows, IIS and SQL Server, including SQL Server Driver for PHP 1.1 , which provides key interoperability for PHP applications to use SQL Server or SQL Azure for data...(read more)
I am trying to install nginx with php but when I am following a guide, like this one: http://www.justincarmony.com/blog/2011/10/24/setting-up-nginx-php-fpm-on-ubuntu-10-04/ I am always told to add that repository (sudo add-apt-repository ppa:brianmercer/php) but I can't.
I'll just get "Error: can't find signing_key_fingerprint at https://launchpad.net/api/1.0/~nginx/+archive/php5" and when I go to that website I find that there is a fingerprint specified but still I get that error message. Is there anyway to specify it myself?
And for the last thing, how I can fix this so I can continue my installation towards a working nginx enviroment with php.
Thanks for your advice and better wisdom.
I have a developer environment setup with WAMP, Wordpress, and PHPEdit IDE. I use the Facebook, Twitter, and YouTube API's in a sidebar. I'm using Facebook's PHP SDK to display information(no login or admin functions). Since the FB SDK and WP use session_start() I get the following warning:
Warning: session_start() [function.session-start]: Cannot send session
cache limiter - headers already sent (output started at
C:\wamp\www\dfi\wp-content\themes\DFI\header.php:12) in
C:\wamp\www\dfi\wp-content\themes\DFI\api\facebook.php on line 36
I'm trying to figure this out by using the warning output but it doesn't help considering the following. I know about clearing white space and characters before and after <?php ?> and placing session_start() before any http output. I use unix line enders and UTF8 encoding without BOM. My host server is not set up for output_buffering.
header.php line 11 to 13
11 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
12 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes();?>>
13 <head>
It looks like the warning comes from inline php code. I don't know what I can do to fix this line.
facebook.php line 34 to 37
34 public function __construct($config) {
35 if (!session_id()) {
36 session_start();
37 }
I don't think I can stop either FB or WP from calling session_start() without breaking everything. How do I make Wordpress and Facebook play nicely together without this error?
I set up a website with my own custom PHP code. It appears that people from places like Ukraine are trying to hack it. They're trying a bunch of odd accesses, seemingly to detect what PHP files I've got.
They've discovered that I have PHP files called mail.php and sendmail.php, for instance.
They've tried a bunch of GET options like:
http://mydomain.com/index.php?do=/user/register/
http://mydomain.com/index.php?app=core&module=global§ion=login
http://mydomain.com/index.php?act=Login&CODE=00
I suppose these all pertain to something like LiveJournal?
Here's what's odd, and the subject of my question. They're trying this URL:
http://mydomain.com?3e3ea140
What kind of website is vulnerable to a 32-bit hex number?