I'm running a php script from the command line against SQL server 2005 using the MS driver for PHP and getting time outs. The query takes about 2 minutes from SQL Server Management Studio and returns > 300,000 rows.
There are multiple queries in the script and for each one I do a sqlsrv_connect(), execute the query and then sqlsrv_free_...
Please if you know, make a response.
thanks
...
Hello,
I am working on trying to install and customize the OSS version of WikiHow (built on Mediawiki.) I am having a devil of a time getting even the basic feature set to work. The code is available here..
http://www.wikihow.com/x/wikihow-source-code.tar.gz
...
I'm working on someone's code and they have a constructor that uses:
class qwerty {
public function __construct(){
// some other code
$this->get = $_GET;
}
}
My question is this: Is it possible to sanitize the data within the constructor?
Even using some simple function like strip_tags()?
Example of usage:
$qwerty = new qwerty;
...
Hello,
How can I read from mysql and write the same in http output stream.
So its like if send a request http://www.xyz.com/download/A
it should return me data for A from mysql through php.
The data is plain text.
Thanks
PS: I am new to php.
...
I've followed the instructions at How to build an Apple Push Notification provider server (tutorial) in an attempt to set up a push notification server.
When I attempt to connect with the following PHP code
// connect to apns server
$strAPNSUrl = 'ssl://gateway.sandbox.push.apple.com:2195;
$strAPNSCert = 'dev.pem';
// generate stream
...
hi frnds my requirement is that i want upload both folder and files is that possible?i am using following code for uploading the files also i want 2 upload the folders can anyone send the code
<?php
$target_path = "../mt/sites/default/files/ourfiles/";
$target_path = $target_path . basename( $_FILES['uploadedfile']['name']);
if(move...
What would be the best way for me to pass data from a form on one page to another? For example an email form field is input on one page and that takes the user to a new page with that field already completed. If someone entered the page without using the email form submit link then the field would be blank. I know this can be done thro...
I have a table in postgres called workorders. In it are various headings. The ones I am interested in are labor, date_out and ident. This table ties up with wo_parts (workorder parts). In this table are the headings I am interested in, part and workorder. Both are integers. (part auto number) The final table is part2vendor and the headin...
Hi all,
Can anyone recommend a simple document management system with a decent web service interface?
I am looking at using it to provide metadata management of uploaded files from a ajax web application.
I've tried KnowledgeTree, but it's web service layer seems to be a bit complicated. Is there anything else out there with the simil...
My current solution will suck sometimes
EDIT
For those who don't understand,see this example:
<a title="<?php echo 'test';?>" >...
...
I'm new to CakePHP and am just running through the configuration process, but am stumped why Cake can't access my MySQL database. The Cake info page says my tmp directory is writable, the FileEngine is being used for caching (don't know what this means), and my database configuration file is present, but that CakePHP cannot connect to th...
What would be the best way to detect newline return method in PHP. CR, LF or CR+LF
And if possible convert it to specified type.
...
I've built out most of the functionality, now I'm getting stuck...
I am creating a private, web application that has an invite only registration system. An admin user sends an email invitation to a user, the user clicks the link, and takes them to a page where they can create an account that has been linked to their email address.
When...
Hi,
I am using Squeeze Box to access a PHP file which prints an alert for the user based on the link clicked (i.e. PHP file uses $_GET variable).
The problem is when I click once the alert box open correctly but when I click the link again, the result appears twice i.e. it duplicates itself and the results continue replicating each tim...
hi to all
I have a problem for querying records into mysql
explanation below
The user could pick a date to assign in variable fromdate and todate
example.
$fromdate = 2008/01/01
$todate = 2009/10/31
In above case, i have to loop and query with the ff:
SELECT * FROM table where date BETWEEN '2008/01/01' AND '2008/12/31';
second...
I'm running a couple of sites and are thinking about moving over to using Nginx instead of Apache and as such I need to move to FCGI where the preferred choice right now seem to be PHP-FPM.
I'm simply wondering about what version of PHP to use. My current sites (using Apache and mod_php i.e. plain vanilla LAMP installation) is using 5.2...
I have a directory with fullsize images and thumbnails. The thumbnails are prefixed with thumb_ and then share the same name as the full size counterparts.
What do i need to do the script below to get both the full image and the thumb, so i can echo the correct link? As is, it returns all images.
<?
$dirHandle = opendir("images");
...
Hi Guys,
I am searching for Open Source Finance scripts such as Account Payable, Account Receivable, General Ledger etc in PHP. But I couldn't find a good one.
Is there any such open source scripts in PHP available over the web for download?
If so, could you please give me the links.
Thanks
...
I am coming from a C++ background and am used to testing code by setting breakpoints, viewing variables in the debugger etc.
I am now doing web development (using the symfony framework). what I really miss is not being able to set a breakpoint when a particular action is performed (e.g. a url clicked etc). Is there a FREE (GPL or other ...