[PHP] Failed to initialize session module

2003-02-20 Thread news.php.net
Hi guys, having trouble with my win2k install of php 4.3.0 - can't run
sessions! I have some test code:

whadda!")
?>

And it results in

Fatal error: session_start() [function.session-start]: Failed to initialize
session module in ... on line 6

My php.ini has the following set (I've tried with both settings) :

;session.save_path = C:/TEMP/phpsessions
session.save_path = D:\temp\php

Any thoughts?

thanks,
neko



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Memory used by script...

2003-02-21 Thread news.php.net
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
code inside, and I hardly got aqcuainted with it in a whole.

SO THE QUESTION: Are there any functions or smth., to check, how much memory
is used at some particular moment of execution of the script??? If I could
state, that for example after some class instantiaton memory usage greatly
increases, I would be able to localise the problem.

Thanks much,
Mark.
Do not hesitate to send Your reply's also on [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Really simple question - /php directory above /web tree .htaccess contents

2003-03-08 Thread news.php.net
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 the .htaccess
contents for the /cgi/php directory
If that is not possible...

and I put the /php directory under
the /web root; would have to protect
it from browser command line execution
with a .htaccess file.
I would appreciate help with either of
the .htaccess contents that are required.
This question I think is very simple for
some of the more experienced php users
and I can't find the answer in any
documentation.
Thanks very much for any help.
Gerald Howse
###
m2 mail - http://www.opera.com/m2/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Multiple posts.

2003-07-03 Thread news.php.net
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 in a row. I have a form where I can write the message and I take the
phonenumbers from db and there's a button to send the sms. If I do it once
it works fine, but how to do it multiple times? The real problem is that
after I do it once the browser opens a web page returned from the
sms-server. So what should I do to prevent the browser doing this and can I
make a php-script to my webserver that sends the needed information as many
times as I want and without opening the "requested" page?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP & ORA9.2.0 Stored procedure

2003-06-04 Thread news.php.net
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 grateful if you could enclose a simple example explaining
the solution in a few lines of code. I think that this should clarify very
much my doubts. Thanks



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] apache httpd + PHP authentication

2003-10-18 Thread news.php.net
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, the home page is loaded. Subsequent pages are linked with URLs 
like "http://mysite.com/?page=nextpage.php";. In the parser I define a 
"base_dir" variable that allows access to a common set of code files 
regardless of where the page file is. The complete parser is:

  require('./php/lib/base-dir.inc');// Assigns $base_dir
  $page = $_REQUEST['page'];
  if ("" == $page)
$page = "main-index.php";
  include($base_dir . $page);
  So the restricted page is in a subdirectory with a .htaccess file to 
indicate that a name/password is required. This is ignored, presumably 
because the file is include()'d.
  I have looked at the authentication info in the docs. I have to do 
all the work of verifying the name/password. I do not wish to do so 
since an satisfactory method already exists.
  Is there a way to use a parser as above and still have httpd 
recognize the need for a name/password?

--
jimoe at sohnen-moe dot com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] apache httpd + PHP authentication

2003-10-19 Thread news.php.net
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 before including the page's code.

Is there a way to use a parser as above and still have httpd 
recognize the need for a name/password?
I'm sure there are many ways. You could check for the .htaccess yourself before
including the file, and require HTTP authentication where appropriate. What you
can't do, however, is presume that you can write a script that handles requests
instead of Apache and magically have your code do everything Apache does.
  I do *NOT* want to duplicate the httpd functionality, I want to 
preserve it.

--
jimoe at sohnen-moe dot com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] How do I protect downloadable files?

2003-12-30 Thread news.php.net
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
downloadable content and prevent bookmarking of the file location for
redownloading.

Currently I have a .htaccess file to protect the files but then you need to
enter a User ID and password a second time.  I would prefer a single signon
solution.

I have considered copying the files to a temporary area each time someone
wants to download it and then erase it when the session is killed but these
files can be large (20-100 mb) and I would rather not do all of that copying
if possible.

Creating unique symlinks would be easier but my development machine is
Windows and my server is FreeBSD and I can't create file links under
Windows.  Plus,  my FreeBSD server is not near me so remote development is
difficult.

Thanks to anyone with any ideas,
Andrew

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Good Free PHP Editor - And it's not Edit Plus!

2001-03-18 Thread news.php.net

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 recent discussion regarding a PHP editor, I thought you would
> like to know that VB Web Development have finally released Developers Pad
> BETA 2. This program is open source, and free. It's features include
syntax
> highlighting (fully customizable), powerful project view, auto-indent,
quick
> HTML tag insert, open linked file and more.
>
> It is available for download at
> http://developerspad.vbdiamond.com/download/
> and you can talk to me (and everyone else) about it at
> http://developerspad.vbdiamond.com/forum/
>
> If you have any problems with the new release, don't have any hestitation
in
> contacting me.
>
> New Features for BETA 2:
> - Enhanced Project View
>* Virtual folders
>* Saved in XML Format
>* Can open VB, VC++ and .NET Project Files
> - Enhanced Editor Window
>* Open Linked File Shortcut
>* Jump-To Procedure List
>* Quick HTML Tag Insert
> - Extended Language Support
>* Now includes support for SQL, VB.NET and C#
> - Less Bugs!
> - Improved Add-In Support
>* New Add-In Object Model
>
> We are currently looking for sponsors! If there is a company out there
> interested in sponsoring Developers Pad and its site, please e-mail me.
>
> Regards,
>
> - James
>
> Editor, VB Web
> ==
> Web   - http://www.vbweb.co.uk
> Email - [EMAIL PROTECTED]
> ICQ#  - 60612011
> ==
>
>
> --
> 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]
>



-- 
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]




[PHP] Any one have PHP voteBOOTH source code...?!?

2001-04-14 Thread news.php.net

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 contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] How to UnRegist session when Close Browser

2002-03-14 Thread News.php.net

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 definitely. My Question is How to unregist session when User Close
his browser . Could Anybody help me?





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] NNTP Services

2002-03-17 Thread news.php.net

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




[PHP] Parsing error

2002-04-01 Thread news.php.net

Hi,

I'm real new in php and trying to read a txt file

this is my code :



and when i run it i get : Parse error: parse error in essai.php on line 45

here' my txt file (just 1 line for probe)

petitimage;photo;marque;Nom;lepdf;commproduit

Can someone help me to go thru

TIA

Hubert





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Newbies Question

2002-04-07 Thread news.php.net

Hi everybody,

I'm a  french newbie in PHP and I'm trying to resolve this :

 $num champs dans la ligne $row: ";
//$row++;
for ($c=0; $c<$num; $c++) {
//print $data[$c] . "";
$image = $data[$c];
$img = GetImageSize(""$image\n"");this is Line 13
print $image;
print $img;
}
}
fclose($rf);

each time  I run it I get a : Parse error: parse error in essai2.php on line
13


All I want is to get the image name and size to put in in a table



TYA for your help





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Problem with session_is_registered

2001-06-21 Thread news.php.net

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 ]

.
.
.
NEXT



[ check.php ]
";
}
else {
 echo "no, count is not reg.";
}
?>
.
.
.


now, check.php always writes "no, count is not reg.", but I don't really
understand, why!
do I have to run a -> session_register ("count"); <- before using
"session_is_registered"?
But if I do this, there is no need to check for the var with
"session_is_registered"because
I know the var is registered

maybe someone can help me out or point me to a good tutorial about
sessions

thx in advance :)
andi






-- 
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]




[PHP] php4 & phplib

2001-06-29 Thread news.php.net

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
('62298a7def668dff3a8b417a4f0ad7a0', 'Batnet_usr_Session',
'QmF0bmV0X3Vxbvsnbsdf3iubn',
'20010628161008')
Sybase Error
Session halted.

There is a session with this id and phplib should do update instead of
insert.

Are there good sites where I can read about how to safely upgrade php and
keep my phplib working ?

Thanks in advance
Marcin.



-- 
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]




Re: [PHP] Read and write

2001-07-13 Thread news.php.net

But I read in binary!


--
--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
 François Boucher
   [EMAIL PROTECTED]
   ___
  _  (  hello... )
  Q   _/\ __/
 
  ¸L
--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--

>Put quotes around "rb", but I don't think you need the b.
>
>Also, are the integers always char(4)?
>
>/* Chris Lambert, CTO - [EMAIL PROTECTED]
>WhiteCrown Networks - More Than White Hats
>Web Application Security - www.whitecrown.net
>*/



-- 
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]




[PHP] read filenames from dir

2001-07-26 Thread news.php.net

hi,
I want to read the filenames in a specific dir (running Linux) and echo the
names as link in my browser.
Which functions/commands can I use for this?
What are the security risks?

TIA,
Dr.Bob



-- 
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]




[PHP] FTP Connection Problems

2001-08-31 Thread news.php.net

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 other clients.

It also gives this error for the first ftp_put() I call, but it drops the
first file to be FTP'd into its local folder and then the script dies.  Does
anyone know whether this error is coming from my code, PHP, or the FTP
server I'm trying to connect to?

Thanks-
Michael Jacobs



-- 
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]




[PHP] Modifying this PHP-based sourceforge.net web proxy

2004-08-18 Thread news.php.net
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
displayed by default.

This script was designed for people to be able to bypass blocked websites
from work, by going through this proxy, but I need it because one DMZ on our
firewall cannot access the other DMZ where the web server is, and they need
to be able to.

This script works fine in my testing, but I do not know enough about PHP yet
to be able to modify it on my own.

I tried changing the "$this->url" on line 202, which set the script up to
browse that URL fine, but none of the links.  It always displayed only the
home page.  I need an initial URL, but then allow it to be changed when
people click on a link.

Can anyone help?  Thanks a million!

  - Adam


begin 666 poxy-0.3.zip
M4$L#!!0(`)%2U3"1+O>D[0$``&($```-:F%V87-C><^\-HGF&0C "#IK'"YRD&;E9TA7C^0\AE;XMUG<_3Y\^>_[B
MY:O7;]Z^&[__<';^\>+RZM/[EMAIL PROTECTED]/+T'G4H>L\ZM!9AGXOT2Q6
MA#,@[EMAIL PROTECTED]:'9NO_>KWP-F,5Q<*F%S5'@;[EMAIL PROTECTED])C88 @(.+%/?8I9JC)S
M]CRW0M4$=L5:C+&RNU$)CC,D3A4D[O [EMAIL PROTECTED]"[P^2V!UY3;Y[2()
[EMAIL PROTECTED],0]<-SM72NS70L>ZQ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WFCL(%$7RBZSF+<**E;.KBA)EF8_VC9 *EYO(-"]#5&SQYZ.I&[EMAIL PROTECTED]
MG%>2X$_?1_C[8NQ+(%6HIMN E-Z?,8,5\W^R31-:[CC&15U)#")Z.Y*A^[UI
M<,%WPL5[(X#K-;R%^,!NG/B.-G4U*N21J
M*A+!4A([EMAIL PROTECTED]/XSW8RGF=ILUNB:(^42_\%5LH+9@>;1D`NM=>VW@'DJCU!)3$
MON);>7S_C#JG(2C1Y^C_["A>/P4OS']U%(O7#"W-J0>-'JW"5P"MS]UR3AXA
M[%V#O2(WL8QTY9(,[.0:YP+>\=?(VFI827\R)W)E"$79=] ]"2T)R8HD$%FL
M6KCLWWNSB-P`VB0:(.M[Z*;4EI&9UO.0.N9Z"

[PHP] I'm looking to have a simple webpage send an email . ..

2004-10-04 Thread news.php.net
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



[PHP] icmp echo / ping

2004-05-09 Thread news.php.net
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



[PHP] Gd Library and Special Chars

2004-06-11 Thread news.php.net
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 Opera's revolutionary e-mail client: http://www.opera.com/m2/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: Gd Library and Special Chars

2004-06-11 Thread news.php.net
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 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 Opera's revolutionary e-mail client: http://www.opera.com/m2/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] dir_object->read() on different platform

2007-09-17 Thread news.php.net
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. 
1992-7-11.txt...2000-4-10.txt...2004-5-2.txt) even the time stamps on these 
files are different.
However, after I ftp them to a Linux box and load the php script from the 
Linux box, the order is gone. The time stamps on those files on the Linux 
box are the same since they were all ftp and cp at the same time.
Does anyone know why? Can anyone suggest a simple solution?

Thanks.
Davis 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] books for php

2008-04-08 Thread news.php.net
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



[PHP] Use of Class Reference Variable in another Class

2004-02-04 Thread news.php.net
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 (Class2) I have several functions that need database
access.  So in each function I can use "$db = new dbi;" and then use the
functions as usual ($db->dbquery("blah");).

I am wondering, can I create the new "dbi" instance at the top of Class2 and
have all the functions within Class2 use the "dbi" class reference variable
($db)?

If so, would the use be something like this:

$this->db->dbquery("blah");

Thank you,
Jonathan Duncan
www.jkdwebmagic.com
Web Site Hosting and Design

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] check for inactive sessions

2004-02-08 Thread news.php.net
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
maximum of 5 possible simultaneous user log-ins, the user stack will be full
unless those users logout (which will reduce the stack by one), or their
session
expires. The problem being that I do not know how to check if a session is
active, other than checking the current user session of course (not all
session's
currently associated with an account). I am storing all sessions associated
with an account. Any ideas? Thanks in advance

Christian

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Arrays as session variables

2004-02-27 Thread news.php.net
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 the
array contains all the fields and information for the table.  A second form
will contain an action that sends the sql code for creating the table to the
database server, and viola, I've got myself a new table.  Or not.  If anyone
has any suggestions on how I can get this done I'd appreciate it!  I'd
really rather not post my whole code file, as it's really big and long, and
emphasizes how novice I am at PHP.  Thanks in advance for your help!

-Kermit

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Page that checks if a user exists on a remote system

2004-12-01 Thread news.php.net
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 in a php file:

$idResults = `ssh [EMAIL PROTECTED] id bigbob 2>&1`;
echo "id: (".$idResults.")\r\n"."\r\n";
if (ereg("no such user", $idResults)) {
echo 'username is available!';
}

When I access the page I get:

Could not create directory '/nonexistent/.ssh'.
Host key verification failed.

This, of course, is because the script is being run as "www" who has no 
place to put ssl keys.

Could this be solved by having "www" "su" to a user who has remote access 
privileges?  Something like this:

$idResults = `su admin | ssh [EMAIL PROTECTED] id bigbob 2>&1`;
echo "id: (".$idResults.")\r\n"."\r\n";
if (ereg("no such user", $idResults)) {
echo 'username is available!';
// function addUserToServerB(vars);
}

Anyone else doing or done something like this?

Thanks,
--
Jonathan Duncan
http://www.nacnud.com 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Too many DELETE statements

2004-12-02 Thread news.php.net
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:

$query = "delete from table1 where userid = " . $ID;
$result = mysql_query($query, $link);

$query = "delete from table2 where userid = " . $ID;
$result = mysql_query($query, $link);

...

But even with only 10 members, the page takes 30-60 seconds to come back to
me. What is the best way to accomplish this? And it is possibe to delete
1000 by 1000 or 100 by 100?

Thanks.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Is this a bug?!!! I cna't believe! Sorry, if im wrong...

2005-01-30 Thread news.php.net
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");
 $arr[1] = &$a;


//But watch the output!!!
// It is "(qaz)(qaz)", which means that the attribute of a first
// object assigned to array is outputted!!! WHY?!?!!!
 foreach($arr as $a)
 {
  echo "(".$a->name.")";
 }
?>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Is this a bug?!!! I cna't believe! Sorry, if im wrong...

2005-01-30 Thread news.php.net
> 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 A("qaz");
>>  $arr[0] = &$a;
>
> $arr[0] and $a reference now the same variable
>
>>
>>  $a = &new A("wsx");
>
> by changing $a you also changed $arr[0]

No. referencs are not pointers! Here in "  $a = &new A("wsx") " I assign $a
by reference, and now $a references the different location, and $arr[0]
references the same. Assigning $a by references doesnt affect $arr[0],
though the pointed to the same location before...
After all this is the prove:

This is my  previous assignment code:


 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");
 $arr[1] = &$a;

//HERE IS THE PROVE
print_r($arr);
//Watch the OUTPUT... there are DIFFERENT objects laying in the array! This
is the point of my question...

// But if you do this:

 foreach($arr as $a)
 {
  echo "(".$a->name.")";
 }

// You see that iterating the objects it somehow references the same
object...
// or the same 'name' attrribute of the first object in the array...











>
>>  $arr[1] = &$a;
>
> now $a, $arr[0] and $arr[1] reference the same variable, they just have 
> different names.
>
> More:
> http://sk.php.net/manual/en/language.variables.php
> http://sk.php.net/manual/en/language.references.php
>
>>
>>
>> //But watch the output!!!
>> // It is "(qaz)(qaz)", which means that the attribute of a first
>> // object assigned to array is outputted!!! WHY?!?!!!
>>  foreach($arr as $a)
>>  {
>>   echo "(".$a->name.")";
>>  }
>> ?>
>>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Still cnanot figure out with much easier example...

2005-01-30 Thread news.php.net
Just compare the output of print_r($arr) and foreach(...)...  !!!   Please, 
explain, or my understanding of the php is gonna ruin.
Thanx, Mark.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php