false / FALSE - Any difference?
I noticed that some php frameworks use exclusively lowercase true/false and others upper. Does it make any difference at all. I for one prefer lowercase. Thanks in advance ...
I noticed that some php frameworks use exclusively lowercase true/false and others upper. Does it make any difference at all. I for one prefer lowercase. Thanks in advance ...
How can I make a regex pattern for use with the PHP preg_replace function that removes all characters which do not fit in a certain pattern. For example: [a-zA-Z0-9] ...
I have the following entities: User Admin : Inherits User Rules (relation: Rules * <-> 1 User) I can access $user['Rules'] to get a Doctrine collection for Rules. However $admin['Rules'] does not return anything. (No error either, normally a Unknown related component 'Rules' error would be thrown. Any help would be greatly appreciate...
I am coding a website in PHP and Javascript which implements private messaging functionality, and i wanted to have it so when a user recieved a new message it notifies them (by a flashing 'mail' icon at the top of the screen). The question is how to implement this functionality without having to check the messages database for unread me...
Hello, I'm creating a custom calendar app that is using Google Calendar as a base. I am wondering if there is a way through the Zend Gdata library to manage calendar sharing. From the documentation it does not appear so, but I noticed that some other languages have the ability (.Net, Python). If it's not possible through Gdata, is the...
Hi all, I have used "DB.php" package to do the database operation . In my file I have connected the database and access the table values. It is working fine. when I am running in command line interface . But When I am running that php file in web browser it telling me following error Note :I am Using pgsql database Can't connect...
For example i have the below paragraph in a MySQL database table field "The cutting off of the illumination of an astronomical object object, as in an eclipse of the Moon, when the Earth comes between" Here the word "object" appears twice in a row (next to each other). I want to check if this case appears in other records in same tabl...
I have a php add which calls LaTeX then passes the PDF to the browser. Since my users will be paying for this service, I want to make sure they are given the option to save the PDF rather than hitting my server again and again. exec("cd tex && latex {$_SESSION['sen_id']}.tex && pdflatex {$_SESSION['sen_id']}.tex", $output); $pdf = subst...
I called antiword in the shell using putty and it worked fine. However, when i call it using shell_exec() it always gives empty string. Here is the code I used: $file="IS_BT_KLVZ_MSI_001.doc"; $content=shell_exec("/usr/local/bin/antiword /usr/local/apache/htdocs/dokuman_sorgusu/documents/$file"); var_dump($content); In one forum, I s...
I am using PHP and mysql. I am logging mysql query with data in a separate file which extension is sql. (filename.sql). Purpose is I can use this sql log file as backup file. Logging varchar,int values with query is working fine. SQL log file looks as sql backup file which is created by mysqldump hence I can use sql log file as SQL scri...
Is it possible to round a decimals to the nearest .5 with PHP like this: number | round ---------------- 1.29 | 1.50 2.03 | 2.00 1.43 | 1.50 1.13 | 1.00 11.38 | 11.50 I tried with: $rnd= round($number,2); but I get decimals like the one in the column "number" above. ...
Hi, I'm using Kohana 3 and pdfview/DOMPDF to generate pdf files but they are generated with 0 bytes and text/plain mime-type. Controller: public function action_pdf() { if(isset($_POST['dados'])) { $pdf = View_PDF::factory('export/pdf'); $pdf->title = ''; $pdf->headers = array(); $pdf->data = array()...
Hi, I am working on my second CI application. I have created some simple CRUD methods in my controller. My client has requested that each record includes an image. I have searched the forums and other resources for help but haven’t had much luck. I have managed to upload files into a directory using the File Uploading Class, my problem...
I need to build an tree (with arrays) from given urls. I have the following list of urls: http://domain.com/a/a.jsp http://domain.com/a/b/a.jsp http://domain.com/a/b/b.jsp http://domain.com/a/b/c.jsp http://domain.com/a/c/1.jsp http://domain.com/a/d/2.jsp http://domain.com/a/d/a/2.jsp now i need an array like this: domain.com a ...
Here's some simple code I'm using to test the Paypal Website Payments Standard upload thingy. My return URL is http://mysite/index.php?module=store&show=order_confirm I go through the payment process, and when I get to the end and it returns me to the page, it instead just returns me to index.php (i.e. without the extra parameters)....
In Eclipse when you put your cursor on a keyword and press Shift-F2 it brings up the PHP manual page for that keyword. Is there anything like that in NetBeans? ...
Hi : ) when I Implemented chatting Function ,I used java Script to Send Data Between File To another . but I Faced some problem with it . Code : lastReceived=0; var xmlhttp; // Sign in and Out function signInOut(){ // Sign in if (signInForm.signInButt.name=="signIn"){ data="user=" + signInForm.userName.value +"&oper=signin" Requst...
Z = TRAPZ(X,Y) computes the integral of Y with respect to X using the trapezoidal method. TRAPZ is an existing function in MATLAB, but how to implement it in PHP? ...
Hi,all. I'm struggling with lucene and not sure how it's better to do: i've got users' data for their profiles - some of them(3-4 fields) are storing in lucene.But on query results i need also to show user's age/name/etc. I don't think it's reasonable to save all of these fields(additional, which are not participate in the search proces...
Hi, I'm trying to change the language of one webapp in realtime using codeigniter. I follow the online documentation, create the folder for language2 with all the traductions, but when I do: $this->config->set_item('language', 'portuguese'); It don't change the lang, the only way it works is changing the config file ex: $config['...