I have a php page with some functions to recieve POST data, with a page refresh, no AJAX.
Right now I have a form with hidden fields that contain my dynamic data that I send with JS like so: document.my_form.submit();
Is it possible to send the data without using a form?
Basically I want to send an array of URL's from a list with thum...
I am in love with Cucumber. It's easily configured for a Ruby on Rails application. However, I'm new to Ruby and so is the rest of my team. We are writing PHP applications using the Zend Framework. I'm interested in hearing how you have implemented BDD for your PHP applications and what frameworks/libraries I should use. Have you configu...
Hi,
I have made a function simular to the print_r function in php.
Is there a way that you can add to the base functions of php so any sites that are on your server can use your new function.
basically i have made a print r with a header to save the sessions to a file for debugging .
does any one know if this is possible.
Thank you :...
Error is "Could not resolve host: (hostname); Host not found."
This randomly started happening again on my development computer. It works fine on the production server, so whatever. But I still need to test this here. Here's the code:
function useCurl($xml,$cert,$host){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$host);
curl_setop...
My web host (bargainvault) has PHP 5 installed, but it does not have a ton of database drivers installed. I specifically need sqlite3, but they only have the sqlite driver installed. And no PDO.
So, my question is how can I bring support for my database to my application if there is no driver installed? I have looked at several database...
Is there any way to change the layout of a facet?
I know you can create a file in the template dir named: block-apachesolr_search-[field].tpl.php
The problem I am having is that at this stage the html in the block variable has already been created.
Is there any way to change the html or just get the elements of the facet?
Thanks!!
...
So we were going to make a website allowing users to upload video. The website is going to be in PHP/MySQL. Are there any converters out there available for PHP to convert a video from a given format to flash to display on the web page to play?
Basically we would have a file on the server in say .avi format, or quicktime format. How do ...
Hi,
I'm using SQL Server and querying it with php. I have a query that selects data based on dates entered.
$tsql = "SELECT COUNT(tblBackupArchive.StatusID) AS total, tblBackupArchive.StatusID ".
"FROM tblBackupArchive INNER JOIN ".
"tblBackup ON tblBackupArchive.BackupID = tblBackup.BackupID ".
"W...
Hi everyone!
I'm trying to write down some concrete ideas for a light framework (on PHP5), with the purpose to handle a lot of requests and to make it scale well in terms of high traffic eventualities.
I've already started it, but I'm not really satisfied about the coding style, which is basically composed by simple classes and helpers,...
After having upgraded to PHP 5.3, my application was inundated with "Declaration of ... should be compatible with that of ..." style errors. I understand the nature of these errors, but I wish to disable them. The "error_reporting" setting in php.ini is "E_ALL & ~(E_NOTICE | E_DEPRECATED)", but this error continues to show up. I assum...
In my application, I am running a shell script but till the script completes executing the screen is blank. I am not able to display anything on screen. I want to display the log file to the user so till the log file is generated, i want the user to see some text content on the screen.
I read previous questions posted where they say mul...
Hello,
I'm trying to learn PHP using netbeans although I've come up against a problem with the interpreter and I can't tell how to fix it.
It's to do with the notation <<<_END. It should, from what I'm learning wrap everything into a variable until it's ended with _END
However, if I plug in the following example:
<?php
echo <...
Short story:
I'm getting an open_basedir restriction in my php script - a simple "test writing a new file to disk" script. It SEEMS to me that I've got the open_basedir settings correct and the file is in the right location - but no luck, just the same error every time. I've searched for similar open_basedir problems on this site, but...
What I'm trying to do is:
I have a form. I submit that form. In the code of the target script I want to make some validations. In a certain case, I want to make a POST to another URL. I don't want to just make a redirect to an URL.
I don't know if this is possible, that's why I'm asking.
I'm working with PHP.
Thanks!
...
Given a stylesheet with various rules, some of them being for hyperlinks, I would like to present each rule (only those containing "a" tags) along with the current value for "color" to allow the end user to click on a colorpicker widget and change the color. Using jQuery Ajax with PHP to save the updated color back to the stylesheet.
Fo...
I'm wondering why php adds a backslash when i remove double quotes.
<input type="text" name="number" id="number" />
<input type="button" name="button" id="button" value="Button" />
Say they user enters the value 5-1/2" and i'm passing it to a processing page via jquery's .get method.
$('#button').click(function(){
$.get('determi...
In PHP, I use CURL to send a .PEM formatted certificate to a remote host. For example:
curl_setopt($curl, CURLOPT_SSLCERT, '/path/to/file.pem');
How can I do this in Java?
...
Hi,
I wrote a simple AJAX callback function in Drupal that performs a query to the DB and returns a JSON formatted string. Nothing fancy, the standard AJAX declaration in the module with a modest amount of information (less than 4KB). The query to the database takes 52ms. Drupal adds around 320ms of overhead for a total of 370ms + laten...
Hello
I was browsing thru the docs of APC (Alternative PHP Cache) and I've seen that it has a function called apc_compile_file. The Docs say that this function is to:
Stores a file in the bytecode cache,
bypassing all filters.
Is this like HipHop's idea, to store PHP code in more optimized code? If is not, can someone educate me...
I have an xml file saved and this is what I want to do,
when some one click the link that contains an xml file, I want them to ask the question if they want to save or open the file.
I know there is a way to do this using http header to send and trick your brower into using the application/octet-stream mime type, but I forgot how it wa...