Which are the good books for learning php?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi! I have some text and JPEG files inside a directory like:
1992-7-11.txt
1992-7-11_pic1.jpg
2000-4-10.txt
2000-4-10_pic1.jpg
2004-5-2.txt
2004-5-2_pic1.jpg
On a Windows box (XP + Apache), if I do a dir_object-read() for the
directory, read() reads the files above in order (eg.
?
class A
{
var $name;
function A($str)
{
$this-name = $str;
}
}
$arr = array();
//Put to array to objects of class A,
// where their attribute A::a is assigned a different value
//objects are assigned to an array by reference
$a = new A(qaz);
$arr[0] = $a;
$a = new A(wsx);
No
news.php.net wrote:
?
class A
{
var $name;
function A($str)
{
$this-name = $str;
}
}
$arr = array();
//Put to array to objects of class A,
// where their attribute A::a is assigned a different value
//objects are assigned to an array by reference
$a = new
Just compare the output of print_r($arr) and foreach(...)... !!! Please,
explain, or my understanding of the php is gonna ruin.
Thanx, Mark.
?
$as = array();
$a10 = 10;
$a20 = 20;
$a = $a10;
$arr[] = $a;
$a = $a20;
$arr[] = $a;
print_r($arr);
foreach($arr as $a)
{
echo $a;
}
?
I have 160,000+ members in my site. 40,000 of them have not logged in since
2003 and they should be deleted. A member is not deleted from only one
table. Based on user id, he should be deleted from 5 tables and also his
photo, if any, should be unlink(ed).
I tried to do that 10 by 10 using:
I have two servers: ServerA and ServerB. One server serves web pages, the
other serves mail. I am making a web page on ServerA that will access
ServerB to find out if a users exists and if not then add that user to
ServerB with information collected from the web page on ServerA.
I have this
Can anyone help me out? I just need a simple single webpage to send an
email from the server.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Attached is an awesome web proxy, which totally meets my needs, but I need
it to be transparent. I need anyone accessing the computer that this is on
to be automatically proxy-ed to a URL, but then let them navigate through
the links just fine. I also do not want them to see the banner that's
Hi to all,
I need to do parsing of html data from one site for find nick , guild, and
some other infos...
The problem is that gd doesn't print correctly chars like trademark,
copyright, registered (which are contained in some nicks/guild names)...
Someone know a valid solution???
--
Using
Ok, i have solved problem with copyright and registered by using
imagettftext...
But i still can't print correctly tm symbol :(
On Fri, 11 Jun 2004 11:56:14 +0200, News.Php.Net [EMAIL PROTECTED] wrote:
Hi to all,
I need to do parsing of html data from one site for find nick , guild,
and some
Hi,
I was wondering if it's possible to issue a icmp echo / ping without
actually using the ping program supplied with the operating system.
Anyone has an idea?
Thanks in advance.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
OK gurus, I'm trying to create a page that allows me to create a table in my
MSSQL database. I'm accepting the field info one by one in a form using a
PHP_SELF action. This information is supposed to be collected in an array
that's to be stored as a session variable for semi-permanance, until
Ok, I've developed a system that allows N number of users to log-in to my
site under the same username/password combo. When a user logs-in, a flag is
set marking that they have logged-in, their session id is stored and the
current # of user's logged-in is iterated by one. If a user account has a
Inside of a class I am trying to make a call to a function in another class.
I have one class defined to be my DataBase Interface call dbi. To use
that class I do this:
$db = new dbi;
Then I can use the functions in dbi like this:
$db-dbquery(select * from whatever);
Inside another class
Hello, I have wrtten a PHP based web site with a MySql backend and now I
want to password protect downloadable files. I have logon and session
handling taken care of but I can't figure out how to only allowed those who
are currently logged in and above a certain security level to access the
Chris Shiflett wrote:
A parser is called every time a page is accessed. If no page is
defined, the home page is loaded. Subsequent pages are linked with
http://dictionary.reference.com/search?q=parser
Very amusing.
Okay, dispatcher would probably be a better name. It preps the
environment
Hello,
httpd v1.3.27, php v4.3.0.
I have a web page I wish to restrict access. I prefer to use the
standard apache httpd authentication with .htaccess and password file.
This method does not seem to work with PHP.
A parser is called every time a page is accessed. If no page is
defined,
I was wondering if there is a way to solve my problem. I want to send
certain information to certain webpage for about 25 times ( I wanna make a
webpage to send a SMS to every player in our soccer team). I can send the
needed information to one server and it sends an SMS but how to do it 25
times
Hi, I have deveolped a stored procedure within oracle 9.2.0. This procedure
has an output parameter that is a defined as a REF CURSOR and I would to
know if it is posible, using ORA functions in PHP, to run this procedure and
retrieve the data contained by this REF CURSOR.
I would be very
Greetings,
I am using php on a Sun Cobalt Linux
server with many virtual hosts.
I want to have the /php directory
one directory above the /web root
so it is not accessible from browser command line execution but
will execute from a click on an
html page. CGI-PHP is installed
but I need to know
Hi... I got a big site, which is not very well constructed inside, and the
script began to throw (rather often, but NOT always) a fatal error Fatal
error: Allowed memory size of 8388608 bytes exhausted , every time in
different places. I wonder how should I debug that, as there is pretty much
Hi guys, having trouble with my win2k install of php 4.3.0 - can't run
sessions! I have some test code:
?php
/*
SM 2/20/2003 9:21AM
Basic session test
*/
session_start();
echo(pwhadda!)
?
And it results in
Fatal error: session_start() [function.session-start]: Failed to initialize
session
Hi everybody,
I'm a french newbie in PHP and I'm trying to resolve this :
?php
$rf = fopen(album.dat, r);
$row = 1;
while ($data = fgetcsv ($rf, 1000, ;))
{
$num = count ($data);
print $num;
//print p $num champs dans la ligne $row: br;
//$row++;
for ($c=0; $c$num; $c++) {
//print $data[$c] .
Hi,
I'm real new in php and trying to read a txt file
this is my code :
?php
$row = 1;
$fp = fopen (lecteurs.txt,r);
while ($data = fgetcsv ($fp, 1000, ;))
{
$num = count ($data);
$row++;
for ($c=0; $c$num; $c++)
switch ($row)
{
case 1 :
{
$vignette
Hello everyone
I have a problem to post messages to newsgroups. How can i do it.
thanks
Muhammad Fawad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,I'am Beginner in PHP, Now I meet a Problem with Session .
I am Using Session to track my php web application Users ,I just want to
know Who is online and Who has offline. I make a Quit Botton on my webpage,
But Someone do not use it to quit my system .So I Can't know who has quit my
system
I'm getting the following error:
Warning: Unable to find ftpbuf 0 in C:\directory\page.php on line 22
Whenever I try to connect to our FTP server...it does this whenever I make a
call to ftp_login(). The server, username, and password are correct, and I
can successfully FTP into it through
I upgraded php3 to php 4.0.6 on Linux 2.2.19+apache 1.3.17+sybase 11.9.2 and
my phplib stoped to work. I am using Cart class and Sessions etc. Page_close
sends the message:
Database error: Invalid SQL: insert into active_sessions ( sid, name, val,
changed ) values
hi everybody,
maybe I get smth. wrong, but as far as I know the function
session_is_registered()
is used to find out if a var is registered in a session...
ok, now here is my example:
[ index.php ]
?php
$count = ;
session_start();
session_register (count);
$count = 1;
?
.
.
.
a
hello... anyone know where i can downlaod voteBOOTH.php w/ the image
viewer?! or does anyone have it that you can send to me..?
thanxz!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
just a note:
afaik editplus is no freeware.
--
(::sebas::)
___
www.nijmegen.de sebas.tweakers.net www.weblab-online.de
""James Crowley"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Dear All,
Given the
32 matches
Mail list logo