Re: [PHP] Re: Batch E-Mail Problem

2002-08-14 Thread Daren Cotter
I understand this solution, but are you telling me that companies that send millions of emails per day simply use the BCC line in the email? I can't imagine this is the "proper" way of doing things...I do, after all, need to send 50,000 emails at a time. Can anyone else verify this? --- Manuel L

Re: [PHP] Re: Batch E-Mail Problem

2002-08-14 Thread Daren Cotter
Actually, the browser outputs every email sent, and runs the following commands every 3,000 mailings: print "pausing..."; flush(); sleep(15); print "resuming"; flush(); // continue so it's not the browser timing out --- Bogdan Stancescu <[EMAIL PROTECTED]> wrote: > Ok, I'm not positive I'm righ

Re: [PHP] MySQL vs Session?

2002-08-14 Thread Rasmus Lerdorf
Sure it can. If the machine name is different make sure you set your session.cookie_domain to something like .domain.com but other than that there shouldn't be anything to it. As long as you propogate the session id somehow to the script, when session_start() is called in that script it will pic

Re: [PHP] MySQL vs Session?

2002-08-14 Thread Jean-Christian Imbeault
I'm interested in finding out the answer to this since it seems that I will need to implement my own session handler. I need to pass session information from SSL connections to non-SSL connections (albeit on the same server) and PHP doesn't seem to be able to do this ... Jc -- PHP General

[PHP] Help please

2002-08-14 Thread paul
Hello; I have a Mandrake 8.2 machine that I'm trying to get a php webmail application running on. Apache is running, php is installed, and when I attempt to view/use index.php my browser offers to download "index.php" for me. I have tried 4 different browsers on three different machines. I have

Re: [PHP] MySQL vs Session?

2002-08-14 Thread Bob Irwin
I'd have to say that I haven't done any controlled tests, but mysql can be very slow when you are doing a lot of connections (correct me if I'm wrong, but I think it executes requests in order?). To be untechnical about it and only speak from experience (if I was a typical internet user, I'd thin

[PHP] MySQL vs Session?

2002-08-14 Thread Tino Didriksen
Which is generally faster/better, doing a SELECT or doing session_start()? Rephrased, are sessions significantly faster/lighter than using MySQL? I'd imagine they are, since they won't need to do a connection or anything, but I am not familiar with how sessions scale. -- Tino Didriksen / Projec

[PHP] Re: PHP native session

2002-08-14 Thread Lars Olsson
Hi! There are several ways. You could use a database or a text file. If your server comes with dba support, I'd try that. Manual reference http://www.php.net/manual/en/ref.dba.php /lasso ([EMAIL PROTECTED]) Mattia wrote: > I'm looking for a way to have a list of the users logged in my site

Re: [PHP] Automatically send email on special day

2002-08-14 Thread David Buerer
Hey guys, you're all making this too dificult. Windows NT, Windows 2000, Windows XP, and even Window 98 all have a built in schedule utility. On NT, it's accessed via the AT command. In order to use it, the "Scheduler" system service must be installed. Once it's installed, tell it to call the P

Re: [PHP] Got another ripper for you all ;-)

2002-08-14 Thread Liam MacKenzie
Nup, still doesn't work. I can't get rid of that newline! Here... Eat your heart out: function get_num_emails($username, $domain) { $ulist=command("user list name=$username domain=$domain"); $ulist[1] = str_replace('Dir: ', '', $ulist[1]); trim($ulist[1]); echo "|".$ulist[1

Re: [PHP] Got another ripper for you all ;-)

2002-08-14 Thread Liam MacKenzie
Oh Whoops Thanks Tom - Original Message - From: "Tom Rogers" <[EMAIL PROTECTED]> To: "Liam MacKenzie" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, August 15, 2002 3:34 PM Subject: Re: [PHP] Got another ripper for you all ;-) Hi, Thursday, August 15, 2002, 3:2

Re: [PHP] Got another ripper for you all ;-)

2002-08-14 Thread Tom Rogers
Hi, Thursday, August 15, 2002, 3:20:47 PM, you wrote: >snip LM> Is there a way to get rid of any new lines in a string? LM> Because this is making my directory listing go whacko. LM> Cheers, LM> Liam trim($dir) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] Got another ripper for you all ;-)

2002-08-14 Thread Liam MacKenzie
Or not... that didn't work either... I do this: $ulist=command("user list name=$username domain=$domain"); $ulist[1] = str_replace('Dir: ', '', $ulist[1]); $ulist[1] = str_replace('\n','',$ulist[1]); $ulist[1] = str_replace(' ','',$ulist[1]); echo "|".$ulist[1]."|"; I get t

Re: [PHP] Got another ripper for you all ;-)

2002-08-14 Thread Liam MacKenzie
Cool... Yeah, I know, and I always spend at least 3 minutes looking through it before I post! seriously! (Thanks!) - Original Message - From: "Justin French" <[EMAIL PROTECTED]> To: "Liam MacKenzie" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, August 15, 2002 3:27 PM Subjec

Re: [PHP] Got another ripper for you all ;-)

2002-08-14 Thread Justin French
what about $dir = str_replace('\n','',$dir); ??? The manual is full of all sorts of good stuff! Justin on 15/08/02 3:20 PM, Liam MacKenzie ([EMAIL PROTECTED]) wrote: > Hey guys, > > yep, another one... > > > I do this: > echo "-".$dir."-"; > > I get this: > > -/home/eXtremail/mbox/i-re

[PHP] Got another ripper for you all ;-)

2002-08-14 Thread Liam MacKenzie
Hey guys, yep, another one... I do this: echo "-".$dir."-"; I get this: -/home/eXtremail/mbox/i-redlands.net/9/1/liam - Note the new line at the end. Is there a way to get rid of any new lines in a string? Because this is making my directory listing go whacko. Cheers, Liam -- PHP Gen

Re: [PHP] Automatically send email on special day

2002-08-14 Thread Chris Shiflett
if last_email_date != today { send email last_email_date = today } Happy hacking. Chris NoWhErEMan wrote: >I can ensure ar least one visitor per day, that;s me!! >Since my server in on my local windows mechine, i can load the page at start >up. >But i have a question, how can i ensur

[PHP] Re: ereg_replace()

2002-08-14 Thread Philip Hallstrom
I'd do something like this: $str = " User : [EMAIL PROTECTED] Dir : /home/eXtremail/mbox/i-redlands.net/3/1/liam Forward : Copy : Account mapping : User Disk Quota : 0 Disk Space Used : 0 Max In Mail Size : 0 Max Out Mail Size : 0 Autoreply : No Mailbox Access : POP,IMAP Created : Sat Jul 6 09:21

Re: [PHP] Automatically send email on special day

2002-08-14 Thread Liam MacKenzie
when the function excecutes, it checks the current date, then looks in a little textfile, if it's a match, it stops the script, but if the text file says a different date, it processes the scripts then updates the text file. Follow me? You could also use a MySQL database. - Original Messa

[PHP] Re: Batch E-Mail Problem

2002-08-14 Thread Manuel Lemos
Hello, On 08/14/2002 08:54 PM, Daren Cotter wrote: > I have a PHP script that queries a MySQL database, > retrieves email addresses, and sends an email to all > members of a website. > > The problem is this: the PHP script times out after > sending about 5,000 mailings, and I have to restart it

Re: [PHP] frames and variables

2002-08-14 Thread @ Edwin
I think one of the (if not THE) best implementation of frames with PHP/Javascript (HTML,CSS...) is phpmyadmin... http://www.phpmyadmin.net/ Of course, there could be a lot of others... - E > >The only way to talk to multiple frames is with javascript. yuk. > >Justin French > > >on 15/08/0

Re: [PHP] Automatically send email on special day

2002-08-14 Thread NoWhErEMan
I can ensure ar least one visitor per day, that;s me!! Since my server in on my local windows mechine, i can load the page at start up. But i have a question, how can i ensure the script only runs once though, per day? I think it is related to coding Say, my index.php have a script to check curren

Re: [PHP] Batch E-Mail Problem

2002-08-14 Thread Mirek Novak
Hi, I've solved this problem, if u have cgi version of PHP compiled on your box I can offer simple solution: All e-mails are completely stored into database (MySQL) and are sent using little daemon, also written in PHP, emails can be automaticaly generated or written through web interface, c

RE: [PHP] frames and variables

2002-08-14 Thread vic
You gotta be kidding me! - Vic -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 12:49 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] frames and variables The only way to talk to multiple frames is with javascript. yuk.

Re: [PHP] Include/require and the HTML Code

2002-08-14 Thread Chris Shiflett
I'm not sure about others, but I am glad this behavior is like this. It is very nice for modules to "stand on their own" so to speak, so that you don't have to worry about what context they are used in. If the file you are including is plain HTML, would you want it to be parsed as if it were P

[PHP] crypt(): how to make it use blowfish?

2002-08-14 Thread Jean-Christian Imbeault
How can I make crypt() use blowfish encryption? Also it seems that my system (RH7.2 Linux) doesn't support Blowfish according to CRYPT_BLOWFISH: CRYPT_BLOWFISH = 0 How can I add blowfish support to my system if crypt() requires it? Jc PS I don't want to use mcrypt(). I just want to install w

RE: [PHP] md5() ...

2002-08-14 Thread Reymond
Thank you... I got it... :) -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 11:44 AM To: Reymond Cc: [EMAIL PROTECTED] Subject: Re: [PHP] md5() ... Yeah, that's a little short for md5, plus you want to allow alphabetic characters, too

Re: [PHP] frames and variables

2002-08-14 Thread Justin French
The only way to talk to multiple frames is with javascript. yuk. Justin French on 15/08/02 2:37 PM, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: > Has anyone here designed php sites that use a combination of php pages > and html pages? > > What I want to know is how to pass a variable from

Re: [PHP] md5() ...

2002-08-14 Thread Chris Shiflett
Yeah, that's a little short for md5, plus you want to allow alphabetic characters, too. Try varchar(32). Happy hacking. Chris Reymond wrote: >This is output... > >select login, password from User where login = 'sysdata'; >+-+--+ >| login | password |

RE: [PHP] Include/require and the HTML Code

2002-08-14 Thread Michael Eales
This did indeed fix the problem, thanks for the advise. A question though: Why is this necessary, the include/require is called from index.php while in "PHP mode" ? The functions work fine as if I remain in "PHP mode" within the functions. It is only when I go in and out of "HTML mode" within th

[PHP] frames and variables

2002-08-14 Thread victor
Has anyone here designed php sites that use a combination of php pages and html pages? What I want to know is how to pass a variable from nav_frame.php (at the top) to itself, AND to the data.php frame (lower frame, main body) I can pass variables to itself, (with the "?page_name=content.htm" t

RE: [PHP] Automatically send email on special day

2002-08-14 Thread César Aracena
Not ignored Lian. That idea is great but only if you are 100% sure that your site is going to have at least one visitor per day. If you want to setup a script like that in your pet's dedicated page, which maybe will not have that many visitors at first, you will probably miss a lot of appointments

RE: [PHP] md5() ...

2002-08-14 Thread Reymond
Upss sorry... My password's field Varchar(20) ... -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 11:17 AM To: Reymond Cc: [EMAIL PROTECTED] Subject: Re: [PHP] md5() ... Show us the output of: select login, password from user where l

RE: [PHP] md5() ...

2002-08-14 Thread Reymond
This is output... select login, password from User where login = 'sysdata'; +-+--+ | login | password | +-+--+ | sysdata | 1b1c2457d12dd976d4cf | +-+--+ 1 row in set (0.00 sec) Cause I just password

Re: [PHP] Another stupid one...

2002-08-14 Thread Justin French
For starters, use str_replace() because you've got nothing that needs the overhead of ereg. The : is a key character too, which is creating your problem. $results = str_replace('User :', '', $results); Justin French on 15/08/02 1:59 PM, Liam MacKenzie ([EMAIL PROTECTED]) wrote: > Hey all, g

Re: [PHP] Automatically send email on special day

2002-08-14 Thread Liam MacKenzie
Hey, if you don't have access to CRON, you could try and include the page in your index.php. Set it so it only runs once though, per day. That means that as soon as someone visits your site they activate it for that day. It'd only work if you had the traffic though. Just an idea. Then again, I

Re: [PHP] md5() ...

2002-08-14 Thread Chris Shiflett
Show us the output of: select login, password from user where login='sysdata'; My guess is that the password is not "1b1c2457d12dd976d4cfa556ac6661f6" - the md5 of "sysdata". Chris Reymond wrote: >I have login = "sysdata" and >password = "sysdata" on md5 function > >How to select md5 funct

RE: [PHP] Automatically send email on special day

2002-08-14 Thread César Aracena
This have been very much discussed in this list, and the only logical way of doing this through PHP would be to have a script that reads the actual date of the server's system once a day, but that would be just impossible without having that script (page) reloaded at least once a day. I think the

Re: [PHP] Re: Another stupid one...

2002-08-14 Thread Liam MacKenzie
Ahh, I just found the problem... This is the source of the output: User : [EMAIL PROTECTED] Whoops... Sorry guys. The reason I'm having troubles with all this stuff is that it's all being pulled out of a hard database using telnet. Yeah, it's the only way, and it's a downright

[PHP] Re: Automatically send email on special day

2002-08-14 Thread Bogdan Stancescu
I suppose you want to use PHP - just set a cron job to run wget or lynx on that page every day. Alternatively, set a cron job to run a command-line php every day (it's somewhat faster) - but I think there are a couple of restrictions on the configuration, so if that doesn't work, just fall bac

[PHP] Re: Another stupid one...

2002-08-14 Thread NoWhErEMan
I get: [EMAIL PROTECTED] "Liam Mackenzie" <[EMAIL PROTECTED]> ¼¶¼g©ó¶l¥ó·s»D :003a01c24410$358fd7a0$[EMAIL PROTECTED] > Hey all, got another dumb question :-) > > Output text is as follows: > > User : [EMAIL PROTECTED] > > I do this: > $results = ereg_replace("User :", '', $results); > > I get

[PHP] md5() ...

2002-08-14 Thread Reymond
I have login = “sysdata” and password = “sysdata” on md5 function How to select md5 function mysql> select COUNT(*) AS result from User where login = “sysdata" and password = md5("sysdata"); +---+ | result | +---+ | 0 | +---+ 1 row in set (0.00 sec) I wanna the result displ

[PHP] Re: Another stupid one...

2002-08-14 Thread Bogdan Stancescu
Just stop using ereg_replace where not needed and use str_replace instead - it's faster and you don't risk bumping into "key-chars" like you just did. While regexps are very useful when needed, people tend to use the same functions even when they don't need regexps just out of habit... There,

RE: [PHP] stupid question

2002-08-14 Thread César Aracena
You got a point there... unless you change the operator from != to == right? Missed that. > -Original Message- > From: Chris Shiflett [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 15, 2002 1:00 AM > To: César Aracena > Cc: 'Liam MacKenzie'; [EMAIL PROTECTED] > Subject: Re: [PHP] stu

[PHP] Re: Batch E-Mail Problem

2002-08-14 Thread Bogdan Stancescu
Ok, I'm not positive I'm right here, but have you thought about the browser timing out - and not PHP? You may try doing an echo(" "); and a flush(); every 100 e-mails or so - and reset max exec time to a reasonable duration while you're at it - that *might* fix it. Please note that executing s

[PHP] Another stupid one...

2002-08-14 Thread Liam MacKenzie
Hey all, got another dumb question :-) Output text is as follows: User : [EMAIL PROTECTED] I do this: $results = ereg_replace("User :", '', $results); I get this: User : [EMAIL PROTECTED] But when I do this: $results = ereg_replace("User", '', $results); I get this: : [EMAIL PROTECTED]

[PHP] Automatically send email on special day

2002-08-14 Thread NoWhErEMan
Hi all, My site maintain a list of members, which i knew their birthday, and i want to send a email greeting to them on their birthday, of course, automatically. How can i do that? Thanks in advance Nowhereman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

Re: [PHP] stupid question

2002-08-14 Thread Chris Shiflett
César Aracena wrote: >Just usa an OR concatenator like: > >If ($idx != '1' OR $idx != '4' OR $idx != '9'){ >echo $results; >} > Actually, this statement will always evaluate to true. I think you mean to use &&. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

Re: [PHP] Re: stupid question

2002-08-14 Thread Liam MacKenzie
Ok, point taken. Sorry, I didn't know. Also, thanks for the help, I got it :-) - Original Message - From: "Jean-Christian Imbeault" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 15, 2002 1:52 PM Subject: [PHP] Re: stupid question Liam, when you want to post a ne

[PHP] Re: stupid question

2002-08-14 Thread Jean-Christian Imbeault
Liam, when you want to post a new message to the list don't just hit the reply button and change the subject. If you do that you message appears in the thread of the message you replied to. It really messes things up for people who follow message threads. And worse you might not get any answer

Re: [PHP] stupid question

2002-08-14 Thread Chris Shiflett
There are other ways of doing this, but I think you might be looking for the logical AND operator (&&). if ($idx != "1" && $idx != "4" && $idx != "9") Happy hacking. Chris Liam MacKenzie wrote: >Ok, I'm having a blonde day... > >If $idx == 1, 4 or 9 I don't want it to echo $results. >I have

Re: [PHP] stupid question

2002-08-14 Thread Adam Williams
if ( ($idx != "1") || ($idx != "4") || ($idx != "9") ) { echo "$results"; } Adam On Thu, 15 Aug 2002, Liam MacKenzie wrote: > Ok, I'm having a blonde day... > > If $idx == 1, 4 or 9 I don't want it to echo $results. > I have this, what's the syntax to put multipl

RE: [PHP] stupid question

2002-08-14 Thread César Aracena
Just usa an OR concatenator like: If ($idx != '1' OR $idx != '4' OR $idx != '9'){ echo $results; } Remember that if you are echoing just $result, it should not be enclosed into double quotes... just a tip. > -Original Message- > From: Liam MacKenzie [mailto:[EMAIL PROTECTED]] > Sent: Th

[PHP] stupid question

2002-08-14 Thread Liam MacKenzie
Ok, I'm having a blonde day... If $idx == 1, 4 or 9 I don't want it to echo $results. I have this, what's the syntax to put multiple values in there? if ($idx != "1") { echo"$results"; } Thanks, Liam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

[PHP] ereg_replace()

2002-08-14 Thread Liam MacKenzie
Hi guys, I'm looking to get a specific bit of data out of a slightly complex amount of data. Ok, I have this in a variable: User : [EMAIL PROTECTED] Dir : /home/eXtremail/mbox/i-redlands.net/3/1/liam Forward : Copy : Account mapping : User Disk Quota : 0 Disk Space Us

Re: [PHP] how do i continue with ereg replace?

2002-08-14 Thread Rasmus Lerdorf
So pass $good into the second call instead of $str On Wed, 14 Aug 2002 [EMAIL PROTECTED] wrote: > I want to have the ereg_replace action happen many times before the > result is echoed, how do I do this? The following is the code that I > have that obviously is flawed because the later variable

[PHP] how do i continue with ereg replace?

2002-08-14 Thread victor
I want to have the ereg_replace action happen many times before the result is echoed, how do I do this? The following is the code that I have that obviously is flawed because the later variable as afar as ai know cancels out the first one... $good = ereg_replace("", " ", $str); $good = ereg_repl

Re[2]: [PHP] PHP - class question

2002-08-14 Thread Tom Rogers
Hi, Thursday, August 15, 2002, 5:17:00 AM, you wrote: MA> Well, I actually have a full db class which has a connect and close method MA> as well as query, fetch_array, etc... What I really want to know is how to MA> use the methods in my db class from another class (myclass for example).. MA> D

[PHP] SSL and sessions: is same session valid across SSL and non-SSL

2002-08-14 Thread Jean-Christian Imbeault
I start a session under an SSL connection (https), do some work, and then register some variables. I then do a header("location: http:/somepage.php"). the page is loated on the same server that was doing the SSL work. My question is are the session variable I registered under the SSL connecti

RE: [PHP] CURLing to authorize.net

2002-08-14 Thread Jonathan Rosenberg
I bet that your copy of CURL was built without SSL support, despite the fact that PHP has SSL compiled in. To test this, see if you have the "curl" shell command installed & try curl https://secure.authorize.net/gateway/transact.dll It will probably say something like curl buil

RE: [PHP] Php.ini on Solaris?

2002-08-14 Thread Peter Houchin
is usually in /usr/local/lib > -Original Message- > From: Randall Perry [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 15 August 2002 11:58 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Php.ini on Solaris? > > > Just compiled Apache 1.3.26 with latest php and discovered my > form variables >

Re: [PHP] Strange session id problem - code is issuing a new onerandomly

2002-08-14 Thread Chris Shiflett
Dan Harrington wrote: >I'm having the same problem from time to time as well. >Just straight up out of the blue it gives you a new SESSION id. > As a general rule, the reason that you will find yourself with a new session ID is that the old session ID was not properly communicated back to the

Re: [PHP] Php.ini on Solaris?

2002-08-14 Thread Justin French
Run a script with phpinfo() in it, and it should tell u the path to the php.ini file for your installation. It will be different for everyone. For what it's worth, you should look to having register globals OFF in your scripts as a short term goal, using the $_POST, $_GET, $_COOKIE, $_SESSION et

[PHP] Php.ini on Solaris?

2002-08-14 Thread Randall Perry
Just compiled Apache 1.3.26 with latest php and discovered my form variables weren't getting thru to php scripts. Looked through archives and found ref to register_globals setting in php.ini. Only trouble is, I can't find php.ini on my server (except in the php source code folder). Where should

RE: [PHP] Strange session id problem - code is issuing a new one randomly

2002-08-14 Thread Dan Harrington
I'm having the same problem from time to time as well. Just straight up out of the blue it gives you a new SESSION id. --I'm interested to know what version of PHP you are using and what web server and its version too. Thanks Dan > -Original Message- > From: Thoenen, Peter Mr. EPS

[PHP] Strange session id problem - code is issuing a new one randomly

2002-08-14 Thread Thoenen, Peter Mr. EPS
# START CODE SNIPPET ... COMMENTS BELOW (and yes I am not a db guru by anymeans, might be easier ways to do this) https://example.org'); die; } break; Now this is where I have issues. The header ('Location: https://example.org') works as it is sup

Re: [PHP] mysql_num_rows();

2002-08-14 Thread Jason Wong
On Thursday 15 August 2002 07:35, Sascha Braun wrote: > This is my query with some dummy loginformations: > > SELECT * FROM benutzer_db where Benutzername = 'Herbert' AND Passwort = > 'hals' > > and this is the code i use for the database transaction: > > $Query = "SELECT * FROM benutzer_db where

[PHP] PHP native session

2002-08-14 Thread Mattia
I'm looking for a way to have a list of the users logged in my site (with a session_start() ). Is it possible to do it with the php4 api? thanks Mattia -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Include/require and the HTML Code

2002-08-14 Thread Peter Houchin
Mike, i had no problems with this.. # Do things LogBook http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Global asa

2002-08-14 Thread Cokis
Hi news, Is there any similarity "global.asa" in ASP at PHP ? thank's Hotma MS -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ADVANCED PHP (SOCKETS)

2002-08-14 Thread Ninety-Nine Ways To Die
I've got a fully functioning socket server that I use for monitoring written in PHP... email if you want the full script, too big to waste peoples time with here. --- /* Neunzig neun Möglichkeiten zu sterben // Ich bin nur ein anderer Zahn in der Maschine. */ On Wed, 14 Aug 2002 15:09:09 Gus

[PHP] CURLing to authorize.net

2002-08-14 Thread Mike Mannakee
The server I'm on has php compiled with curl and with ssl, so that's not an issue. I cannot seem to connect to authorize.net, however, using https://. If I use http://, it works fine. Below is the code I'm using. I know someone out there has tackled this problem before and I'm hoping you can te

Re: [PHP] ldap_rename refused to work

2002-08-14 Thread Roger Thomas
--- Stig Venaas <[EMAIL PROTECTED]> wrote: > > But you're not doing what I wrote... :) or else i won't be asking hehehe > > The third parameter should be the new rdn (which is the same as the old), > and the fourth should be new parent. So it should look like this: > > $r=ldap_rename($ds, >

[PHP] Re: Session, error occurs

2002-08-14 Thread Daniel Canil
"Per" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Daniel Canil wrote: > > I have jsut recently installed a php development kit on my windows platform. > > Im interested in using the session functions but I am recieving this error > > when I use session_start

RE: [PHP] P.S. html parsing from html file through php

2002-08-14 Thread vic
Why is this giving me no results? (blank page with this source: this is the code --- (.*)<\/div>/i",$dirty_html,$clean_html); $clean_html = implode('', $clean_html); echo $clean_html; //$html_text = $dirty_html; //preg_match("/(.*)<\/body>/i",$html_text,$m

[PHP] LIB PHP V4.0.3 - Construction of GIF that the versions recent PHP doesn't have

2002-08-14 Thread Breno Cardoso Perucchi
Hello, In the version 4.0.3 a library that made construction gif existed. You were able to to manipulate or to create a gif. In them version superiors that Lib stopped doing part of PHP. Somebody could tell me that could do to solve my problem with the version of most recent Php. thanks Breno

[PHP] Batch E-Mail Problem

2002-08-14 Thread Daren Cotter
I have a PHP script that queries a MySQL database, retrieves email addresses, and sends an email to all members of a website. The problem is this: the PHP script times out after sending about 5,000 mailings, and I have to restart it 10 times in order to mail the entire list! This is an ongoing p

Re: [PHP] Include/require and the HTML Code

2002-08-14 Thread Bas Jobsen
> Can anybody tell me why I get a "Parse error: parse error, > unexpected '}' in /usr/local/apache/htdocs/logbook/Functions.inc on line begin and end your include files with bllaalla -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Include/require and the HTML Code

2002-08-14 Thread Sascha Braun
Maybe something wrong with the return? I was thinking about return "What?". (U understand me?) in Javascript a simple return does nothing. maybe you can just leave the return out of your script. - Original Message - From: "Mike Eales" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent:

[PHP] mysql_num_rows();

2002-08-14 Thread Sascha Braun
This is my query with some dummy loginformations: SELECT * FROM benutzer_db where Benutzername = 'Herbert' AND Passwort = 'hals' and this is the code i use for the database transaction: $Query = "SELECT * FROM benutzer_db where Benutzername = '".$SESSION['nickname']."' "; $Query .= "AND Passwor

[PHP] Include/require and the HTML Code

2002-08-14 Thread Mike Eales
Hi, Can anybody tell me why I get a "Parse error: parse error, unexpected '}' in /usr/local/apache/htdocs/logbook/Functions.inc on line 17 " for the following code: Appreciate any help. Using PHP 4.2.2 and Apache 1.3.26 on Redhat 7.3 x86 (The "" stuff is not part of the code. ind

Re: [PHP] mysql_num_rows($Result)

2002-08-14 Thread Bas Jobsen
In your database design you need the following every username/pass comb is unique. so a query like ... WHERE username='$testvalue' AND password='$testvalue2' Have to give you one row for a good user/passcombination ALWAYS. And 0 rows for a wrong combination. If NOT your design doesn;t fit you

Fw: [PHP] SESSION Security

2002-08-14 Thread Sascha Braun
Yeah, I guess I meant that! - The Attacker just needs to upload a nice PHP Script wich is able to spy all serverpathes, maybe via phpinfo() and then open each file stored in the session tmp path via dir_list() funktion, hope this was the right funktion, but there are some, with php it's easy

Re: [PHP] SESSION Security

2002-08-14 Thread Bas Jobsen
Op donderdag 15 augustus 2002 01:03, schreef u: > So, if somebody gets an ftp account somehow, he will be able to get session > vars via a system() command? You holds him in its own dir by the chroot setting of you ftpserver. > via a system(); you mean if they upload a php file? prevent that wit

[PHP] mysql_num_rows($Result)

2002-08-14 Thread Sascha Braun
Mh, right yet I have another problem. I want to select a username an a = password from a database. The Values for tghe select are stored in a = session variable. And my problem is, that when I run the Query there is no difference in = the mysql_num_rows($Result) it both time (When the User is i

Re: [PHP] SESSION Security

2002-08-14 Thread Ilia A.
On August 14, 2002 07:12 pm, Sascha Braun wrote: > So, the system() command allows a user only to start services in his own > home direktory? > Uhm... I am a little confused, how does system() command relate to FTP access? Ilia > > > > - Original Message - > From: "Ilia A." <[EMAIL PROT

Re: [PHP] SESSION Security

2002-08-14 Thread Sascha Braun
So, the system() command allows a user only to start services in his own home direktory? - Original Message - From: "Ilia A." <[EMAIL PROTECTED]> To: "Sascha Braun" <[EMAIL PROTECTED]>; "PHP Mailingliste" <[EMAIL PROTECTED]> Sent: Thursday, August 15, 2002 1:36 AM Subject: Re: [PHP] SE

Re: [PHP] SESSION Security

2002-08-14 Thread Ilia A.
On August 14, 2002 07:03 pm, Sascha Braun wrote: > So, if somebody gets an ftp account somehow, he will be able to get session > vars via a system() command? If their FTP client allows them to go into the directory where session ids are stored, then that user will be able to see current session

Re: [PHP] SESSION Security

2002-08-14 Thread Sascha Braun
So, if somebody gets an ftp account somehow, he will be able to get session vars via a system() command? - Original Message - From: "Ilia A." <[EMAIL PROTECTED]> To: "Sascha Braun" <[EMAIL PROTECTED]>; "PHP Mailingliste" <[EMAIL PROTECTED]> Sent: Thursday, August 15, 2002 1:27 AM Subject

Re: [PHP] SESSION Security

2002-08-14 Thread Ilia A.
If a person 'somehow' gains read access to the directory where the sessions are stored on your server, then yes it is possible for them to get the session id. Ilia On August 14, 2002 06:41 pm, Sascha Braun wrote: > Is it possible that someone from outside can read the session stored > on my we

Re: [PHP] Two version of php in the same system

2002-08-14 Thread Breno Cardoso Perucchi
I did all things that you talked. I put below in my httpd.conf those lines. Thanks AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps Action application/x-httpd-php403 "/ver403/php" ScriptAlias /ver403/ "/usr/local/php/ver403/bin" AddType applicat

[PHP] SESSION Security

2002-08-14 Thread Sascha Braun
Is it possible that someone from outside can read the session stored on my webserver for getting unencrypted password and usernames? Schura

Re: [PHP] Re: mysql statement (still a semi newbie)

2002-08-14 Thread Sascha Braun
I'm always making my inserts like this: $Insert = "INSERT INTO basket_db (name, image_id, customer_id, session_id) "; $Insert .= "VALUES ('$name', '$image_id', '$customer_id', '$PHPSESSID')"; ...and I'm using the SET Field = '$Value' in the Update Querys like this: $UpdateQuery = "UPDATE produk

Re: [PHP] file_get_contents ( string filename [, int use_include_path])

2002-08-14 Thread Bas Jobsen
> string filename The name of the file. b.e test.html or $_SERVER['DOCUMENT_ROOT'].'test.html' > int use_include_path Optional 1 true or 0 (or nothing) false the file above is in my default include path. Manual: you can use the optional second parameter and set it to "1", if you want to search f

[PHP] file_get_contents ( string filename [, int use_include_path])

2002-08-14 Thread victor
Can someone explain me more abou the usage of this code: file_get_contents ( string filename [, int use_include_path]) I just got it from the annual, and I still don't get what they mean by string filename and int use_include_path Thanks, This has to do with the other question I posted ear

RE: [PHP] Re: html parsing from html file through php

2002-08-14 Thread vic
Thanks, I will try to adapt this to my needs. - Vic -Original Message- From: JJ Harrison [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 5:44 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: html parsing from html file through php > Hello, I am making an app that read from an

Re: [PHP] [Class] "global" again, not working?

2002-08-14 Thread Bas Jobsen
Hi, do -- echo $data[0]*$data[1]); return ($data[0]*$data[1]); -- i think its empty. In the first place, i thought it was maybe impossible to call a class-functions in your constructor. (Cause the class function don't exists at the moment you call your constructor). But the code below showed i

[PHP] PHP and Samba

2002-08-14 Thread Erich Kolb
Is there any way to determine if someone is logged in to a Samba Domain using PHP? If so, how? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] P.S. html parsing from html file through php

2002-08-14 Thread victor
Actually I think there is even less work to be done, the paragraph spacing problem I talked about earlier can be avoided if I leave all that foobar tags and erase only: http://www.w3.org/TR/REC-html40";> Community <--[Need everything here]-> <- in there, not the

[PHP] Re: html parsing from html file through php

2002-08-14 Thread JJ Harrison
> Hello, I am making an app that read from an html file outputted by MS > word (ya its for those people that need to make webpages but don't know > how o write html) anyway, using MS word is a requirement; After the user > saves their .doc file as a web page (now and htm file) the php will take >

  1   2   3   >