Is it possible to create a web based script that would allow a user to sequentially download multiple files without causing the user to accept each forced download?
Potential Process:
User selects files to download.
User selects directory or directory is predefined within the script.
Files are downloaded to their local drive sequentia...
Have you ever had any issue with PHP timezones conversions through the getTransitions function?
I am trying to convert an Argentinian date into GMT. If I look into the array of transitions, I get:
....
[63] => Array ( [ts] => 1287284400 [time] => 2010-10-17T03:00:00+0000 [offset] => -7200 [isdst] => 1 [abbr] => ARST )
[64] => Array ( [...
I'm trying to include my plugin stylesheet on my WP website (frontend), but for some reason it's not working.
function init_gallery_scripts() {
if (is_admin() ) {
// This works!
wp_enqueue_script('gallery', plugins_url('js/gallery.js',__FILE__),array('wp-filebrowser'));
wp_enqueue_style('gallery-css', plugins_url(...
Hey people,
I have always made my authentication codes by checking if the MD5 + salt of the pass provided by the user in the form was the same as the one stored in the DB, and if it was, i saved a session variable called "status", equal to 1. The, he was logged.
I'm pretty sure this is wrong and insecure, but i never seen any other me...
I want to build a application in codeignitor. Anybody, have any good ideas for something for me to build?
...
Hello
In the CMS of the eshop i am developing the other developer for static pages stores each static page at the database..
There is a form where you add static pages on demand.But i think that instead of storing the content at the database storing the path to the file might be a better solution...
What do you think?
The static content ...
hi guys,
I am given a page url like 'http://abc.com/test.php?a=1&b=2&c=3'. Now I have been told to change the value of b to 5 so that it becomes 'http://abc.com/test.php?a=1&b=5&c=3'.
i.e change from http://abc.com/test.php?a=1&b=2&c=3 to http://abc.com/test.php?a=1&b=5&c=3
Note: variable b here can ref...
Hello,
I get the error PHP Fatal error: Call to a member function execute() on a non-object refering to the ....->execute() line whenever I call something like
$select_str = 'select id, stamp, lat, lng, spd from gps';
$select = $db->prepare($select_str);
$select->execute();
or
$insert = $db->prepare('insert into gps (id, lat, lng, ...
Possible Duplicate:
How do i Loop through the hidden field items and put in Session using PHP
I have a hidden Field which contains this format which contains the Set of rows separated by ';'(semicolon)
and each row contains some columns name separated by ':' (colon) and each column value separated by ',' (comma)
so m...
I would like to filter the post and page content to append html tags to specific content prior to saving the content to the database.
For example, given a keyword phrase "Red Yoga Mats", I would like to scan the page/post content and replace the first instance of "Red Yoga Mats" with <b>Red Yoga Mats</b> and replace the second instance ...
Guys, i have a problem with POST and i hope someone can help me. I have two pages, A and B. I need to send some data through POST from A to B, and B can't be modified in any way. How can i send my POST data from A to B, using PHP? The thing is: i don't need to just send the data, i need to go to the page as well, while sending the post, ...
I've built an HTML form that sends an email via PHP, but it's giving me some errors that look like this:
Notice: Undefined variable: selected_radio in /webdocs/com-interplay2010-www-1i/webroot/holiday2010/submit.php on line 8
Notice: Undefined index: gender in /webdocs/com-interplay2010-www-1i/webroot/holiday2010/submit.php on line 12
...
I'm choosing between these two languages, in contrast to another question here. My program going to be set of scripts checking files, free space, checking that apps are running etc. and writing information to database. Then PHP web page will show results.
Python have more examples of winapi calls (at least at StackOverflow) and more att...
Hey guys, I was wondering if there was an easy, yet fast way to learn PHP. I am really excited to learn, and want to hear from the experts...
What materials do I need in order to learn PHP?
How long did it take you to learn PHP?
What are some good programs, or what do I need to do, to learn PHP?
...
Im trying to search for something on a page but i keep getting this silly error
this is the error i am getting
Warning: preg_match() [function.preg-match]: Unknown modifier 'd'
this is the code im using
$qa = file_get_contents($_GET['url']);
preg_match('/<a href="/download.php\?g=(?P<number>.+)">Click here</a>/',$qa,$result);
And $...
Hello,
I am just curious if someone can get me pointed in the right direction with searching MySQL with AES encryption.
There are a couple of things that need to be considered. If I take the keyword and encrypt it before searching, i'm comparing encryption to encryption and even if one letter is cap and another letter isn't cap insid...
I am looking to create a general knowledgeBase for my customer service department which takes information (my thought is from a mysql database) and populates a page with that information based on the content pulled.
Take this site for example:
ToastMaster
I would like to store a primary title, main content, images, etc on my site witho...
I'm trying to match all occurances of "string" in something like the following sequence except those inside @@
as87dio u8u u7o @string@ ou os8 string os u
i.e. the second occurrence should be matched but not the first
Can anyone give me a solution?
...
I have downloaded a backup copy of my cpanel webserver. I install WAMP on my local laptop.The database and php username and password have been set. Then I loaded the database into the local MySQL database. I verified the phpinfo.php is working. I setup dreamweaver manage site with the extracted website on my laptop. Now the back end adm...
I run a DV 3.5 server on MediaTemple with Linux CentOS 5, php and mysql DB and am trying to encrypt phone records with AES.
I came across what seems to be good script as PHPAES
but I am not sure of the following:
Where do I actually store the AES
Encryption key used to encrypt and
decrypt the phone number?
How do I call on the AES ...