Search found 28 matches

by fenelon
Sat Apr 08, 2017 6:20 pm
Forum: PHP
Topic: htaccess query
Replies: 24
Views: 25336

Re: htaccess query

This is an Apache question, not PHP. htaccess is used for all sorts of fun stuff. Try googling "htaccess redirect to https" and start reading. If you happen to have root access to the server then it would make more sense to edit Apache's configuration. See: https://wiki.apache.org/httpd/RedirectSSL ...
by fenelon
Tue Jan 14, 2014 8:40 pm
Forum: Zend Framework
Topic: Problem Installing ZF2 manually without MVC!
Replies: 5
Views: 6176

Re: Problem Installing ZF2 manually without MVC!

Sorry I didn't mention the init_autoloader file. I can see how that confused things for you. Here's a modified test script with the important parts of init_autoloaded included and the path to zf2 defined without the use of an env var in .htaccess. <?php //-------- Setup autoloading $zf2Path = '/usr/...
by fenelon
Mon Jan 13, 2014 7:19 pm
Forum: Zend Framework
Topic: Problem Installing ZF2 manually without MVC!
Replies: 5
Views: 6176

Re: Problem Installing ZF2 manually without MVC!

I was able to get a simple ZF2 script to run. I have this in .htaccess SetEnv ZF2_PATH /usr/local/zend/share/ZendFramework2/library I actually have ZF1 in my PHP include path since I maintain several ZF1 sites. As a test, I modified the index.php that comes with the skeleton app, removed the final l...
by fenelon
Sun Mar 10, 2013 5:58 pm
Forum: PHP
Topic: Can you post JSON data to the same URL (PHP Program)?
Replies: 1
Views: 2935

Re: Can you post JSON data to the same URL (PHP Program)?

Yes, but you've done it wrong. First you made "data_sent" a GET value. You need to move it to a hidden input field so the data ends up in the POST array. <input type="hidden" name="data_sent" value="<?php echo $jsondata ?>" /> Second, the decoding is all wrong. You've got this $data = json_decode($_...
by fenelon
Fri Oct 19, 2012 11:20 pm
Forum: Zend Framework
Topic: Help! How to Deploy a ZF project?
Replies: 3
Views: 1822

Re: Help! How to Deploy a ZF project?

A 500 error usually means there's something wrong in .htaccess.
by fenelon
Mon Oct 08, 2012 3:11 pm
Forum: Zend Framework
Topic: Zend framework for Mac OS ?
Replies: 2
Views: 1384

Re: Zend framework for Mac OS ?

http://framework.zend.com/downloads/latest

Scroll down and grab one of the .zip or .tar.gz downloads.
by fenelon
Mon Oct 08, 2012 3:04 pm
Forum: Zend Framework
Topic: Zend PDF, curve a text
Replies: 1
Views: 830

Re: Zend PDF, curve a text

The link you posted is broken.

Zend_PDF can do text rotation out of the box. That is it can write a string at some angle. Drawing text on a curve would probably require you to add your own functions to place and draw each character individually.
by fenelon
Mon Oct 08, 2012 2:49 pm
Forum: Zend Framework
Topic: Zend Framework SVN Down?
Replies: 2
Views: 1170

Re: Zend Framework SVN Down?

That link works for me.
by fenelon
Mon Oct 08, 2012 12:02 am
Forum: Zend Framework
Topic: PDO EXception error
Replies: 2
Views: 1553

Re: PDO EXception error

You're going to have to trace the error and find the SQL that's failing. The error message says "no parameters were bound" so my guess would be that maybe a var is empty.
by fenelon
Sun Oct 07, 2012 11:48 pm
Forum: Zend Framework
Topic: I have problem in User Auth in ZF2
Replies: 5
Views: 3556

Re: I have problem in User Auth in ZF2

Hi Everyone I'm using ZfcUser to Authenticate. Currently trying to tell if a user is logged in the layout.phtml file using ... <? if ($this->zfcUserAuthentication()->hasIdentity()): ?> But ZF can't find zfcUserAuthentication. I'm guessing I need to add a path to the application config file? The vie...