Discuss phpwcms here, please do not post support requests, bug reports, or feature requests! Non-phpwcms questions, discussion goes in General Chat!
sean
Posts: 30 Joined: Fri 28. May 2004, 09:09
Post
by sean » Fri 4. Jun 2004, 19:28
Hi there,
I am a bit new to phpwcms and so far I think its one of the coolest content management systems out there. The only problem that I have been getting so far is that everytime i try to use the php include function, i get a prase error.
you can see the error at this page
http://www.static-design.com/chap1/inde ... ,0,0,1,0,0
the error says something like this
Code: Select all
Parse error: parse error in /home/static/public_html/chap1/include/inc_front/front.func.inc.php(1816) : eval()'d code on line 1
the way that I put the code in was like this
Code: Select all
[PHP]include ("/home/path/public_html/chap1/shout/index.php");[/PHP]
I will appericiate it if someone could help me get this fixed,
thank you.
Pappnase
Post
by Pappnase » Fri 4. Jun 2004, 19:30
hello
try this!
wich version of wcms did u use!?
Code: Select all
{PHP:http://www.domain.tld/shout/index.php}
sean
Posts: 30 Joined: Fri 28. May 2004, 09:09
Post
by sean » Fri 4. Jun 2004, 19:36
hi there, unfortunantly that did work. When i put it in nothing showed up
Pappnase
Post
by Pappnase » Fri 4. Jun 2004, 19:45
hello sean
try this got conf.inc.php
change the following line! and then test the {PHP:xxx} Tag again!
line 67
Code: Select all
$phpwcms["allow_remote_URL"] = 1; //0 = no remote URL in {PHP:...} replacement tag allowed, 1 = allowed
sean
Posts: 30 Joined: Fri 28. May 2004, 09:09
Post
by sean » Fri 4. Jun 2004, 20:07
thanks for the help again, I feel stupid a bit, but I can't find that line in the conf.inc.php, I tried adding it in there, but again it didn't work, am i trying the wrong file?
Code: Select all
<?php
// database values
$phpwcms["db_host"] = "*****";
$phpwcms["db_user"] = "*****"
$phpwcms["db_pass"] = "*****";
$phpwcms["db_table"] = "*****";
$phpwcms["db_prepend"] = "";
$phpwcms["db_pers"] = 1;
// site values
$phpwcms["site"] = "http://www.static-design.com/";
$phpwcms["admin_email"] = "static@static-design.com";
// paths
$phpwcms["root"] = "chap1"; //default: ""
$phpwcms["file_path"] = "phpwcms_filestorage"; //default: "phpwcms_filestorage"
$phpwcms["file_tmp"] = "phpwcms_tmp"; //default: "phpwcms_tmp"
$phpwcms["templates"] = "phpwcms_template"; //default: "phpwcms_template"
$phpwcms["dir_thlist"] = "thumb_list"; //default: "thumb_list"
$phpwcms["dir_preview"] = "thumb_preview"; //default: "thumb_preview"
$phpwcms["content_path"] = "content"; //default: "content"
$phpwcms["cimage_path"] = "images"; //default: "images"
$phpwcms["ftp_path"] = "phpwcms_ftp"; //default: "phpwcms_ftp"
// content values
$phpwcms["file_maxsize"] = 2097152; //Bytes (50 x 1024 x 1024)
$phpwcms["content_width"] = 538; //max width of the article content column - important
for rendering multi column images
$phpwcms["img_list_width"] = 100; //max with of the list thumbnail image
$phpwcms["img_list_height"] = 75; //max height of the list thumbnail image
$phpwcms["img_prev_width"] = 538; //max width of the large preview image
$phpwcms["img_prev_height"] = 400; //max height of the large preview image
$phpwcms["max_time"] = 1800; //logout after max_time/60 seconds
// other stuff
$phpwcms["compress_page"] = 0; //0 = OFF, 1-9: page compression ON (1 = low level, 9 =
highest level)
$phpwcms["imagick"] = 0; //0 = GD, 1 = ImageMagick, 2 = ImageMagick 4.2.9
$phpwcms["imagick_path"] = ""; //Path to ImageMagick (default="" - none)
$phpwcms["use_gd2"] = 1; //0 = GD1, 1 = GD2
$phpwcms["rewrite_url"] = 0; //whether URL should be rewritable
$phpwcms["wysiwyg_editor"] = 3; //0 = no wysiwyg editor, 1 = HTMLarea, 2 = FCKeditor, 3
= browser based
$phpwcms["phpmyadmin"] = 1; //enable/disable phpMyAdmin in Backend
$phpwcms["default_lang"] = "en"; //default language
$phpwcms["charset"] = "iso-8859-1"; //default charset 'iso-8859-1'
// dynamic ssl encryption engine
$phpwcms["site_ssl_mode"] = '0'; // tuns the SSL Support of WCMS on(1) or off (0)
DEFAULT '0'
$phpwcms["site_ssl_url"] = ''; //URL assigned to the SSL Certificate. DON'T add a
slash at the End! Exp. "https://www.yourdomainhere.tld"
$phpwcms["site_ssl_port"] = '443'; //The Port on which you SSL Service serve the secure
Sites. Servers DEFAULT is '443'
// smtp values
$phpwcms['SMTP_FROM_EMAIL'] = 'static@static-design.com'; // reply/from email address
$phpwcms['SMTP_FROM_NAME'] = 'Static-Design webmaster'; // reply/from name
$phpwcms['SMTP_HOST'] = 'localhost'; // SMTP server (host/IP)
$phpwcms['SMTP_PORT'] = 25; // SMTP-Server port (default 25)
$phpwcms['SMTP_MAILER'] = 'mail'; // default phpMailer: smtp, mail (default), sendmail
$phpwcms['SMTP_AUTH'] = 0; // sets SMTP_AUTH to ON/OFF
$phpwcms['SMTP_USER'] = '****'; // default SMTP login (user) name
$phpwcms['SMTP_PASS'] = '****'; // default SMTP password
// Try to check and uncomment the DOCUMENT_ROOT if you have problems
// often neccessary on IIS or default MacOS X webserver settings
// Do not use backslash "\" on Windows - always replace "\" by "/"
//$_SERVER['DOCUMENT_ROOT'] = '/home/static/public_html';
?>
Pappnase
Post
by Pappnase » Fri 4. Jun 2004, 20:08
ups!
i use the rc4 from yesterday!
sean
Posts: 30 Joined: Fri 28. May 2004, 09:09
Post
by sean » Fri 4. Jun 2004, 20:12
there has been a new release or update on RC4? cause i use the same version.
Pappnase
Post
by Pappnase » Fri 4. Jun 2004, 20:19
its an update! i see that you use the version from 22-05.
DeXXus
Posts: 2168 Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida
Post
by DeXXus » Fri 4. Jun 2004, 21:28
Pappnase
Post
by Pappnase » Fri 4. Jun 2004, 21:31
hello dexxus
i gamble today a little around with the new version!
you need to enable the external script function! i have test it with php pages i want to inclulde from my domain and from external domain like from sean his shoutbox! both only works only if you change line 45 in conf.inc.php file.