I have never used a binary version (rpm or tar)
as I use slackware. Both PHP and Mysql have been recently added
to the distribution.So I have been using src all the time.
U'll certainly have some performance gain by
compiling the src.
But the default Redhat 7.1's php distribution is very
Although Fred's comments appear rhetorical, the suggestion has some merit.
Anyone have a feel for how many PHP devotees are out there? How many people
subscribe to this list? Do these numbers make it feasible to ask for a $1-10
contribution? How about $0.02 from each of the 7 million domains
no idea! try using md5() instead,
Rm [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
In php cr32 will create a checksum number, 10 digits,
in linux cksum will create one of 9 digits and sum
linux will generate a 5 digit number. We use these
numbers in a db
from this line, i guess that Apache is not installed?
apxs:Warning: /usr/bin/httpd not found or not executable
Joseph Bannon [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
What does this mean?
make[1]: Entering directory `/home/php-4.0.6'
Hi,
I want to send mail via exact account ( i.e. [EMAIL PROTECTED] ).
can I do it with php ?
Thanks
Rosen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators,
I want to send mail via exact account ( i.e. [EMAIL PROTECTED] ).
can I do it with php ?
Yes, in future please check the PHP manual before asking, as the manual
entry for mail() specifically mentions this purpose.
mail([EMAIL PROTECTED], subject, mail,
From: [EMAIL PROTECTED]\nReply-to:
There is a Mysql error that is driving me mad. My ISP won't claim
resposibility for it and it tells me it is a scrpting error. I don't
agree with them. The error number is 2006, and it seems to restart the
database every now and then.
Please advice me as to what may be causing this problem. The
Hello.
If i have this string: 1 2 3 4 5 6 7 no more!
and this regular expression: ([0-9]+)
now how can i run preg_match to get result by result until no results are
returned?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
it usually means the apache httpd wasn't found in /usr/bin
Some distributions throw things in wierd places
do a 'locate httpd' (quicker) or 'find \ -name httpd' (longer)
to find out where its situated
then configure paths accordingly.
Remember if you are going to use dso's apache must be
In article 010001c1311e$d86ebb40$[EMAIL PROTECTED],
[EMAIL PROTECTED] (Matthew A. Schneider) wrote:
Rather than whining about the future of PHP, why don't you be proactive
and take on the goal of raising the $100,000 for the project?
Although Fred's comments appear rhetorical, the
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (_lallous) wrote:
If i have this string: 1 2 3 4 5 6 7 no more!
and this regular expression: ([0-9]+)
now how can i run preg_match to get result by result until no results are
returned?
http://php.net/preg_match_all
--
CC
--
PHP General
I have some code which loops through a n array using a for loop. This
works fine but if I try to loop through the array again in the same script
the array seems to be empty (i,e, the loop douse not do any interations).
Do I need to reset the array pointer at the begining? Is there something
I've developed an intranet running on win2k adv server/IIS and it sets lots
of cookies... it hasn't crashed until now. But then again, microsoft's
random crash feature which they implement into all of their programs might
have just gotten hold of you ;)
--
PHP General Mailing List
I've gotten the year from the following code on page one:
date_array=getdate(); / / today's date info
foreach ($date_array as $key=$val)
{
$key=$val;
}
$current_year=$date_array[year];
I've used the $current_year variable throughout a form on the first page and the
variable is picked
Richard, I let this problem sit for awhile, did some other work, and looked
at it again. This time, I printed out all the values and found that some
values =INF. No wonder it died. Since I'm making a log-normal chart,
occasionally I'm trying to calculate the log of zero--an infinitely small
Hi folks
I just wonder as I saw someone useing session with global and some don't. What is the
reason to use session together with global?
Like this:
session_start();
global $test
session_register('test');
I look up in manual using keyword global, but could not find anything near this.
Jack
On Thu, 30 Aug 2001 17:33, [EMAIL PROTECTED] wrote:
I have some code which loops through a n array using a for loop. This
works fine but if I try to loop through the array again in the same
script the array seems to be empty (i,e, the loop douse not do any
interations). Do I need to reset
Thanks David
That behavior is the best i could acomplish be header() also.
But i found another way :
1. I link to a nonexiting directroy:
http://www.mydomain.de/pdfs/test.pdf
2. i catch 404s by htaccess redirection
3. i parse the REDIRECT_URI if the request is for a pdf in that vitual
directory
How come that I cannot store a varible in the session when I do this
from within another object?
This is my code:
?php
session_start();
class MyClass {
function MyClass($state) {
if($state == page2) {
print([ . $foo . ]);
This is because $foo is local to the member functions of the class. declare global
$foo at the start of every function.
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
99%
- Original Message -
From: Thomas Watson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August
if
global $var;
is called from within a function and $var exist outside the nested function
then the $var will be available to the function.
example
$var = hello world;
function say_hello() {
global $var;
echo $var;
}
will echo hello world
while
$var = hello world;
function
Although.
PHAKT is an addon to Macromedia Ultradev that handles PHP in a GUI
environment. If you do a search for PHAKT on http://askhiran.com you
should find the relevant links.
As with most GUI scripting tools, a good deal more code is written than is
needed and I would have to agree with
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Ben Edwards) wrote:
I have some code which loops through a n array using a for loop. This
works fine but if I try to loop through the array again in the same script
the array seems to be empty (i,e, the loop douse not do any interations).
Do
I don't really get it! in preg_match_all()
the $matches array what will it contain?
i mean $matches[0] is the whole match, and every $match[0][1] $match[0][2]
$match[0][n] is my subexpression.
now what does the $match[1] have? or $match[2] ?
I usually use these modifiers: /is
Cc Zona [EMAIL
Use foreach and there will not be a need of reset because foreach is not moving the
internal array pointer.
foreach ($somearray = $value){ }
foreach ($somearray as $key = $value) { }
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
99%
- Original Message -
From: CC Zona
Hello !
Please help me,
How to get Month name according to server's locale setings ?
I tryed to use:
setlocale("LC_ALL", "LT");
$month = strftime("%B", mktime(0,0,0,$m,1,$y));
But I get message:
Warning: Passing locale category name as string is deprecated. Use the
LC_* -constants
Hi all,
I have a bit of a confusing one here. I have two enviroments:
1) Live server
-PHP Version 4.0.3pl1 - Nov 21 2000
-Apache/1.3.12 Cobalt (Unix)
-Linux
2) Local development
-PHP Version 4.0.6
-Apache/1.3.20 (Win32)
-Windows 2000 Pro
Now on the live server everything works fine but on my
It depends of the last parameter to preg_match_all.
PREG_PATTERN_ORDER and PREG_SET_ORDER.
One of these is the default value.
|a (.*?)(.*?)/a|
PREG_PATTERN_ORDER :
Orders results so that $matches[0] is an array of full pattern matches,
$matches[1] is an array of strings matched by the first
See if there is any symbol before ?php open tag.
Also this seems bad :
$uid=$HTTP_SESSION_VARS[userid];
may be:
$uid=$HTTP_SESSION_VARS[userid];
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
99%
- Original Message -
From: Nic Skitt [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Original message
From: Gerard Samuel [EMAIL PROTECTED]
Date: Wed, Aug 29, 2001 at 09:58:12PM -0400
Message-ID: [EMAIL PROTECTED]
Subject: Re: [PHP] strings in a function return
I found an error, but it didn't do me any good.
I tried this, any tips...
Thanks
function assign() {
Hi all,
I have a bit of a confusing one here. I have two enviroments:
1) Live server
-PHP Version 4.0.3pl1 - Nov 21 2000
-Apache/1.3.12 Cobalt (Unix)
-Linux
2) Local development
-PHP Version 4.0.6
-Apache/1.3.20 (Win32)
-Windows 2000 Pro
Now on the live server everything works fine but on my
Hi,
how can I send HTML mail via mail() function ?
I readed the tutorial, but can someone write me example ?
Thanks,
Rosen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list
you add this into your header bit:
$headers .= Content-Type: text/html; charset=iso-8859-1\n;
HTH
Jack
- Original Message -
From: Rosen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 30, 2001 5:18 PM
Subject: [PHP] HTML mail
Hi,
how can I send HTML mail via mail()
This is because $foo is local to the member functions of the class.
declare global $foo at the start of every function.
Ok thnx... it worked... but how do you then explain this?:
***
?php
class TestClass {
var $foo;
I think with everyone replying to The future of PHP e-mails and putting in
their two cents, we're eventually going to raise that $100,000 in no time.
g
Navid
-Original Message-
From: CC Zona [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 3:08 AM
To: [EMAIL PROTECTED]
Try this :
?php
$EMAIL = array(
'plain' = Haha hoho hehe ,
'html' = htmlfont size=3Haha hoho hehe/font/html
);
$headers='From: [EMAIL PROTECTED]
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary==_4195058==_.ALT
';
$message = '
PHP is the cooolest language i have ever came across.
If u have a least knowledge with C u can rule over it in
a few days. And moreover what for v r all here ? if u
have any problem just drop in a post u'll have ur inbox
full of solutions from all over the world. this in one of (no
not one of
put the entire php in c:\php
then intall it from there so that it'll be installed there only.
check out for readme.txt or install.txt. it will contain
the instructions. you have to put a file like browscap.ini (or dll)
in c:\windows\system and the php.ini must be in c:\windows
now edit the
put the entire php in c:\php
then intall it from there so that it'll be installed there only.
check out for readme.txt or install.txt. it will contain
the instructions. you have to put a file like browscap.ini (or dll)
in c:\windows\system and the php.ini must be in c:\windows
now edit the
this might be u r asking for
while(list($key,$value)=each($HTTP_POST_VARS))
{
echo($key . = . $value);
}
this should be in the page to where the variables r posted
/sagar
- Original Message -
From: Scott Thomason [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL
this might be u r asking for
while(list($key,$value)=each($HTTP_POST_VARS))
{
echo($key . = . $value);
}
this should be in the page to where the variables r posted
/sagar
- Original Message -
From: Scott Thomason [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL
can do another way
$sql = select count(fieldname) from Products;
$result=mysql_query($sql);
$myrow=$mysql_fetch_row($result);
$countrows = $myrow[0]; ( or might be $myrow[1] check out)
will do the job
/sagar
- Original Message -
From: David Robley [EMAIL PROTECTED]
To: Kevin P
- Original Message -
From: sagar [EMAIL PROTECTED]
To: Scott Thomason [EMAIL PROTECTED]
Cc: php [EMAIL PROTECTED]
Sent: Thursday, August 30, 2001 4:22 PM
Subject: Re: [PHP] GET/POST name=value query var convention?
this might be u r asking for
- Original Message -
From: sagar
To: php
Sent: Thursday, August 30, 2001 4:22 PM
Subject: Re: [PHP] Count
can do another way
$sql = select count(fieldname) from Products;
$result=mysql_query($sql);
$myrow=$mysql_fetch_row($result);
$countrows = $myrow[0]; ( or might be $myrow[1]
Sagar,
Thanks but there isnt any spaces or HTML. The code on the page starts with
the PHP tags and nothing else.
Nic
Sagar [EMAIL PROTECTED] wrote in message
00c001c13141$cd995d60$5bed7ccb@ravella">news:00c001c13141$cd995d60$5bed7ccb@ravella...
This will not work even if the code is like this
Hmmm, it seems that obj is not saved to the session file.
I don't thik that before new is needed.
Also may the problem is in that you use the class contructor. When objects are saved
in session, and on other page you want to
wakeup them you must provide two methods for the class:
function
htmlkit rule :) and it for free to.
it have all what editor need + an ftp client build in which make life very
easy.
--
Canaan Surfing Ltd.
Internet Service Providers
Ben-Nes Michael - Manager
Tel: 972-4-6991122
http://sites.canaan.co.il
--
-
Can small business live from e-commerce today?
What is the relevance of your question? Do businesses live from
their telephone? Whether they do or not, they need it in either case.
AFAIK, it costs a lot more money to have any start and operate a
e-commerce business than a telephone.
Another user on the same shared server can probably work at it and manage to
read anything in your web-tree...
Stuff like database passwords should be moved to a directory not in your web
tree, and change your include_path to reach it -- It's still readable by
somebody who works at it, but not
Read their HTML file with fopen (or Snoopy, whatever that is).
Then figure out what you want, and go read that with fopen.
It's just a URL, and PHP doesn't really care whether it's HTML or what that
you read.
Snoopy might even be able to do it.
--
WARNING [EMAIL PROTECTED] address is an
Thanks for all the answers to this question but hitting the back button
will
work, no authorization required to see the pages all over.
You need to get those pages to not be cached by the browser.
http://php.net/header
Repost problem:
I'm having a PHP based auth. It seems that
To Install PHP I have done this ( ihave specified the location of apxs
as Suse Installed an Apache server also, but I want the one I've
installed to /usr/local/apache):
It's better to specify exactly where apxs is anyway, just so you know for
sure you don't get the wrong one.
./configure
I need to output an array to a text file, now I have created the text file
now I just need to
write to it, well I need to get the output of the browser to this text
file. HOw can i do this,
oh and return each line ...
$file = fopen($new_file_name, 'w') or die(Could not open $new_file_name);
Odds are good the Module version is not looking for your php.ini in the same
place as where the CGI version is...
Using the Module version, where does it *think* php.ini is? It should be
listed in phpinfo.
You'll have to copy your php.ini file there for the Module version.
--
WARNING [EMAIL
I think you just described this:
http://php.net/manual/en/function.imagecopymerge.php
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time:
You probably need http://php.net/stripslashes somewhere.
Also, this is not a very secure way to do this...
Somebody could easily alter the HTML source of your hidden var_list_1 and
alter whatever columns they wanted.
It would be better to pass each value separately.
And, finally, you could
You're using HTTP_COOKIE_VARS, all CAPS, right?
Did you declare it global inside any functions where you use it?
Does phpinfo() show HTTP_COOKIE_VARS? Perhaps you have track_vars turned
off.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me
(Even though I didn't understand quite how shared objects work. g )
Like, I only did it once, and it was GD, and about 80% of the time it puked
trying to display an image, but...
Basically, if you compile using --with-apxs in the first place, and then you
re-compile from source using that
I think you want
require 'daten/menu.data';
No, you can't go up two directories and back down, or you'd be able to go
down into other people's web-sites, and that would be bad. You can go up
only as far as your own site.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
You may want to use:
http://php.net/chown
http://php.net/umask
http://php.net/chmod
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time:
This has strayed off-topic a bit. Unless you're into music and/or business
planning for e-commerce, you probably should hit delete now...
How about this one, doing *EXTREMELY* well selling CDs online:
http://CDBaby.com/
Of course, that has almost nothing to do with his choice of PHP
Move your images out of your web-tree.
Write a display.php script that use http://php.net/header and
http://php.net/readfile to serve them up.
Log each IP and $HTTP_USER_AGENT into MySQL with a timestamp.
$query = select count(*) from piclog where thetime + '35 seconds' = now()
and ip =
You could just log the IP into a database, and then look it up later in
another script in a cron job. You'll need PHP installed as a stand-alone
binary (aka CGI) and you'll want to read:
man 5 crontab
You could use select distinct and then would only need to look up each IP
once for a user
Is there a smart way, that I have overseen, to update/download 2 (or more)
PHP-docs with only one POST/GET instruction ?
I do not want to use either javascript or cockies!
I don't really understand the question: What are you actually trying to do,
and why?
An HTTP POST, by definition, returns
exec(indent $source, $result, $errorcode);
http://php.net/exec
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original
If you can't alter php.ini to load the extension, you might be able to using
.htaccess or http://php.net/dl
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time:
You are correct.
The point is you can turn it OFF to force cookies to *NOT* be used, and use
PHP_SESSID in the URL instead. Thus, you don't even present the user with a
cookie to deny/accept/whatever.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna
You'd have to fake out GeoCities into believing PHP is a real browser by
sending all the headers a real browser sends such as HTTP_USER_AGENT etc...
Be easier to just let users upload photos or just tell GeoCities people to
move to a real server :-)
--
WARNING [EMAIL PROTECTED] address is an
You may want to try [EMAIL PROTECTED]
What web server is better on NT with PHP?
I prefer Apache. http://apache.org
What PHP installation mode performs better i.e. CGI, SAPI Module , build
or
not build etc ?
ISAPI will be faster, but not as stable for *SOME* of the DLLs that have not
yet
Are you sure it's ../tmp and not just /tmp?...
See if you can do opendir and readdir on ../tmp
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time:
Change the URL to read:
www.myserver.de/securedownload.php/checkliste3.pdf?pdfdownload=checkliste3.p
df
Yes, it looks funky... But everybody but IE5 on the Mac will ignore that
extra stuff between / and ?, and IE will use that as the filename prompt
now.
--
WARNING [EMAIL PROTECTED] address is
http://php.net/fopen
http://php.net/fgets
Call fopen.
Call fgets 3 times.
Call fread($file, 100) to get the rest.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little
I'm guessing that you have to swap every other byte as Windows is the
other-endian...
I don't really know for sure though...
You could just use:
exec(/path/to/sox $infile $outfile, $results, $errorcode);
echo implode(BR\n, $results);
if ($errorcode){
echo OS Error $errorcode. Usually
Try to change PWS so you are running as a CGI first.
Then move up to ISAPI.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
Read the archives. Also read php-dev archives. You'll find plenty of
thoughts.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time:
You probably want to wrap this in a transaction...
$query = insert into foo select * from bar;
#Execute that.
$query = delete from foo;
#Execute that.
Add lots of error-checking and a begin and end (or rollback for an
error)
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
If I were doing this, I would attempt to un-set the PNG transparency right
after loading in the PNG...
But I wouldn't know an alpha channel if it bit me :-)
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD:
After you unset them, the *BROWSER* re-presents the values that it has...
You can only change the REALM out from under the browser to get a new
dialog.
Keep track of a dynamic range of realms to present, and who's in which realm
etc.
--
WARNING [EMAIL PROTECTED] address is an endangered
use / not \
And spell inetpub correctly :-)
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
Thanks Andrey but that still hasnt fixed it.
The full error I am getting is:
Cannot add header information - headers already sent by (output started at
c:\apache\apache\htdocs\client-secure.php:11) in
c:\apache\apache\htdocs\client-secure.php on line 18
Line 11 refers to:
Anyway to do this fast:
$arr = array(set1 = array(1, 2, 3, 4), set2 = array(11, 22, 33, 44),
set3 = array(111, 222, 333, 444));
It's not that I want to access $arr like: echo $arr['set1']
I also want to access it as: echo $arr[1] (and it must be equal to
$arr['set1'];
and It seems i can't do
?php
$arr = array(set1 = array(1, 2, 3, 4), set2 = array(11, 22, 33, 44),
set3 = array(111, 222, 333, 444));
$a=array_keys($arr);
var_dump($a);
// var_dump(array_keys($arr)[set1]); not possible
?
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
99%
- Original Message -
Dear all,
This is my quandry... I am trying to build a socket server to transfer simple
information, more of a monitoring tool. But after about 14+ hours it just kicks out,
without rhyme or reason. No errors, no nothing... I was curious if anyone could see
big gaping holes in my code that
Hi all,
What is the server variable for referrer?
Cheers
Nic
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hmmm, it seems that obj is not saved to the session file.
I don't thik that before new is needed.
This is weird :) It worked when I removed the (thought that I tried that
;). Now I just can't remember why I put it there in the first place. I hope
it wasn't importent ... well I will
Original message
From: Nic Skitt [EMAIL PROTECTED]
Date: Thu, Aug 30, 2001 at 12:25:44PM +0100
Message-ID: [EMAIL PROTECTED]
Subject: [PHP] Referrer
Hi all,
What is the server variable for referrer?
Cheers
Nic
/Original message
Reply
$HTTP_SERVER_VARS[HTTP_REFERER]
Check phpinfo()
or
$GLOBALS[HTTP_REFERER];
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
99%
- Original Message -
From: Nic Skitt [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 30, 2001 2:25 PM
Subject: [PHP] Referrer
Hi all,
What is the server variable for referrer?
D'oh!
New it would be something simple.
Cheers lads.
Nic
Andrey Hristov [EMAIL PROTECTED] wrote in message
029b01c13148$1bcb01e0$0b01a8c0@ANDreY">news:029b01c13148$1bcb01e0$0b01a8c0@ANDreY...
or
$GLOBALS[HTTP_REFERER];
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
99%
-
Helo techies ,
Iam getting the following error .Any help is appreciated.
Fatal error: The script tried to execute a method or access a property of an
incomplete object. Please ensure that the class definition user of the object you are
trying to operate on was loaded
I'm working on a project that involves a lot of SNMP data gathering.
I was wondering if it's possible to have a multi-threaded PHP script.
Basically the SNMP queries I'm running are taking a long time to complete
(several seconds). However I found that running multiple at the same time
does not
not what I want!
i want something like this when you do mysql_fetch_array() don't you get a
reference to your columuns via fieldname or array index?
ie. $row = mysql_fetch_array($result_set);
echo $row['name'];
or
echo $row[0];
same return same value! I want something like it with my initial
May be you save as session variable a object and try to recreate in another script.
But in this second script you don't
include/require the script with definition of the class. If this definition is in the
first script cut it from there and paste into
a new file save it using some name and
Ok im like in a realy hurry here, so can someone please tell me (or show) how i make a
script read the first (top) 1 or 5 lines from a text document?
Thanks!
-lk6-
http://www.StupeedStudios.f2s.com
Home of the burning lego man!
ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666
The return value of mysql_fetch_array is something strange. You receive into the array
data copied to times. 0 is no alias to 'name'
for example. If you want this behaviour do that:
$arr=array_merge_recursive($arr,array_values($arr));
now do what you want to do
Andrey Hristov
IcyGEN Corporation
Thanks alot Andrey.
Andrey Hristov [EMAIL PROTECTED] wrote in message
017a01c13139$e1bb2600$0b01a8c0@ANDreY">news:017a01c13139$e1bb2600$0b01a8c0@ANDreY...
It depends of the last parameter to preg_match_all.
PREG_PATTERN_ORDER and PREG_SET_ORDER.
One of these is the default value.
|a
ok i have this code to do whats below, but its not working
?php
$fp = fopen(meh.txt,r);
for($i=0;$i2;$i++)
{
print $fp[$i];
}
?
-lk6-
http://www.StupeedStudios.f2s.com
Home of the burning lego man!
ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666
- Original Message -
From:
- Original Message -
From: Girish P
To: [EMAIL PROTECTED]
Sent: Thursday, August 30, 2001 6:10 PM
Subject: Variable is not showing up in the print string
Hi,
I am passing a value
fromone php page(FirstB.php ) to another php page (Sql.php) with ina
link.
a href="Sql.php?ws=100"
change the first line to
$fp = file(meh.txt);
- Tim
On Thu, 2001-08-30 at 16:31, Kyle Smith wrote:
ok i have this code to do whats below, but its not working
?php
$fp = fopen(meh.txt,r);
for($i=0;$i2;$i++)
{
print $fp[$i];
}
?
-lk6-
http://www.StupeedStudios.f2s.com
Home of
Fast and dirty:
function readnlines($filename, $count)
{
return array_slice(file($filename), 0, $count);
}
readnlines('file.txt', 5);
should work,
Kyle Smith [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Ok im like in a realy hurry here, so can someone
Hi,
I am passing a value
fromone php page(FirstB.php ) to another php page (Sql.php) with ina
link.
a href="Sql.php?ws=100" /a.. When
try to print the value $ws .. its empty..
Am i missing something ?? I am using apache 1.3.12 on Winnt..
Both the files are attached.
TIA
Girish
--
PHP
1 - 100 of 238 matches
Mail list logo