The only way that works fine for me is to read a file char by char. When you
read the \n character add the readen chars in array's position.
Here is an example
$fp = fopen ("myfile","r");
$txtarr = array();// array to store each line of your file
$linenum = 1; // just a counter
$lin
Try to STOP and then START apache, not restart.
If it doesn't work make sure that there is no php.ini file in the
c:\phpinstalldir\.but only in your WINDIR.
- Original Message -
From: "Kostas Karadamoglou" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 26, 2002 4:06
If you want to use sudo you can do it with the fowling function:
function loginsu(){
$fhandle = @popen("$sudo_path -u root clear", "w");
$fputs( $fhanlde, "$supassword");
@pclose($fhandle);
}
Dont forget to edit /etc/sudoers adding the folowing line
apache ALL=PASSWD:ALL
Do it at y
You 've missed this ")" .
Change it to print( form("tt.php", form_radio("group","parameters") ) );
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Here you can find a php class to make it work very simply...
http://phpclasses.promoxy.com/browse.html/package/366.html
- Original Message -
From: "Thomas Edison Jr." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 15, 2002 9:23 AM
Subject: [PHP] Search Results, Per Page
Try this
$Query = "SELECT UCASE(Company) as company, Icons, ID, LogoD FROM
feComps";
List ( $company, $icons, etc ) = mysql_fetch_row( );
> -Original Message-
> From: Niklas Lamp&igr;n [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 02, 2001 10:22 AM
> To: Php-General
> Subj
Try this
$Query = "SELECT UCASE(Company) as company, Icons, ID, LogoD FROM
feComps";
List ( $company, $icons, etc ) = mysql_fetch_row( );
> -Original Message-
> From: Niklas Lamp&igr;n [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 02, 2001 10:22 AM
> To: Php-General
> Subj
Try to break up html into different files for each browser type.
Switch ($browser)
{
case "ns4" :
include ns4.html; break;
case "ie5" :
include ie5.html; break;
.
.
.
default :
include ie6.html;
}
You can do it only in few lines of code with a recursive function... You
can display full tree structure with unlimited levels.
Mysql Table :
cid int,
parent int,
Name varchar
Cid parent varchar
1 0 A
2 1 C
3 0 B
4 1 D
5 2 E
6
How about an Aunt!? ( I don't know if it is in use )
Ant is a hard worker in the summer and very powerfull ( can lift 30 times
it's weight ) and small.
Just Like PHP.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
Or you can use this simply class from Manuel Lemos's site. It works with
Mysql only.
http://phpclasses.upperdesign.com/browse.html/package/366
> Hi,
>
> I need an algorithm for paging. If I have 100 pages of results, I only
> want to show
> << Prev 1 2 3 4 5 6 7 8 9 10 Next >>
>
> Where I limit
I 'm not sure, but i beleive you can get visitor's country from Apache 's
Varialble $HTTP_ACCEPT_LANGUAGE. For further information read "Predefined
Variables" in the manual.
Hope it works!!!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addit
Now you get an array called mycheck.
Manipulate this array in php. Remeber that only checked items are set in
array.
That means if 2 checkboxes are checked you 'll get an array with 2
positions.
Suppose that 1st and 3rd checkboxes are checked.
- Original Message -
From: "John Day" <
Now you get an array called mycheck.
Manipulate this array in php. Remeber that only checked items are set in
array.
That means if 2 checkboxes are checked you 'll get an array with 2
positions.
Suppose that 1st and 3rd checkboxes are checked.
- Original Message -
From: "John Day" <
$field_value = "I 'm bla bla";
$field_value = addslashes($field_value);
$sql = "Insert into TABLE values('$field_value');
- Original Message -
From: "Caleb Carvalho" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 01, 2001 2:05 PM
Subject: [PHP] still learning php
>
> Mercury Interactive
> 410 Frimley Business Park
> Frimley, Surrey. GU16 7ST
> United Kingdom
> Telephone : +44 (0)1276 808300
>
>
>
> >From: "Dimitris Kossikidis" <[EMAIL PROTECTED]>
> >To: "Caleb Carvalho" <[EMAIL PROTECTED]>
-
---
> Enterprise Testing and Performance Management Solutions
> --
---
> Mercury Interactive
> 410 Frimley Business Park
> Frimley, Surrey. GU16 7ST
> United Kingdom
> Telephone : +44 (0)1276 808300
>
>
>
> >From: &
You should change sessions configuration in php.ini
The default value for sessions dir /tmp.
In windows shoud point to c:\tmp
The header error occurs because you get a warning about session.
- Original Message -
From: "Web user" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursda
This should be fine...
$month = 5;
$year = 2001;
$day = 6;
echo date( "Y/m/d", mktime( 0, 0, 0, $month, $day, $year ) );
Output "2001/05/06"
- Original Message -
From: "Daniel Alsén" <[EMAIL PROTECTED]>
To: "php" <[EMAIL PROTECTED]>
Sent: Friday, October 05, 2001 12:44 PM
Subject: [PHP
This should work ...
if ( IsSet($id) ) {
.
sql statement
}else{
.
}
- Original Message -
From: "Tshering Norbu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 19, 2001 12:22 PM
Subject: [PHP] Undefined variable
> Dear list,
>
> I test the followi
20 matches
Mail list logo