Welcome Guest, Not a member yet? Register   Sign In
Absolute "noob" questions
#11

[eluser]Pascal Kriete[/eluser]
The port issue has been fixed in the svn - so it was the latter Wink .
#12

[eluser]Randy Casburn[/eluser]
No wonder you say you don't have enough time for eyeball work? Wow man, you are a master. But I'm glad they fixed it. The CI guys Rock!

Randy
#13

[eluser]callumd[/eluser]
[quote author="Randy Casburn" date="1225247073"]Hi callumd,

It's possible (if using CI 1.7.0) that you've not set the $db['default']['port'] = '3306'; Try that setting and see if mysqli works.

Some of the documentation has not completely caught up with the latest release, or the release has not caught up with itself. One or the other.

Hope that helps,

Randy[/quote]
Thanks!

That solved the problem. Why was there no $db['default']['port'] value already in the database.php config file? I had to manually add it?

Also, where is the CI version number to be found?
#14

[eluser]Randy Casburn[/eluser]
Um....OK, now I'm starting to understand some of your questions.

[quote author="callumd" date="1225247770"]
Thanks!

That solved the problem. Why was there no $db['default']['port'] value already in the database.php config file? I had to manually add it?[/quote]

I had already, just, answered the question in the previous post. The documentation did not reflect the current version. Then, inparo's post states clearly that the latest SVN version "fixes" the problem of the port being excluded (or not being in the config file).

[quote author="Randy Casburn" date="1225247073"]Some of the documentation has not completely caught up with the latest release.[/quote]

[quote author="callumd" date="1225247770"]Also, where is the CI version number to be found?[/quote]

Didn't you download CodeIgniter? Please go back to the download page and look at the download buttons. Other than that, look through the files in the file structure.
Randy
#15

[eluser]Pascal Kriete[/eluser]
There is a CI_VERSION constant that is set in system/codeigniter/codeigniter.php (near the top).
#16

[eluser]callumd[/eluser]
[quote author="inparo" date="1225248447"]There is a CI_VERSION constant that is set in system/codeigniter/codeigniter.php (near the top).[/quote]
Thanks, I'm using 1.7.0.

Randy, I do apologise but I didn't/don't understand your answer on the mysqli thing.

Firstly, I don't know what "SVN" is.

Secondly, I don't know what you mean when you say that the mysqli thing is "fixed" in the latest "SVN".. I have the latest version of CI installed and was using whatever user manual is currently up on the site, but it didn't work for me. So what do you mean it's "fixed"?

Similarly, I'm not sure why you're mentioning that the user manual doesn't reflect the current CI version. I wanted to know why the value of $db[‘default’][‘port’] doesn't appear in the config file. What does that have to do with the user manual?

Thanks in advance and I appreciate everyone's patience.
#17

[eluser]tdktank59[/eluser]
First off make sure the server has mod rewrite enabled...
echo phpinfo();
in some file and search for mod_rewrite (ctrl + f) under loaded modules should be around the 3rd box on the page. If it is not there then talk to your host.

If it does exist heres a few things I did to make it work!

/applications/config/config.php (snippet)
Code:
/*
|--------------------------------------------------------------------------
| Index File
|--------------------------------------------------------------------------
|
| Typically this will be your index.php file, unless you've renamed it to
| something else. If you are using mod_rewrite to remove the page set this
| variable so that it is blank.
|
*/
$config['index_page'] = "";

/*
|--------------------------------------------------------------------------
| URI PROTOCOL
|--------------------------------------------------------------------------
|
| This item determines which server global should be used to retrieve the
| URI string.  The default setting of "AUTO" works for most servers.
| If your links do not seem to work, try one of the other delicious flavors:
|
| 'AUTO'            Default - auto detects
| 'PATH_INFO'        Uses the PATH_INFO
| 'QUERY_STRING'    Uses the QUERY_STRING
| 'REQUEST_URI'        Uses the REQUEST_URI
| 'ORIG_PATH_INFO'    Uses the ORIG_PATH_INFO
|
*/
$config['uri_protocol']    = "REQUEST_URI";

.htaccess (place in root directory *where index.php is*)
Code:
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
    # If we don't have mod_rewrite installed, all 404's
    # can be sent to index.php, and everything works as normal.
    # Submitted by: ElliotHaughin

    ErrorDocument 404 /index.php
</IfModule>
#18

[eluser]callumd[/eluser]
Thanks for the reply, tdktank59.

There's no mention of 'mod_rewrite' or anything similar that I can find when I run phpinfo().

Altering the .htaccess file didn't work either (in terms of being able to remove 'index.php' from the URIs).

I'm using:

XAMPP for Windows 1.6.7
PHP v5.2.6
MYSQL v5.0.51b
APACHE: Apache/2.2.9 (Win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8h mod_autoindex_color PHP/5.2.6
#19

[eluser]tdktank59[/eluser]
to enable mod_rewrite in xampp first go to the directory of installation <xampp-directory>\apache\conf and edit httpd.conf. Find the line which contains
#LoadModule rewrite_module modules/mod_rewrite.so
uncomment this(should be):

LoadModule rewrite_module modules/mod_rewrite.so

Also find AllowOverride None

Should be:

AllowOverride All

I think it appears 2 or 3 times on the configuration file.
===============

Source: http://rudyegenias.wordpress.com/2006/08...-in-xampp/
#20

[eluser]callumd[/eluser]
Ok,

I did all of the above and when I remove 'index.php' from the URI, it redirects to the root directory - which is not my application directory. My application directory is a couple of directories below the root directory.

Is there some way to set the path values?




Theme © iAndrew 2016 - Forum software by © MyBB