Hi there fellow SOers,
I'm trying to do my own bookmarklet and I already tried to read some response in SO but nothing to answer the weird reaction I got from my script.
I'm doing an AJAX call from my bookmarklet, so I do the little trick :
var newScript = document.createElement("script");
newScript.type = "text/javascript";
newScript...
i'm trying to work out how i can stop zend or redirect zend to go to a different zend controller and action if a check within the boot strap fails.
for example a get variable does not exist or more likely a session does not exist meaning the user must log in.
so the user had originally requested index/someaction
but i want them to go ...
Php updates the xml files in certain period of time. Is there any possible way to send a change of content notification from php to flash application.
Thanks in advance
...
I need a validation function for both UK and NI vehicle registration number. It can be two separate functions too.
...
How does résumé upload work? I have a site in PHP and right now users can build their résumé line by line, because it is stored in db table. How can a user upload a resume in Word or other common format and have it uploaded into my db? Is it something to do with regex? Are there any scripts out there available that can do that?
Just tr...
i have string like this
$string = 'aaaaaa, bbbbbb, cccccc, ';
and i want to modified it to be like this
$string = 'aaaaaa, bbbbbb, cccccc';
the last ',' and space is removed.
how to do this in php?
what is the function needed the achieve that?
my full code is like this
if(isset($_POST['accomodation'])) $accomodation = 'Ac...
Hi,
I have this web service to import data but I cant import data because i got an error "Service Unavailable"
This is my request:
POST /webservice/User.asmx HTTP/1.1
Host: www.sample.com.au
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.sample.com.au/UpdateUserBatch"
<?xml version="1.0" encoding=...
Hi I have a question, I want to do an upload script that can take rather big files 500MB, 1GB
and upload it with resume functionality. Is this possible with just PHP or is there other solution like Java Applet, Flash and which one would be best for this case?
...
Hi folks, I have a PHP class that creates a SQL query based on values entered from a form. I'm getting
Incorrect syntax near the keyword 'WHERE'. ) )
Here is my code. The problem is occurring around each of the WHERE clauses, (already dealing with SQL injections btw).
if($from != ''){
$from = date('Y-m-d H:i:s',strtoti...
$test_string = '<a href="#">blah blah</a>';
$test_obj = simplexml_load_string($test_string);
fb((string)$test_obj[0]);
I thought I could just access the contents of the anchor tag by doing $test_obj[0]. I'm doing this to move away from using regular expressions to access individual html elements and properties in PHP. Is this cas...
Hello,
we are a small company developing a browser game. As planned we need a forum, wiki and a blog. The initial idea was to code everything by ourselves but time is short as always and we need to cut some corners. What we need is simple applications that have the general functionality. If you have used/developed something like that an...
Hi,
I have xsi:nil="true" in my soap request. What does mean? How can I pass value on that?
Any help is appreciated
...
Yes im having a issue i thought i didn't have.
When you submit it runs a javascript function, that runs an ajax call. This function have this right under it´s name(first line in the function):
$('#submitWall').attr('disabled', true);
This works very well, but not so well for the faster humans...I tried to click/pressing enter really...
I have this:
import JPGEncoder;
var bmd:BitmapData = new BitmapData(stage.stageWidth, stage.stageHeight, true, 0);
var bm:Bitmap = new Bitmap(bmd);
bm.alpha = .5;
stage.addEventListener(MouseEvent.MOUSE_DOWN, screenCap);
function screenCap(e:Event):void {
bmd.draw(this);
var jpgVersion:JPGEncoder = new JPGEncoder( 80 );
var jpgStream:...
Hello,
I am having an iPhone web app written in PHP and using the WebApp.Net framework. I would like to make this application work offline as well. As I understood I can not use the manifest tag of HTML5 because my files are PHP and not html. Or at least it didn't work with it and I don't know if I am in the right direction.
Does anyon...
I am trying to use Ajax pagination in CakePHP and have read you can pass the variables along in the URL however I cannot seem to set the route. When I click on next I get an error about the category not existing (because of a custom validation method I created) because the route isn't being followed.
I would like the $paginator->next()...
There is one-2-many relation between Property and Reservation. Property has column called 'nr_of_bookings'. I need DQL that will retrieve only the properties that has COUNT(Reservation) less than Property.nr_of_bookins.
An example: Some Property has nr_of_bookings = 3 . If it has 5 Reservations related, it will not be retrieved. But if ...
Hello!
I have a problem validating a given XML file in PHP.
This works with a given $myFile xsi schema:
function validate($file){
$xsi = $myFile;
if(@!$this->dom->schemaValidate($xsi)){
$warning = error_get_last();
throw new Exception ('XML validation of file "'.$this->file.'" failed: '.$warning['message']);
...
I have a situation where I need to make sequential AJAX requests represented by an ordered list (<ol><li>..) on the page. I use jQuery.
Requirements:
Each request has to wait for the previous one to complete with a successful status.
The success or error message needs to be appended to the corresponding list item.
The process should h...
I've verified that $requestDom->saveXml() is returning valid XML but at the destination URL I have print_r($_POST) and it doesn't receive anything. Am I missing something here? :-\
$connection = curl_init();
curl_setopt($connection, CURLOPT_POSTFIELDS, array(
'xml' => $requestDom->saveXml()
));
curl_setopt($conn...