zend-framework

Best and secure way to send parameters in URL

倾然丶 夕夏残阳落幕 提交于 2020-02-20 04:33:31
问题 I am working on a website in which there would be functionalities to update and delete data on the basis of id. Now the thing I am worried about is like my url would be www.example.com/public/controller/action/1 if the action would be delete , any person can change id from 1 to 2 in url and the data with id 2 would get deleted. What would be the best way to keep the flow secure. I am using Zf2 and Doctrine2... Any suggestions please !!! And moreover I am keeping ids hidden in fields, anybody

Symfony with Zend Lucene and related models (with foreign keys)

有些话、适合烂在心里 提交于 2020-02-05 07:11:30
问题 Well I was developing an application usin Symfony 1.4 and Doctrine when I realized a major drawback on my Zend Lucene implementation. I have a model called Publication that is related (via foreign key relations) with a few other models (subjects, genres, languages, authors, etc.) and I'm getting they're names when adding a new document to the index (using the Jobeet tutorial way) so that I can search for publications with a given subject, genre, language, author, etc... The problem is if for

Different memory usage on different server with the same PHP website

南楼画角 提交于 2020-02-02 15:23:02
问题 I have a PHP website build with Zend Framework 1.11. And I got different memory usage on the following two servers: A: MacOS + Apache/2.2.20 + PHP 5.3.6 B: Scientific Linux 64 + Apache/2.2.15 + PHP 5.3.3 For a exactly same page and condition, it cost 14MB on server A, but only 4MB on server B (calculate by xdebug). here is the mainly difference step: A: 11288560 Zend_Application->run( ) B: 2740744 Zend_Application->run( ) Can anyone tell me what's the problem? And is there any way I can

Different memory usage on different server with the same PHP website

穿精又带淫゛_ 提交于 2020-02-02 15:21:40
问题 I have a PHP website build with Zend Framework 1.11. And I got different memory usage on the following two servers: A: MacOS + Apache/2.2.20 + PHP 5.3.6 B: Scientific Linux 64 + Apache/2.2.15 + PHP 5.3.3 For a exactly same page and condition, it cost 14MB on server A, but only 4MB on server B (calculate by xdebug). here is the mainly difference step: A: 11288560 Zend_Application->run( ) B: 2740744 Zend_Application->run( ) Can anyone tell me what's the problem? And is there any way I can

Different memory usage on different server with the same PHP website

别等时光非礼了梦想. 提交于 2020-02-02 15:21:11
问题 I have a PHP website build with Zend Framework 1.11. And I got different memory usage on the following two servers: A: MacOS + Apache/2.2.20 + PHP 5.3.6 B: Scientific Linux 64 + Apache/2.2.15 + PHP 5.3.3 For a exactly same page and condition, it cost 14MB on server A, but only 4MB on server B (calculate by xdebug). here is the mainly difference step: A: 11288560 Zend_Application->run( ) B: 2740744 Zend_Application->run( ) Can anyone tell me what's the problem? And is there any way I can

Zend Form Rendering and Decorators (Use correctly with bootstrap)

余生颓废 提交于 2020-02-02 14:00:50
问题 The Bootstrap Example Code http://getbootstrap.com/css/#forms Copying a simple email input element from getbootstrap.com suggests we format the HTML in the following way: <div class="form-group"> <label for="exampleInputEmail1">Email address</label> <input id="exampleInputEmail1" class="form-control" type="email" placeholder="Email"> </div> Above we have a <label> tag that closes straight after it's text content, "Email address". I would now like to create the same form group using Zend

Add PJL command into PDF file with PHP code

无人久伴 提交于 2020-01-29 07:55:21
问题 How can I insert a PJL command into PDF without having to convert PDF to PostScript *STARTPJL @PJL SET STAPLE=LEFTTOP *ENDPJL after I send it to printer via FTP or LPR. I'm using Zend_Pdf to create PDF documents. **I tried unsuccessfully this code $a .= "<ESC>%-12345X@PJL<CR><LF>"; $a .= "@PJL SET OUTBIN=OUTBIN101<CR><LF>"; $a .= "@PJL SET STAPLE=LEFTTOP<CR><LF>"; $a .= "@PJL ENTER LANGUAGE = PDF<CR><LF>"; $a .= file_get_contents("/www/zendsvr/htdocs/GDA/public/pdf/test.pdf"); $a .= "<ESC>%

Add PJL command into PDF file with PHP code

元气小坏坏 提交于 2020-01-29 07:54:10
问题 How can I insert a PJL command into PDF without having to convert PDF to PostScript *STARTPJL @PJL SET STAPLE=LEFTTOP *ENDPJL after I send it to printer via FTP or LPR. I'm using Zend_Pdf to create PDF documents. **I tried unsuccessfully this code $a .= "<ESC>%-12345X@PJL<CR><LF>"; $a .= "@PJL SET OUTBIN=OUTBIN101<CR><LF>"; $a .= "@PJL SET STAPLE=LEFTTOP<CR><LF>"; $a .= "@PJL ENTER LANGUAGE = PDF<CR><LF>"; $a .= file_get_contents("/www/zendsvr/htdocs/GDA/public/pdf/test.pdf"); $a .= "<ESC>%

Add PJL command into PDF file with PHP code

这一生的挚爱 提交于 2020-01-29 07:54:07
问题 How can I insert a PJL command into PDF without having to convert PDF to PostScript *STARTPJL @PJL SET STAPLE=LEFTTOP *ENDPJL after I send it to printer via FTP or LPR. I'm using Zend_Pdf to create PDF documents. **I tried unsuccessfully this code $a .= "<ESC>%-12345X@PJL<CR><LF>"; $a .= "@PJL SET OUTBIN=OUTBIN101<CR><LF>"; $a .= "@PJL SET STAPLE=LEFTTOP<CR><LF>"; $a .= "@PJL ENTER LANGUAGE = PDF<CR><LF>"; $a .= file_get_contents("/www/zendsvr/htdocs/GDA/public/pdf/test.pdf"); $a .= "<ESC>%

Sending email using Zend Framework and PHP

佐手、 提交于 2020-01-29 05:18:27
问题 I working on a form whereby when the user enter in their email account and click on send, an email will be sent to their email account. I have everything worked out. Just that it doesnt send the email to my account. Anyone have any ideas? Is there a configuration that I left out or something? This is the sample from my controller: public function retrieveemailAction(){ $users = new Users(); $email = $_POST['email']; $view = Zend_Registry::get('view'); if($users->checkEmail($_POST['email'])) {