Hello all,
I've installed AjaXplorer (very nice web file explorer), written in PHP, on my IIS (Windows Server 2008 SP2 x64). It works too slow for me.
What can be the cause? Are there some settings in php.ini? Or, maybe, something is wrong with IIS?
I use 32-bit PHP, php-cgi.exe as interpreter.
Regards,
...
I am using this IP Validation Function that I came across while browsing, it has been working well until today i ran into a problem.
For some reason the function won't validate this IP as valid: 203.81.192.26
I'm not too great with regular expressions, so would appreciate any help on what could be wrong.
If you have another function,...
Hi,
I have the following MySQL tables:
TABLE: Products
----------------------
id | productname
1030 | xBox 360
1031 | PlayStation 3
1032 | iPod Touche
TABLE: Sales
----------------------
productid | saledate
1031 | 2010-06-14 06:30:12
1031 | 2010-06-14 08:54:38
1030 | 2010-06-14 08:58:10
1032 | 20...
When I use ../mysqlConnect.php I get the following messages.
Warning: require_once(../mysqlConnect.php) [function.require-once]:
failed to open stream: No such file or directory in /home/content/etc...
Fatal error: require_once() [function.require]: Failed opening required
'../mysqlConnect.php' (include_path='.:/usr/local/php5/...
How would you temporarily store several thousands of key => value or key => array pairs within a single process. Lookups on key will be done continuously within the process, and the data is discarded when the process ends.
Should i use arrays? temporary MySQL tables? Or something in between?
...
To start, I am using PHP with ob_start() and ob_flush.
In the code I have a part where parameters are suppose to be dynmacially loaded in the head of a file.
<head>
<script type="text/javascript" src="javascript/ajax_objects.js"></script>
//Enter More Code Here Later
</head>
What I am trying to is after the compiler has finished an...
i am trying to graph the results of a survey, where the question is multiple choice.
eg. How would you describe this website?
format:
option | number of times selected | percentage of users who selected that option
Informative 1 50%
All of the above 1 50%
Interesting 0 0%
Intelligent 0 0%
Cool 0 0%
Incredib...
The script is in PHP and as DB I use MySQL. Here is the script itself.
$unsafe_variable = $_GET["user-input"];
$sql=sprintf("INSERT INTO table (column) VALUES('%s')",$unsafe_variable);
mysql_query($sql);
Some people say that if user assigns ;DROP TABLE blah; string to the variable $unsafe_variable it deletes the table.
But I tried th...
I'm currently working on my own PHP Framework, and I need some help figuring out if I'm going in the right direction or not...
The framework is both for my own use and to generally advance my PHP skills further. I've encountered numerous problems that by overcoming them I have learned a great deal, and love being able to create somethin...
I have an app that receives a request from another app. It detects a value on the query string, checks that value against a cached value and, if they don't match, it needs to clear its cache and reload the page (establishing a new cache). Unfortunately, I can't find a way to tell Symfony to redirect to the current page in exactly the sam...
We're developing a software that will manage users and I need to build an application with Kohana 3 and Auth Module. My application will allow just login. I don't need to append a salt to the passwords when user log in. How could i do that?
Thank you.
EDIT:
I know, its wrong but I changed the core. Now I encrypt password without the sa...
I need to build a script that will query a remote storage server with multiple drives for their free space.
I simply login with SSH, run df and throw the output into a variable. Which looks like this:
Array
(
[0] => Filesystem 1K-blocks Used Available Use% Mounted on
[1] => /dev/sda1 59392320 14...
I used this code
$new_date = date('Y-m-d H:i:s', timetostr($orig_date));
to convert this input Wed Jun 2 2010 to a datetime output 2010-06-02 00:00:00
When I read it from the database, how do I convert it back to the original format of Wed Jun 2 2010?
...
I have an online form which collects consumer data and stores in a dedicated MySQL database. In some instances, data is passed in the URL under the "RefID" variable which is also stored in the database and attached to each registration.
I use the 'mysql_num_rows ($result)' to fetch all agent details on another page but this only return...
I have a smb mounted directory:
/Volumes/myshare
This was mounted via Finder "Connect to Server..." with smb://myservername/myshare
Everything good so far.
However, when I try to access the directory via PHP (running under Apache), it fails with permission denied about 10% of the time. By this I mean that repeated accesses to my page...
Our website was just converted to being generated by mod_rewrite and php scripts. Images aren't caching in browsers when they seemingly should be.
All images follow format:
<img src="/images/header.png" />
I must avoid the script completely caching because the PHP parser needs to handle each page dynamically on each request; however,...
I'm writing a service in C# on Windows which should be triggert by an PHP driven web frontend, which runs on Linux.
Both processes share the same SQL Server 2005 database.
There is no messaging middleware available atm.
The PHP process inserts an row in a SQL Server table. The Windows process should read this entry and process it.
I...
I have a web app where I need to change a drop down list dynamically depending on another drop down list.
I have two options:
Get all the data beforehand with PHP and "manage" it later with Javascript.
Or get the data the user wants through AJAX.
The thing is, that the page loads with all the data by default and the user can later sel...
I'm trying to limit my users to entering at least 10 keywords and was wondering how would I be able to do this using PHP & MySQL with my current Keyword script?
Here is the add keywords PHP MySQL code.
if (isset($_POST['tag']) && trim($_POST['tag'])!=='') {
$tags = explode(",", $_POST['tag']);
for ($x = 0; $x < count($tags); $x++){ ...
Hi,
How can be created new user in google Google Apps Standard Edition account with Zend Gdata/PHP ?
(Is it possible or google only give option to make it manually?)
Thanks
...