FAQs

Back to FAQ Main

Q: Email - How do I set up an email form?


Q: Email - How do I set up an email form?

A: Read this link http://llizard.cwahi.net/tutorials/php-mailform.html created by one of our very helpful members.

Q: Site Design - Should I enable output (zlib/gzip) compression in my scripts?

NEVER enable Output Compression.

Output compression (also called zlib/gzip output) will compress your data before sending it out.

NEVER enable this.

The data goes from your user server, to front end servers (load balanced) which worry about all compression between users browsers and themselves. They do the compression extremely well and if you send compressed data back to them (they explicitly set headers saying not to, but you have set the script to always to it), they recompress the data and break it.

Q. Site Design - How Do I Allow a PHP Script to Write to a Folder?

Q. How Do I Allow a PHP Script  to Write to a Folder?

A. This answer also applies to file uploads!

The web server runs as a different user than you. To enable php scripts to write files or file uploads to be copied into your site folder, you need to set a folder to be "world writeable".

If you are using an FTP client, you would issue the command chmod 777 foldername. Some ftp clients are more graphical so you want everyone - the user, group and everyone to have write, read and execute permissions. 777 looks like this in some displays: rwxrwxrwx. Normally the permissions for folders are 755 which look like this: rwxr-xr-x

If you are using the file manager in CWahi, check the box beside the folder that you want to change, then check mark ALL of the boxes and save.

This will give your scripts the ability to write to your folders.

Q: Site Design - Can I install ANY php script onto CWahi?

Q. Can I install ANY php script onto CWahi?

A. That depends. If the scripts requires a disabled function, then no. See the list of php functions in the My Account tab in your profile.

If you successfully install a script, please consider providing a written up "How-To" to add to our tutorials section to aid other members. With members helping members, "Everyone Wins"!

Note: If you want the ability to install any script you wish, you need a Crosswinds One account (professional unlimited hosting), which can be found here: http://www.crosswinds.net/

Q: Site Design - Why is mail() restricted?

Q. Why is mail() restricted?

A. You can thank spammers for that. We are working on providing a secure mail replacement so that your mail() functions can be used.

Q: Site Design - Sessions


Q. Why don't sessions work?

A. Log in, Account Settings - PHP Settings and Other Info

Q: Site Design - What are the important php settings?


Q. What are the important php settings

A. Log in, Account Settings - PHP Settings and Other

Q: Site Design - Can I use PHP and SSI together?

Q: Can I use PHP and SSI together?

A: Nope, they don't play well together. The use of SSI and PHP cannot be mixed. PHP files (ending in php) can not have SSI commands. SSI files (.htm, .html or .shtml) cannot have PHP commands.

Q: Site Design - What PHP functions are disabled?

Q: What PHP functions are disabled?

A: Disabled PHP functions:

chgrp
chmod
chown
chroot
curl_exec
dl
escapeshellarg
escapeshellcmd
eval
exec
fsockopen
ftp_connect
ftp_ssl_connect
info
ini_alter
is_uploaded_file
mail
move_uploaded_file
passthru
pcntl_exec
phpinfo
pfsockopen
popen
proc_close
proc_get_status
proc_nice
proc_open
proc_terminate
rmdir
shell_exec
show_source
socket_accept
socket_bind
socket_connect
socket_create
socket_create_listen
socket_listen
socket_read
socket_send
socket_write
symlink
system
upload
upload_file

Q: Site Design - What PHP Modules are available?

Q: What PHP Modules are available?

A: The following are the PHP Modules installed and available to you:

Installed php modules
All core functions plus:

ctype
date
dom
filter
gd
iconv
json
libxml
ming (flashwave support)
pcre
posix
session
simplexml
tokenizer
xml
xmlreader
xmlwriter
mbstring

Users can read and write into their own folder BUT it's as the web user. So, if you want to do this, you need to create a folder that has 777 perms.

User relative paths (ones that do not start with /) or it won't work!

Important Settings:

Max Exec tim:   60s     (ample for most sites)
Max post size:  2M
Max Memory:   32M
Max input time: 120s

Q: Site Design - Do we get PHP support?

Q: Do we get PHP support on our accounts here?

A: Yes you do! On all accounts here, you get PHP support. There are a few limits to this though, for security reasons.

See also PHP Modules