what do "=&" / "&=" operators in php mean?
what do "=&" / "&=" operators in php mean? where can I read info about them? searching google doesn't help ...
what do "=&" / "&=" operators in php mean? where can I read info about them? searching google doesn't help ...
I'm working with websites written in PHP, along with many other programmers, and sometimes I have to deal with really awful code. Indentation totally messed up, curly braces in the wrong places, terrible whitespace use, it really hurts my eyes and actually makes my work harder and take longer. Is there a tool where you can specify your...
Consider the following code snippet: $beat = date('B'); // 1 beat = 86.4 seconds, 1000 beats = 1 day $total = 'SELECT COUNT(id) FROM ads WHERE featured = 1;'; // number of featured ads $current = 'SELECT * FROM ads WHERE featured = 1 ORDER BY id ASC LIMIT 1 OFFSET ' . ($beat % $total) . ';'; // current featured ad Basically this cycl...
I'm trying to manipulate some fields in a supplied Word 2003 document using the document's own bookmarks using PHP and COM but am getting an error which ever method that I use. If I try to call the Bookmarks directly to substitute the text I get an error: The range cannot be deleted. function testBkMrkDetails($word, $bookmarkName, $sub...
I'm having some major issues trying to consume my PHP SOAP webservice using ASP.NET. The webservice in question is based on the PHP SOAP extension and is descibed by the following WSDL: <?xml version="1.0" encoding="UTF-8" ?> <definitions name="MyServices" targetNamespace="http://mydomain.com/api/soap/v11/services" xmlns:tns="http:/...
Hay Guys, i have a basic string with holds a html table. The table looks like this: <TR> <TD>asdf, dfg</TD><TD>0915</TD><TD>0945</TD><TD></TD><TD>15</TD><TD>45</TD><TD></TD><TD>1315</TD> </TR> <TR> <TD>asdf, dfg</TD><TD>0915</TD><TD>0945</TD><TD></TD><TD>15</TD><TD>45</TD><TD></TD><TD>1315</TD> </TR> <TR> <TD>asdf, dfg</TD>...
Hi, I have this senario. We have an application server that contains a few web based applications that our users use. Our users and the groups are stored in an OpenLDAP database. Access to these applications are restricted depending on group. Now what I would like to do is that when the user hits the server (http://server/), a basic...
I need some help with regex: I got a html output and I need to wrap all the registration trademarks with a <sup></sup> I can not insert the <sup> tag in title and alt properties and obviously I don't need to wrap regs that are already superscripted. The following regex matches text that is not part of a HTML tag: (?<=^|>)[^><]+?(?=<|...
I have multiple tables with Customer data (ex Customer Name, Customer Contact Name, Customer Service Item etc). I need to enable search on these multiple columns across tables. Then I have to use the search result to pull Customer information (I need Customer ID, or Customer Name). What is the best way to do this? Possible Solution...
Hi I'm making a php script that would work like API on site that dosn't provide one. I'm using curl for it and the site is posting cookies with javascritpt, so i can't read them. Is there a php class or php module that would read javascript, store the cookie and let me resubmit it with curl to the mentioned page? I Red somehwer that i...
I want to create a folder structure through Flex or AIR... is it possible? I mean the Flex or AIR will receive the inputs on what the folders and file names will be and when i press create, it should create a directory structure... It is possible in PHP through fileSystem, but i am not sure whether it is possible in FLex or AIR.... ...
i have the following code in timer.php . If i run the file timer.php i get proper output as follows time left : 02 min 30 sec and this keeps on decreasing. But if include the file timper.php in other files using <? require 'timer.php' ?> only time left : is shown and actual timer countdown is not shown (in Fire fox). But if i run same...
Here is my current code (that i am very proud of for my first attempt at php) <?php $files = glob("/jobops/*.txt"); $indexcount = count($files); sort($files); print("<br>"+$indexcount+"<br>"); foreach ($files as &$file) { print("<a href=\"$file\">$file</a><br>"); } ?> the problem is glob again works fine in the root directory (whe...
I have a fairly complex community site (in php/mysql) with a number of "things" that the registered users can "watch". "Things" are: Posts, comments, event updates, user status changes, etc. At least 10 different types of "things" are available and a user can watch any other user's "things" (Think facebook) "Watch" means: A user can w...
Hello, I'm trying to build a cakePHP app, that indexes PDFs and allows me to search inside the documents. If I do a search, the engine should give me x,y coordinates of the search term, in order to highlight the text and create a jpeg from the temporary manipulates file using imagemagick. The simple ability to highlight search terms wo...
I want only a (faculty) group of users to be able to access a certain web page on my website. This page is only meant to be seen by faculty. Within active directory, we have a group called "faculty" Here is a snippet of code I have to authenticate users via ldap/active directory, but I want to only authenicate users that are within th...
I try to upload a file through PHP's ftp_put function, like so: ftp_put($this->conn_id, $rempath, $locpath, $mode); However I get the error "Cannot STOR." Nothing more. The FTP-connection is OK since I can download files using the same settings and ftp_get(). The script should be OK as well since it works fine on my local setup but no...
Is it possible to allow embed, object, and param HTML tags with HTMLPurifier? I'm trying to allow YouTube, Vimeo, etc. videos to be embedded, but they're always stripped, no matter what I try. I do understand that these are risky tags to allow. If it's not possible, what other HTML filtering options do I have with PHP? It doesn't seem t...
Hello All.. My setup: Ubuntu LAMP, application built w/ zend framework My Problem: I have a few php scripts that I trigger via cron - daily email reports, rrd data capture etc.. I launch them via a cronjob like 'php -f scriptname.php'. When I test the scripts from the commandline, logged in as myself, everything works fine. However, wh...
Aside from scalability issues, has anyone here actually stumbled upon a web-development problem where PHP just didn't cut it and had to go for another language / platform? I am interested in particular scenarios and the ways they have been handled. Thanks. ...