Search found 73 matches

by mike
Thu Jul 17, 2003 1:53 am
Forum: PHP Installation
Topic: Installing PHP with Apache?????
Replies: 1
Views: 1743

Add the following lines in you httpd.conf (if they are not there): AddType application/x-httpd-php .php AddType application/x-httpd-php .phtml AddType application/x-httpd-php .php3 AddType application/x-httpd-php-source .phps and change this line: <IfModule mod_dir.c> DirectoryIndex index.html index...
by mike
Mon Jul 07, 2003 3:44 am
Forum: PHP Installation
Topic: upgrading php ver 4.0.6 to 4.3.1 problem
Replies: 0
Views: 1464

Here is a quick installation of apache/php: ----------------- Install apache: ----------------- 1. cd /usr/local 2. wget http://www.apache.org/dist/httpd/apache_1.3.27.tar.gz 3. tar -xzf apache_1.3.27.tar.gz 4. cd apache_1.3.27 5. ./configure --enable-module=unique_id --enable-module=rewrite --enabl...
by mike
Fri Jul 04, 2003 6:40 pm
Forum: PHP coding => General
Topic: SSH via PHP?
Replies: 4
Views: 1112

Posix are very good for this but you can use system() as well. Eg: system("/etc/proccess start"); or system("ps -aux")
by mike
Fri Jul 04, 2003 6:35 pm
Forum: PHP Scripts
Topic: convert bbcode to html
Replies: 1
Views: 1556

Some adittional convertions: <? $str = "Hello [color=cc3300]big [b]phpbrother[/b] this [u]is a[/u] fancy [i]test[/i][/color]"; //color convert $str = str_replace("[color", "<font color", $str); $str = str_replace("[/color]", "</font>", $s...
by mike
Fri Jul 04, 2003 6:32 pm
Forum: PHP Scripts
Topic: SYSTEM SECURITY EMERGENCY!!!
Replies: 1
Views: 1835

I will also suggest HTTP_REFERER... its simple and great :wink:
by mike
Fri Jul 04, 2003 6:28 pm
Forum: PHP Installation
Topic: PHP Local date problems
Replies: 4
Views: 1880

PHP Local date problems

This is one of my big questions starting with "why?". Here is the problem cause this question: Today I have changed my server's timezone to EEST and the local system/hardware time to my prefered time. So we have: [root@host root]# date Fri Jul 4 16:53:56 EEST 2003 But when calling a date() from php ...
by mike
Fri Jul 04, 2003 6:17 pm
Forum: PHP Installation
Topic: php4-rrdtool-1.03
Replies: 0
Views: 1922

What does php4-rrdtool-1.03 exactly do? Is there any website for info?
by mike
Sun Jun 22, 2003 4:00 pm
Forum: mySQL & php coding
Topic: how to make an install script
Replies: 2
Views: 1273

Have a look on mysql_ functions. You can create tables and insert your pre-configured data inside. Assume that users should first have a database with a valid user/pass.
by mike
Sun Jun 22, 2003 3:57 pm
Forum: PHP coding => General
Topic: text area info...
Replies: 10
Views: 2978

$text = str_replace("\n","<br>",$text);
by mike
Sun Jun 22, 2003 3:55 pm
Forum: PHP coding => General
Topic: Disable commas
Replies: 2
Views: 1232

$text = str_replace(",","",$text);
by mike
Sun Jun 22, 2003 3:51 pm
Forum: PHP coding => General
Topic: frustrating nl2br()
Replies: 5
Views: 2064

There is a long history with "string replacements". Just use str_replace() the way I told on the previous post and you want have any problems ever :D

There are a few dozens of differences between these functions and everyone of them has some incompatibilities due to different OS and filesystems.
by mike
Fri Jun 13, 2003 5:26 pm
Forum: PHP & MySQL Security
Topic: script does not die
Replies: 6
Views: 3761

I had a simillar problem on 3.23.xx . As I remember right there was a small bug on mysql_error reporting function.
by mike
Fri Jun 13, 2003 5:21 pm
Forum: mySQL & php coding
Topic: UPDATE query duplication
Replies: 13
Views: 3892

Do you have 1 or many rows? I think that the "WHERE" statement is missing :?
by mike
Fri Jun 13, 2003 5:12 pm
Forum: PHP coding => General
Topic: frustrating nl2br()
Replies: 5
Views: 2064

Simply use: $text = str_replace("\n","<br>",$text);

always working fine.
by mike
Fri Jun 13, 2003 5:07 pm
Forum: PHP General
Topic: PHP Module
Replies: 5
Views: 1948

First of all php is an APACHE module, so it could be confusing... PHP can be installed as a module on APACHE (or any other web server) or as CGI and work like an external binary executable application (php.exe on windows as wizard said). A php module can be defined as an extra library or applicatio...
by mike
Thu Jun 05, 2003 6:16 am
Forum: PHP Installation
Topic: gd + freetype installation problem
Replies: 2
Views: 2340

You should enable truetype font support on php. It says:
imagettftext -- Write text to the image using TrueType fonts
by mike
Wed Jun 04, 2003 4:40 pm
Forum: PHP General
Topic: Warnings when creating new files and subdirectories
Replies: 5
Views: 2153

Putting some restrictions on system files improve very much the security of the server. /home is the main directory tree for all users. Dont forget that PHP cannot read files on diffent directories on other users but can read any file on /etc ... /usr and other core system dirs. The program I'm work...
by mike
Wed Jun 04, 2003 9:59 am
Forum: PHP General
Topic: Warnings when creating new files and subdirectories
Replies: 5
Views: 2153

On my servers I permit file/directory creation but only within /home and /tmp. I think this is the best solution for securing your server files and allow users make their own ones. Most hosts are using the safe_mode switch that makes PHP very strict but its the easiest solution for administrator tha...
by mike
Tue Jun 03, 2003 3:07 am
Forum: PHP coding => General
Topic: system("uptime");
Replies: 6
Views: 1730

safe_mode might set to ON. Ask the administrator for that.
by mike
Tue Jun 03, 2003 3:04 am
Forum: PHP coding => General
Topic: PHP Array Storage
Replies: 4
Views: 1317

You cannot encrypt an "array" only a "string". Check on manual what the difference is.
by mike
Mon Jun 02, 2003 4:38 pm
Forum: PHP coding => General
Topic: system("uptime");
Replies: 6
Views: 1730

Or try: system("/usr/bin/uptime");
by mike
Thu May 29, 2003 2:21 pm
Forum: PHP coding => Images
Topic: Transparency...
Replies: 2
Views: 2442

imagecolortransparent() int imagecolortransparent ( resource image [, int color]) imagecolortransparent() sets the transparent color in the image image to color. image is the image identifier returned by imagecreate() and color is a color identifier returned by imagecolorallocate(). bla ... bla... (...
by mike
Thu May 29, 2003 2:16 pm
Forum: PHP coding => General
Topic: RegEx email Help Needed
Replies: 1
Views: 1016

You can also use: strstr()

eg: strstr($email, $qryHeaders);
by mike
Thu May 29, 2003 2:08 pm
Forum: PHP Installation
Topic: PHP as CGI with Apache SUEXEC
Replies: 9
Views: 3337

Yeap... but this is not what I was looking for. Thanks :)
by mike
Thu May 29, 2003 2:04 pm
Forum: PHP Installation
Topic: recompiled PHP problem. help pls.
Replies: 10
Views: 3217

I dont know....
i'm use apache


LOL!

AppServ v2.0.0 Package includes :

Apache 1.3.27
Apache Monitor
PHP 4.3.1
MySQL 4.0.12
PHP-Nuke 6.5
phpMyAdmin 2.4.0

on: http://academic.cmri.ac.th/appserv/