PHP - How to display vertical text (90 degree rotated) in all browsers?
PHP - How to display vertical text (90 degree rotated) in all browsers in php? ...
PHP - How to display vertical text (90 degree rotated) in all browsers in php? ...
can this code snippet be modified to reveal html coding? <?php $_option = $this->getOption() ?> <?php echo $this->htmlEscape($_option->getTitle()) ?> it is showing a title but in that title i have an href: <a href="http://link" target="otherwindow">link</a> instead of it appearing as a link it just shows me the code. i'd like it t...
I am having a hard time to find a way to detect if two words has the same rhyme in English. It has not to be the same syllabic ending but something closer to phonetically similarity. I can not believe in 2009 the only way of doing it is using those old fashioned rhyme dictionaries. Do you know any resources (in PHP would be a plus) to ...
I am using two decorator - To get tabular form alignment - To get date picker (ZendX_JQuery_Form_Element_DatePicker) both are working individually, but not at a same time Error: Warning: Exception caught by form: Cannot render jQuery form element without at least one decorator implementing the 'ZendX_JQuery_Form_Decorator_UiWidgetEl...
We currently have a website that has user account functionality, but we are looking to provide an API to allow users to manage their accounts/perform actions via other devices/websites, by providing an API for common tasks. Currently the website login is done via HTTPS for security, and then managed using PHP sessions with suitable secu...
I have two tables (item and category, I think they speak for themselves) and two associated model objects. I'm facing a design decisions in the function that fetches 1 item from the database. I need this method to also return the category (name, not just id) of the item. I have two options: In the item model, use an SQL join to get th...
I have one database, with one table, with a particular field which has descriptions of various clothing. These descriptions often contain umlauts or similar characters. I am retrieving this fields from two different php fields, and I am not doing anything to the data, yet it displays inconsistently. In file1, it will display correctly ...
How can I make this two queries in one ? $query = "SELECT * FROM `amb_prod` WHERE idAmbiente='".$ambId."';"; $result_set = mysql_query($query); while($member = mysql_fetch_array($result_set)){ $query2 = "SELECT * FROM `produto`, `pt` WHERE produto.refPT = pt.ref AND produto.refPT = $member['idProduto'] ;"; $result...
I've been trying to figure out how to properly setup DreamWeaver in such a way that I can create WordPress themes. Right now I'm running WordPress on localhost, accessing it via DreamWeaver. Then I'm using LiveView on the actual WordPress code and modifying the files in the theme folder. What I'd really like to do, and I'm not sure if t...
I'm looking for a good online tutorial for PHP. It would be great if it includes exercises. ...
PHP. $a['0']=1; $a[0]=2; Which is proper form? ...
Several visitors connect to http://site.com/chat.php They each can write and send a text message to chat.php and it displays instantly on everyone's browser (http://site.com/chat.php) Do I have to use a database? I mean, is AJAX or PHP buffer capabilities enough for such a chat room on sessions? How can sessions of different users sha...
Hello, I am trying to run the following in php $test = svn cat .... Now the output of $test is basically a binary file returned by svn. How do I make this binary file available as a download. Am trying to put the following: $test = `svn cat ....` header("Content-Disposition: attachment; filename=" . urlencode($filename)); header("Con...
Hi, Want to be alerted when a secure remote proxy server stop working; for instance if Apache hangs for some reason. As the remote machine will still be up, will still be able to ping, though this would prove very little. Need to be able to script something that requests a path through the proxy and then returns the result. Investiga...
I've got files on Amazon's S3. They are named with a unique ID so there are no duplicates. I am accessing them using an authorized URL. I need to be able to pass them through to the browser, but I need to rename them. Right now I'm using fopen, but it is downloading the file to my server before serving the file to the browser. How can I ...
I am familiar with the formula to calculate the Great Circle Distance between two points. i.e. <?php $theta = $lon1 - $lon2; $dist = sin(deg2rad($lat1)) * sin(deg2rad($lat2)) + cos(deg2rad($lat1)) * cos(deg2rad($lat2)) * cos(deg2rad($theta)); $dist = acos($dist); $dist = rad2deg($dist); //convert degrees to distance depending on u...
I’m moving some old code over to the new msqli interface using prepared statements, I’m having trouble with SQL statements containing the IN clause. I would just normally do this: $ids = '123,535,345,567,878' $sql = "SELECT * FROM table WHERE id IN ($ids)"; $res = mysql_query($sql); Converting this to mysqli and prepared statements I ...
Hi to all I'm using echo date('H:i:s')." this step time\n"; in order to know how much time needs for each function in order to be executed. How can I know the time with microseconds also? ...
Here is my issue. I am trying to call a page: foo.php?docID=bar and return a PDF to the screen which is stored as a BLOB in the DB. Here is the portion of my code which actually returns the PDF: $docID = isset($_REQUEST['docID']) ? $_REQUEST['docID'] : null; if ($docID == null){ die("Document ID was not given."); } $results = ge...
Outside of the source code, is there any extensive documentation on the Magento ORM? I get the basics, and can usually dig through the Mage code base, litter it with Mage::Log calls and figure out something that works, but my efficiency would go way up if I had a high level overview of how the models are intended to be used. How do the...