Jump to content

Search the Community

Showing results for tags 'zend'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 16 results

  1. Hello, I am using zend pagination in my gallery and its unfortunetly not working right for me. When using tags and search box in gallery -> next/another page is returning with no taging/searching It should look like gallery\page\2\?s=&tag=9 but instead i have gallery\page\2 What can I do about that? 'gallery' => array( 'type' => 'Segment', 'options' => array( 'route' => '/generator_nowy/gallery[/page/:page/]', 'defaults' => array( 'controller' => 'Men\Controller\FrontController', 'action' => 'gallery', 'page' => 1, ) ), 'may_terminate' => true ),
  2. hello to all, My issue is that i have a script encoded with zend and the script some pages work some are just BLANK Zend it is installed : Configuration File (php.ini) Path /usr/local/lib Loaded Configuration File /usr/local/lib/php.ini and Its throwing exception here: Can someone please help cuz i am tryin like a week to fix it but no results
  3. I am currently recruiting for a number of fantastic PHP Developer roles in Germany (English or German speakers) of all levels (Junior, Mid-Level, Senior, Technical Lead) to work with some impressive companies within a variety of industries in Munich, Berlin and Hamburg. Salaries ranging from €40,000 - €75,000 (Depending on experience). Are you considering new opportunities at the moment? Please contact me for further information and to take the first step towards your new role! gemma.bowron@quantica-technology.co.uk
  4. Europe's biggest gaming company are looking to take on up to 10 PHP Developers to join their expanding development team working on new game releases. They can offer relocation assistance and most interviews take place purely over Skype, or they can fly you over if required. Its an English speaking company and could be making you an offer in the next week! Please email me @ stuart.day@quantica.co.uk asap.
  5. Good Afternoon All, I have set out to create a script which will hopefully add an event to an existing google calendar (as a background process using details recorded during the completion of a form) the script to initalise on the submission of the form. However, I have been unable to achieve any results whilst working on this task, I have only witnessed blank screens. Perhaps I am doing something wrong? Can you help? The required steps: 1. user completes form including date from & date to. 2. user clicks submit 3. onclick(); starts php script 4. php script takes the dates as variables 5. php script uses the predefined google account username and password to authenticate 6. User returns to homepage (Google event added) This is my code so far: (removed ID's for privacy) <?php error_reporting(E_ALL); require_once 'google-api-php-client/src/Google_Client.php'; require_once 'google-api-php-client/src/contrib/Google_CalendarService.php'; session_start(); if ((isset($_SESSION)) && (!empty($_SESSION))) { echo "There are cookies<br>"; echo "<pre>"; print_r($_SESSION); echo "</pre>"; } // This is the file I am using ,,, i have cut out the ID's for privacy $client = new Google_Client(); $client->setApplicationName("Google Calendar PHP Starter Application"); $client->setClientId('MY CLI ID HERE'); $client->setClientSecret('MY CLI SECRECT KEY HERE'); $client->setRedirectUri('http://localhost/index.php'); $client->setDeveloperKey('MY API KEY HERE'); $cal = new Google_CalendarService($client); if (isset($_GET['logout'])) { echo "<br><br><font size=+2>Logging out</font>"; unset($_SESSION['token']); } if (isset($_GET['code'])) { echo "<br>I got a code from Google = ".$_GET['code']; // You won't see this if redirected later $client->authenticate($_GET['code']); $_SESSION['token'] = $client->getAccessToken(); header('Location: http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']); echo "<br>I got the token = ".$_SESSION['token']; // <-- not needed to get here unless location uncommented } if (isset($_SESSION['token'])) { echo "<br>Getting access"; $client->setAccessToken($_SESSION['token']); } if ($client->getAccessToken()){ echo "<hr><font size=+1>I have access to your calendar</font>"; $event = new Google_Event(); $event->setSummary('Halloween'); $event->setLocation('The Neighbourhood'); $start = new Google_EventDateTime(); $start->setDateTime('2013-9-29T10:00:00.000-05:00'); $event->setStart($start); $end = new Google_EventDateTime(); $end->setDateTime('2013-9-29T10:25:00.000-05:00'); $event->setEnd($end); $createdEvent = $cal->events->insert('###', $event); echo "<br><font size=+1>Event created</font>"; echo "<hr><br><font size=+1>Already connected</font> (No need to login)"; } else { $authUrl = $client->createAuthUrl(); print "<hr><br><font size=+2><a href='$authUrl'>Connect Me!</a></font>"; } $url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; echo "<br><br><font size=+2><a href=$url?logout>Logout</a></font>"; ?> <html></html> Here's a video demonstration I created: http://www.youtube.com/watch?v=m3N4YbqiYR8 Many Thanks for reading and future contributions towards helping me. Josh
  6. Hello all! I'm new to this forum so just wanted to introduce myself.. can't put a picture up yet (wouldn't let me...don't know why).. so sorry bout that. Hope to learn, suggest, brainstorm, etc... Cheers! - darkcloudcoder
  7. Daily WALKIN... PROVAB is Hiring @ Bangalore... PHP Developers with PHP5/ Codeigniter/ Zend/ Magento/ CakePHP/ Opencart/ Prestashop (1.6 to 8Yrs)... 40 Positions... Education- Any, Please refer friends... Ramesh, 080-40593555, +91-8050006446 ramesh.provab@gmail.com PROVAB, NG Complex, 30th Cross Road, Jayanagar 4th T Block, Tilak Nagar, Bangalore
  8. Hi everyone. i am having problems loading zend framework 1.12 to my windows 7 i keep getting this error message: "php.ex" is not recognized as an internal or external command, operable program or batch file". perhaps it will be easier if i tell you how i installed it and someone can please tell me where i have gone wrong. i installed Zend Librairies and bin in the following folders in my laptop ( windows 7) : C:\wamp\bin\php this bin folder is the same folder that my PHP5.43 is held in. The Zend is held in a folder called: zendframwork i then went to my php.ini folder ( includes path- ) and inserted the following: include_path = ".;C:\wamp\bin\php\zendframwork1.12\library" i then went to change my advanced windows settings: once there, i clicked onto Environment Variables , then to System variable where i double clicked on to paths line. in the paths line i include the path to the bin folder for the zend bin ie: Control Panel\System and Security\System ;C:\wamp\bin\php\zendframwork1.12\bin i then ok' ed everything and then went to my windows powershell interface. i.e "Administrator: Windows Powershall" once there i typed in zf ( i did this to test whether the system would recognize that zend has been install. ) however, i keep getting the following message: "php.ex" is not recognized as an internal or external command, operable program or batch file". Can someone please tell me what this message means and what i need to do to correctly configure Zend on my machine. warm regards Andreea
  9. I want to start a project where members can buy and sell videogames and have some experience in OOP programing in MVC with actionscript and PHP. I'm looking for the best way to setup this platform with the benefits of all there is today on the frameworks. I want to speedup the process to make use of frameworks with functions which I use. I think I need a simple webshop framework like Opencart e.g and build the rest on top of it so that members can also sell their own videogames. What framework will do the trick best for me in this situation? I've play a little with Codeigniter but I'm asking myself if this will be good enough for future extensions ore must I go for Zend or Sympony with an ecommerce module or framework? Can you also tell me why it is the best setup for this platform? Thanks for your suggestions! Cheers
  10. Hello, I am trying to install a website/script on my VPS. My vps is running CentOS 5 running php 5.3 but the script I am installing requires 5.2
  11. Hey all I am a self-taught AS3/Flex/AIR developer and I have built a system of touchscreen-kiosks running on AIR with remote content managment from an online Flex app. This is the first time I have done server side stuff, so feel free to correct my question if needed. Both the AIR apps and the Flex app connect to a mysql database for simple CRUD operations using php scripts and the Zend framework. The kiosks call the server every 30 seconds to update. All these simple server side php scripts were auto-generated by Flash Builder's data wizard. I did the simple adjusments (gateway.php, config.ini, mysqli connection parameters) and deployed everything to the client's server. This is a a shared-server type. Now, the system works. But it works slowly. Each create/read/update/delete operation works but I think it should be a lot faster. Also, these operations put a lot of load on the server's cpu. According to the hosting guys, this system opens 6 php-cgi proccesses that take up 40% of the server cpu power, and by doing so slows itself down and other sites hosted on that server. My questions are: First of all, is there a problem to begin with or is this performance expexted from the Zend framework? Are the auto-generated scripts written by Flash Builder poorly written and can be optimized? Can this kind of system stay on a shared-hosted-server? Should we move to a VPS server for better performance? Is it posiible that if the tables I created on the mysql database with phpmyadmin weren't optimiatlly built that it would have this kind of impact on performance? I don't know php or mysql. Any kind of help will be much appriciated. Saar Here is the script written by Flash Builder: I havn't added anything - just changed the connection parameters. <?php class KiosksService { var $username = "--------"; var $password = "--------"; var $server = "--------"; var $port = "3306"; var $databasename = "--------"; var $tablename = "kiosks"; var $connection; /** * The constructor initializes the connection to database. Everytime a request is * received by Zend AMF, an instance of the service class is created and then the * requested method is invoked. */ public function __construct() { $this->connection = mysqli_connect( $this->server, $this->username, $this->password, $this->databasename, $this->port ); $this->throwExceptiononerror($this->connection); } /** * Returns all the rows from the table. * * Add authroization or any logical checks for secure access to your data * * @return array */ public function getAllKiosks() { $stmt = mysqli_prepare($this->connection, "SELECT * FROM $this->tablename"); $this->throwExceptiononerror(); mysqli_stmt_execute($stmt); $this->throwExceptiononerror(); $rows = array(); mysqli_stmt_bind_result($stmt, $row->KioskID, $row->Station, $row->Branch, $row->Chain, $row->Pingdate, $row->Layout, $row->Online, $row->Clips, $row->Extra); while (mysqli_stmt_fetch($stmt)) { $row->Pingdate = new DateTime($row->Pingdate); $rows[] = $row; $row = new stdClass(); mysqli_stmt_bind_result($stmt, $row->KioskID, $row->Station, $row->Branch, $row->Chain, $row->Pingdate, $row->Layout, $row->Online, $row->Clips, $row->Extra); } mysqli_stmt_free_result($stmt); mysqli_close($this->connection); return $rows; } /** * Returns the item corresponding to the value specified for the primary key. * * Add authorization or any logical checks for secure access to your data * * * @return stdClass */ public function getKiosksByID($itemID) { $stmt = mysqli_prepare($this->connection, "SELECT * FROM $this->tablename where KioskID=?"); $this->throwExceptiononerror(); mysqli_stmt_bind_param($stmt, 'i', $itemID); $this->throwExceptiononerror(); mysqli_stmt_execute($stmt); $this->throwExceptiononerror(); mysqli_stmt_bind_result($stmt, $row->KioskID, $row->Station, $row->Branch, $row->Chain, $row->Pingdate, $row->Layout, $row->Online, $row->Clips, $row->Extra); if(mysqli_stmt_fetch($stmt)) { $row->Pingdate = new DateTime($row->Pingdate); return $row; } else { return null; } } /** * Returns the item corresponding to the value specified for the primary key. * * Add authorization or any logical checks for secure access to your data * * * @return stdClass */ public function createKiosks($item) { $stmt = mysqli_prepare($this->connection, "INSERT INTO $this->tablename (Station, Branch, Chain, Pingdate, Layout, Online, Clips, Extra) VALUES (?, ?, ?, ?, ?, ?, ?, ?)"); $this->throwExceptiononerror(); mysqli_stmt_bind_param($stmt, 'sssssisi', $item->Station, $item->Branch, $item->Chain, $item->Pingdate->toString('YYYY-MM-dd HH:mm:ss'), $item->Layout, $item->Online, $item->Clips, $item->Extra); $this->throwExceptiononerror(); mysqli_stmt_execute($stmt); $this->throwExceptiononerror(); $autoid = mysqli_stmt_insert_id($stmt); mysqli_stmt_free_result($stmt); mysqli_close($this->connection); return $autoid; } /** * Updates the passed item in the table. * * Add authorization or any logical checks for secure access to your data * * @param stdClass $item * @return void */ public function updateKiosks($item) { $stmt = mysqli_prepare($this->connection, "UPDATE $this->tablename SET Station=?, Branch=?, Chain=?, Pingdate=?, Layout=?, Online=?, Clips=?, Extra=? WHERE KioskID=?"); $this->throwExceptiononerror(); mysqli_stmt_bind_param($stmt, 'sssssisii', $item->Station, $item->Branch, $item->Chain, $item->Pingdate->toString('YYYY-MM-dd HH:mm:ss'), $item->Layout, $item->Online, $item->Clips, $item->Extra, $item->KioskID); $this->throwExceptiononerror(); mysqli_stmt_execute($stmt); $this->throwExceptiononerror(); mysqli_stmt_free_result($stmt); mysqli_close($this->connection); } /** * Deletes the item corresponding to the passed primary key value from * the table. * * Add authorization or any logical checks for secure access to your data * * * @return void */ public function deleteKiosks($itemID) { $stmt = mysqli_prepare($this->connection, "DELETE FROM $this->tablename WHERE KioskID = ?"); $this->throwExceptiononerror(); mysqli_stmt_bind_param($stmt, 'i', $itemID); mysqli_stmt_execute($stmt); $this->throwExceptiononerror(); mysqli_stmt_free_result($stmt); mysqli_close($this->connection); } /** * Returns the number of rows in the table. * * Add authorization or any logical checks for secure access to your data * * */ public function count() { $stmt = mysqli_prepare($this->connection, "SELECT COUNT(*) AS COUNT FROM $this->tablename"); $this->throwExceptiononerror(); mysqli_stmt_execute($stmt); $this->throwExceptiononerror(); mysqli_stmt_bind_result($stmt, $rec_count); $this->throwExceptiononerror(); mysqli_stmt_fetch($stmt); $this->throwExceptiononerror(); mysqli_stmt_free_result($stmt); mysqli_close($this->connection); return $rec_count; } /** * Returns $numItems rows starting from the $startIndex row from the * table. * * Add authorization or any logical checks for secure access to your data * * * * @return array */ public function getKiosks_paged($startIndex, $numItems) { $stmt = mysqli_prepare($this->connection, "SELECT * FROM $this->tablename LIMIT ?, ?"); $this->throwExceptiononerror(); mysqli_stmt_bind_param($stmt, 'ii', $startIndex, $numItems); mysqli_stmt_execute($stmt); $this->throwExceptiononerror(); $rows = array(); mysqli_stmt_bind_result($stmt, $row->KioskID, $row->Station, $row->Branch, $row->Chain, $row->Pingdate, $row->Layout, $row->Online, $row->Clips, $row->Extra); while (mysqli_stmt_fetch($stmt)) { $row->Pingdate = new DateTime($row->Pingdate); $rows[] = $row; $row = new stdClass(); mysqli_stmt_bind_result($stmt, $row->KioskID, $row->Station, $row->Branch, $row->Chain, $row->Pingdate, $row->Layout, $row->Online, $row->Clips, $row->Extra); } mysqli_stmt_free_result($stmt); mysqli_close($this->connection); return $rows; } /** * Utility function to throw an exception if an error occurs * while running a mysql command. */ private function throwExceptiononerror($link = null) { if($link == null) { $link = $this->connection; } if(mysqli_error($link)) { $msg = mysqli_errno($link) . ": " . mysqli_error($link); throw new Exception('MySQL Error - '. $msg); } } } ?>
  12. Please help! i can't connect codeigniter to Oracle I am trying to connect Codeigniter to Oracle 11g, here are my settings Settings in database.php: $active_group = 'default'; $active_record = TRUE; $db['default']['hostname'] = "//localhost/"; $db['default']['username'] = 'xxxxxxx'; $db['default']['password'] = 'xxxxxxx'; $db['default']['database'] = 'orcl'; $db['default']['dbdriver'] = 'oci8'; $db['default']['dbprefix'] = ''; $db['default']['pconnect'] = TRUE; $db['default']['db_debug'] = TRUE; $db['default']['cache_on'] = FALSE; $db['default']['cachedir'] = ''; $db['default']['char_set'] = 'utf8'; $db['default']['dbcollat'] = 'utf8_general_ci'; $db['default']['swap_pre'] = ''; $db['default']['autoinit'] = TRUE; $db['default']['stricton'] = FALSE; Note: I added the C:\instantclient_11_2 to environment variable to PATH. Oracle : oracle port number: 1521 oracle hostname: Home-pc database name: orcl Only when I run my CodeIgniter login code it shows this error message: A Database Error Occurred Unable to connect to your database server using the provided settings. Filename: D:\xampp\htdocs\ci\system\database\DB_driver.php Line Number: 124 But I can connect to Oracle when I run a simple php code like: <?php $conn = oci_connect("xxxxxx", "xxxxxx",""); if (!$conn) { echo "Not connected!"; } else echo "yahooooooooo!!!!!!!!!!"; ?> Result: yahooooooooo!!!!!!!!!!
  13. This is my page and the relevant code. project/applicaiton/views/scripts/index/index.phtml: <div id="welcome"> Please select the affiliate: <br><br> <?= $this->form ?> </div> project/application/views/scripts/index/units.phtml: <div id="welcome"> Please select department for <?= $this->affiliate ?>: <br><br> <?= $this->form ?> </div> project/application/controllers/IndexController.php: <?php class IndexController extends Zend_Controller_Action { protected $_redirector = null; public function init() { $this->_redirector = $this->_helper->getHelper('Redirector'); } public function indexAction() { $inputForm = new Application_Form_Input(); $inputForm->buildAffiliateSelectForm(); if ($this->_request->isPost()) { $params = $this->_request->getPost(); $affiliateId = $params['affiliateid']; $inputForm->setAffiliateId($affiliateId); if ($inputForm->isValid($params)) { $affiliateParams = array('affiliate' => $affiliateId); $this->_helper->redirector('units', '', null, $affiliateParams); } else { $inputForm->populate($params); } } $this->view->form = $inputForm; } public function unitsAction() { $request = $this->getRequest(); $getAffiliate = $request->getParam('affiliate'); $affiliateId = (isset($getAffiliate)) ? $getAffiliate : $this->options['defaultaffiliateid']; $inputForm = new Application_Form_Input(); $inputForm->setAffiliateId($getAffiliate); $inputForm->buildDepartmentsSelectForm(); $affiliatesTable = new Application_Model_DbTable_Affiliates(); if ($this->_request->isPost()) { $params = $this->_request->getPost(); $affiliateId = $params['affiliateid']; $departmentId = $params['departmentid']; if ($inputForm->isValid($params)) { $params = array('affiliate' => $affiliateId, 'department' => $departmentId); //$this->_helper->redirector('report', // 'report', null, $params); } else { $inputForm->populate($params); } } $this->view->form = $inputForm; } } Now, on index.phtml, when I click the submit button I go from this URL: http://hostname-internal/user-directory/project/ To this: http://hostname-internal/user-directory/project/hldm/units/affiliate/2 And on the second page, I get a 500 Internal Server Error. My question is why? Why not print something, anything, out? What am I missing?
  14. Hi everyone, when I run my view, this is the result that I get: This is my view: <p>Hello world</p> <?php $this->headLink()->appendStylesheet($this->serverUrl($this->baseUrl('/css/continuity-form-style-v3.css')), $media = "all"); $pv = $this->patientVisit; /* @var $pv Application_Model_Entity_PatientVisit */ $reports= $pv->getReports();/* @var Application_Model_Entity_CPM */ ?> <div> <?php // find the type of report that the user would like to retrieve. $reportType = $request->getParam('report_type'); if ('dischargedWithoutDinstr' == $reportType) { } elseif ('dischargedFaxStatus' == $reportType) { } elseif ('dischargedFaxStatusWeek' == $reportType) { } // this executes faxStatusRecent when there are no other options. else { } ?> </div> Now, what am I doing wrong? Am I missing something? Should I show more code of some sort?
  15. Hi, I recently attended the PHPNW conference in Manchester, which was great =] In the post-conference email, I received a voucher code for 50% off the ZCE exam voucher, and my employer offered to pay for it, result! =D Now that the voucher is paid for, I have been looking for relevant study material to prepare for the exam, but it is scarce. I was just wondering if anyone has done the ZCE, and any decent advice or reading material for preparation would be much appreciated. I have found a few practice tests and read the free 5.3 study guide from zend.com, which aside from making me realise I need to RTFM (well, a few sections) a few times, wasn't a great deal of help. Also, does anyone know the pass rate? Zend seem to actively avoid disclosing this, which makes no sense at all to me, but these things happen. Thanks for any help.
  16. Hi all, in the title you will see what I'm getting for an error, this is the whole page: This is my boostrap file: <?php class Bootstrap extends Zend_Application_Bootstrap_Bootstrap { protected function _initResourceLoader() { $this ->getResourceLoader() //gets resource loader obj defined in the bootstrap ->addResourceType('entity', 'models\entities', 'Model_Entity'); } protected function _initDatabase() { // get config from config/application.ini $config = $this->getOptions(); $db = Zend_Db::factory( $config['resources']['db']['ichldm']['adapter'], $config['resources']['db']['ichldm']); //set default adapter Zend_Db_Table::setDefaultAdapter($db); //save Db in registry for later use Zend_Registry::set("db", $db); } } This is my application.ini: [production] phpSettings.display_startup_errors = 0 phpSettings.display_errors = 0 includePaths.library = APPLICATION_PATH "/../../library" bootstrap.path = APPLICATION_PATH "/Bootstrap.php" bootstrap.class = "Bootstrap" appnamespace = "Application" resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers" resources.frontController.params.displayExceptions = 0 [staging : production] [testing : production] phpSettings.display_startup_errors = 1 phpSettings.display_errors = 1 [development : production] phpSettings.display_startup_errors = 1 phpSettings.display_errors = 1 resources.frontController.params.displayExceptions = 1 resources.db.ichldm.adapter = "PDO_MYSQL" resources.db.ichldm.host = "**************" resources.db.ichldm.username = "**************" resources.db.ichldm.password = "**************" resources.db.ichldm.dbname = "ichldm" What am I missing that could cause this problem?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.