php-general Digest 9 Mar 2001 23:54:13 -0000 Issue 557
Topics (messages 43131 through 43242):
Send & Receive SMS from handphone from/to PC
43131 by: toto
Re: HTML book recommendation
43132 by: Greig, Euan
How do I detect how many people are using a port?
43133 by: Cybercandy Ltd
Multiple Inserts
43134 by: Website4S.aol.com
43135 by: CC Zona
43136 by: Website4S.aol.com
43138 by: Phil Driscoll
Concurent requests
43137 by: Daniel B I
43159 by: Carsten Gehling
REDIRECT_SCRIPT_URI What/How'd I do this?
43139 by: Paul Warner
Socket trouble
43140 by: pallmall.hushmail.com
Re: Memory use
43141 by: Marko Perich
Tree menu
43142 by: Rosen
43147 by: Dominique Paquin
Re: displaying information
43143 by: Jason Stechschulte
43144 by: Nick Davies
43149 by: py
Re: Qmail problem
43145 by: pete collins
43169 by: Nuno Sa e Silva
43170 by: pete collins
43192 by: pete collins
PHP problem
43146 by: Knotek Vlastimil
43153 by: Michael Kimsal
43158 by: TV Karthick Kumar
Re: unsuscribe me
43148 by: Dominique Paquin
Fields into Combo Box
43150 by: RealGM
in_array() with multidimensional array
43151 by: Christian Dechery
43171 by: Chris Lee
How to compare db-type DATE?
43152 by: Michal Hrtko
Re: [PHP-DEV] Header Question using WML
43154 by: Jayme Derr
Generate Random Letters?
43155 by: Website4S.aol.com
43156 by: Adam Wright
43157 by: Nathaniel Hekman
43184 by: mjriding.wcoil.com
Anonymous Arrays
43160 by: Morgan Curley
43162 by: Boget, Chris
43165 by: Morgan Curley
Strings..
43161 by: Ashwin Kutty
43166 by: Nathaniel Hekman
includes slooooooow
43163 by: Jens Kisters
43164 by: Andrew Hill
Functional Programming Style?
43167 by: Ted Goranson
43172 by: Nick Davies
Word2000 .doc as email attachment
43168 by: stout.stoutstreet.com
Getting size of a TYPE
43173 by: Natasha
Re: How to insert a BLOB in mysql?
43174 by: Chris Lee
Re: oohform validation help
43175 by: Chris Lee
43176 by: Boget, Chris
PHP4 and Apache DBM authentication
43177 by: AK47
Response 304
43178 by: Thomas Weber
odbc_ calls and "complex" queries (e.g. union
43179 by: A. Giacomelli
Using PHP as a shell script
43180 by: Alexandre Hautequest
43188 by: Frank Joerdens
43193 by: John Huggins
43213 by: Chris Lee
43230 by: Kath
php4ts.dll error
43181 by: Christian Dechery
PHP4 CGI Problem
43182 by: Devin Atencio
Re: Graph Functions
43183 by: Christian J�rgensen
dynamic content again
43185 by: george
43211 by: Chris Lee
conjecate a variable to a string in a function
43186 by: Mike
43214 by: Aaron Tuller
email sent many times when using ob_get_contents()
43187 by: kaab kaoutar
newbie array question
43189 by: stas
43191 by: Boget, Chris
43196 by: stas
Re: Developer certifications
43190 by: Rick St Jean
php and netscape server
43194 by: Jeff Dickison
Re: crontab help
43195 by: William N. Zanatta
So whats up with that GTK... Anyone know of a site with tutorials?
43197 by: Brandon Orther
dynamically accessing arrays at variable indexes
43198 by: Dale Robinson
PHP ide features...
43199 by: Dan Cleveland
43208 by: Chris Lee
43216 by: Rick St Jean
ticks wont execute file on one server, but will on another
43200 by: noah
43207 by: Chris Lee
sharing variables
43201 by: Leo
43206 by: Chris Lee
Not isset
43202 by: Mike
43203 by: Boget, Chris
43204 by: Brian Paulson
stdin on win
43205 by: n e t b r a i n
file upload tutorial.
43209 by: Jerry Lake
43212 by: Aaron Tuller
43215 by: Jerry Lake
libical
43210 by: Mark Cheverton
Advanced PHP
43217 by: Rick St Jean
43220 by: Krznaric Michael
43231 by: Kath
43236 by: Keith Vance
43239 by: Jerry Lake
43241 by: Christopher Allen
create a directory NOT owned by the webserver user
43218 by: Keith Vance
PHP switch user ???
43219 by: NoSpeed
Re: Weekly Update
43221 by: newbrightconceptz2321.juno.com
payment
43222 by: Rick St Jean
43223 by: Thomas Deliduka
43224 by: Aaron Tuller
43226 by: Nathan Cook
43227 by: Rick St Jean
43228 by: Thomas Deliduka
43229 by: Boget, Chris
43232 by: Rick St Jean
43233 by: Rick St Jean
43235 by: Aaron Tuller
Resource for PHP and other technologies
43225 by: narsu
PHP Studio Website
43234 by: Dan Cleveland
43238 by: James Atkinson
Sessions
43237 by: Randy Johnson
How to protect my scripts ???
43240 by: Marco Aur�lio
43242 by: Rick St Jean
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
First of all, i'm sorry if my email is OOT.
I want to connect my pc to handphone, say siemens c25. What kind of hardware
should i have to build this application ? do i need to use GSM Modem/PC Card
? or there is/are other way to do that more easily ?
BTW, i've try to install gsmlib downloaded from
www.pxh.de/fs/gsmlib/download/, and succeed, but when i try to use one of
the sample included to send sms (using command gsmsendsms), there's nothing
happen to my pc. Can some body help me with this ?
TIA.
-toto-
-----Original Message-----
From: Brian White [mailto:[EMAIL PROTECTED]]
Sent: 09 March 2001 06:07
To: PHP
Subject: RE: [PHP] HTML book recommendation
I "learnt" SGML long before I learnt HTML, so all I've ever needed is a
a good reference.
So: I think the O'Reilly Koala Book is excellent because it is well
indexed and has useful lists of what elements there are, what attributes
they have, what values they can have etc.
However, I am not really in a position to judge how good it is to "learn"
from.
Regs
Brian White
> > This is a bit off-topic, but I'm curious what you PHP'ers would
> recommend as
> > a good HTML book. I think I need to learn some stylesheet stuff and the
> > tutorial I've got covers the basics, but I'd like some more in-depth
> info on
> > the commands.
-------------------------
Brian White
Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy
Phone: +612-93197901
Web: http://www.steptwo.com.au/
Email: [EMAIL PROTECTED]
**************************************************************************
Any opinions expressed in this email are those of the individual and
not necessarily the Company. This email and any files transmitted with
it, including replies and forwarded copies (which may contain alterations)
subsequently transmitted from the Company, are confidential and solely for
the use of the intended recipient. If you are not the intended recipient
or the person responsible for delivering to the intended recipient, be
advised that you have received this email in error and that any use is
strictly prohibited.
**************************************************************************
I've just installed an IRCdaemon on our server and would like to be able to
show on a webpage a snapshot of how many people are logged in to the IRC
server.
Can anyone think of a simple way to access this information? I wondered
whether there's a way, within PHP, to determine this information.
Thanks in advance for any help.
allan
Hi,
I am trying to do some multiple inserts using the following code but it
doesn`t seem to work, it inserts the first one but then the second is
inserted as blank. Where the value being passed is
$Emails="[EMAIL PROTECTED], [EMAIL PROTECTED]";
<?
// Get Login info
require("blah...");
// Connect to MySQL
$connection=mysql_connect($host, $user, $pass);
// Format the Emails
$Emails1=str_replace(" ","",$Emails);
$GetEmails=explode(",",$Emails1);
// Insert into Members Database
for ($a=0;$a<count($GetEmails);$a++){
$SQLStatement = "INSERT INTO Members (Email) VALUES ('".$GetEmails[$a] ."')"
or die ("Problem");
$db = mysql_select_db($dbase, $connection);
$SQLResult = mysql_query($SQLStatement);
}
?>
Anyone know what might be going wrong, or perhaps I have the wrong method?
Thanks
Ade
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote:
> $SQLStatement = "INSERT INTO Members (Email) VALUES ('".$GetEmails[$a] ."')"
> or die ("Problem");
> $db = mysql_select_db($dbase, $connection);
> $SQLResult = mysql_query($SQLStatement);
Whoa, you're mixing apples with oranges. Try:
$db = mysql_select_db($dbase, $connection);
$SQLStatement = "INSERT INTO Members (Email) VALUES ('" . $GetEmails[$a] .
"')"; //removed the 'or die' portion
$SQLResult = mysql_query($SQLStatement,$connection) or die ("Problem " .
mysql_error() ); //moved 'or die' here, using more detailed info
--
CC
In a message dated 09/03/2001 12:38:08 GMT Standard Time,
[EMAIL PROTECTED] writes:
<< Whoa, you're mixing apples with oranges. Try:
$db = mysql_select_db($dbase, $connection);
$SQLStatement = "INSERT INTO Members (Email) VALUES ('" . $GetEmails[$a] .
"')"; //removed the 'or die' portion
$SQLResult = mysql_query($SQLStatement,$connection) or die ("Problem " .
mysql_error() ); //moved 'or die' here, using more detailed info
--
CC >>
Still no joy, and it doesn`t give out any errors whatsoever.
Ade
The trick here is to do some debugging :)
Firstly make sure that your error reporting level is set to E_ALL in
php.ini - then you've got some chance of seeing error and warning messages.
Secondly, while there are probably loads of ways of doing what you are
trying to do, all the correct ones will check the return value from ALL the
mysql calls. The mysql functions return 0 if something went wrong. There's
absolutely no point carrying on to the next stage since when you pass the 0
into the next stage it will just complain (if your error reporting level is
set high enough) - it simply can't do the next bit with a connection or
result handle of 0.
So, for each mysql call do something like:
$Thingy = mysql_whatnot(blah) or die('it went wrong doing whatnot, mysql
says '.mysql_error());
and if that doesn't give you the clue you need (which it will 99% of the
time, echo out the SQL statement and see if that looks silly in any way.
Good luck.
--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.org
-----Original Message-----
From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Friday, March 09, 2001 12:31 PM
Subject: [PHP] Multiple Inserts
>Hi,
>
>I am trying to do some multiple inserts using the following code but it
>doesn`t seem to work, it inserts the first one but then the second is
>inserted as blank. Where the value being passed is
>
>$Emails="[EMAIL PROTECTED], [EMAIL PROTECTED]";
>
><?
>// Get Login info
>
>require("blah...");
>
>// Connect to MySQL
>
>$connection=mysql_connect($host, $user, $pass);
>
>// Format the Emails
>
>$Emails1=str_replace(" ","",$Emails);
>$GetEmails=explode(",",$Emails1);
>
>// Insert into Members Database
>
>for
=0;$a<count($GetEmails);$a++){
>$SQLStatement = "INSERT INTO Members (Email) VALUES ('".$GetEmails[$a] ."')"
>or die ("Problem");
>$db = mysql_select_db($dbase, $connection);
>$SQLResult = mysql_query($SQLState
ment);
>
>}
>
>?>
>
>Anyone know what might be going wrong, or perhaps I have the wrong method?
>
>Thanks
>Ade
>
>--
>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]
>
>
Please, any idea how to manage concurent requests,
for example like in a shopping cart?
Scenario:
1. I have a counter A (a field in a database row), set to 1, so A=1
2. A client wants 1 unit from A , it checks and it's OK,
there is available.
3. Another client wants 1 unit from A, it checks, and it's OK,
because first client did not subtracted yet 1 unit from A
4. The first client decreases A, so A=0
5. The scond client decreases A, so A=?... some garbage...
Any idea how to fix this transaction problem? If A is locked by the
first client in order to fix this problem, there is another question (the
really one!):
If the program terminates unexpectedly, what about A?
It remains locked forever, and the second client cannot use it
anymore ?
thanx!
any idea really apreciated!
Daniel BI
From: "Daniel B I" <[EMAIL PROTECTED]>
Sent: Friday, March 09, 2001 1:49 PM
> Please, any idea how to manage concurent requests,
> for example like in a shopping cart?
<snip>
> Any idea how to fix this transaction problem? If A is locked by the
> first client in order to fix this problem, there is another question (the
> really one!):
>
> If the program terminates unexpectedly, what about A?
> It remains locked forever, and the second client cannot use it
> anymore ?
Well, you've said it yourself: It's a transaction problem, so it should be
solved with transaction control. Use a database with transaction control
like MySql with BDB tables.
Or you could try with MySql's locking functionality. If your
script/connection dies, the locks are released (AFAIK). But don't use
persistent connections then.
- Carsten
OK, seems I have created some unintended results in PHP. A few weeks ago I
was trying to split some common code out into an include file. I was
running into problems with an image when the calling file was not in the
root of the web directory and was experimenting with various ways to ensure
that the image was found no matter where the scripts were included from.
Since then, I have noted that I seem to be getting some strange error log
entries in Apache:
[Fri Feb 23 08:17:02 2001] [error] [client 10.11.30.13] File does not exist:
/home/sites/site3/web/b&w-outline.gif
In an unrelated issue (actually verifying GD support in PHP) I ran
php_info() and noticed that in the environment section there are a bunch of
REDIRECT_* and SCRIPT_* variables that point to this image including the
same 'File does not exist...' message that has been appearing in my logs
(REDIRECT_ERROR_NOTES)! Obviously in trying to specify an include
directory, I have messed with something that was GLOBAL and has 'stuck' even
through a reboot.
Additionally, it is affecting all v-sites on the box. There is no ill
effect on the user, however a visit to any page on any v-site seems to
trigger a call to this 'script'. I quote that because the 'script' is
actually the URI/URL to the above mentioned .GIF!
How do I get PHP to stop trying to pull this file?
Any help would be most greatly appreciated!
-- Paul
I have written a browser class, and while the connect method seems to work
ok (it times out after 10 seconds, as desired), I'm having problems with
actually writing to the socket. For unreliable servers, it has taken up
to 15 minutes to write to the socket, whereas I would like the script to
give up after only a few seconds. I have tried:
if ($this->connection->socket) socket_set_timeout($this->connection->socket,
1);
setting the socket timeout to 1 second, but it only serves to aggravate
the problem. Am I doing something wrong? Is there some way to get it to
give up writing to the socket after a few seconds? [I'm using the latest
stable PHP, freshly compiled on Open BSD; socket_set_timeout does appear
to be working, but not as I desire.
(my browser constructor looks like this:
$this->ua=$ua;
$this->host=$host;
$this->proxy=$proxy;
if ($proxy) $this->connection=new
connection($proxy,$proxyport,$timeout);
else $this->connection=new connection($host);
if (!$this->connection->socket) $this->failure=1; // failure :-(
// if ($this->connection->socket) socket_set_timeout($this->connection-
>socket,1);
also
class connection { // This is a low-level socket class.
function connection($host,$port=80,$timeout=10) {
if (!$host) "You need a host!";
$this->socket=fsockopen($host,$port,&$errno,&$errtext,$timeout);
}
function close() {
fclose($this->socket);
}
function put($string) {
if (!$string) die("missing argument \$string to connection->put");
if (!$this->socket) return 0;
fputs($this->socket,$string);
return 1;
}
function get($packet=128) { // Packet size
if (!$this->socket) return 0;
return fgets($this->socket,$packet);
}
}
)
Free, encrypted, secure Web-based email at www.hushmail.com
I had the same problem with Linux-Apache-PHP4-Informix.
When PHP is loaded as a module it doesn't close the connection
automaticaly, so I have to close it manualy to free the memory.
Hope it helps.
Marko.
-----Mensaje original-----
De: Thierry Coopman <[EMAIL PROTECTED]>
Para: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Fecha: Viernes, 09 de Marzo de 2001 07:53
Asunto: [PHP] Memory use
>Hi,
>
>I use Solaris 7 with Apache 1.3.14 and PHP 4.0.3pl1.
>
>I have a rather compex script that fetches historic quote data from a
>database and makes calculations on that.
>
>My data structures get quite big, but the script runs wel.
>
>I noticed that the amount of memory the apache process takes goes up
>to 60MB, and this memory stays in use vene after the script is
>finished.
>
>Do I need to free up the memory??? Can I do that, would it be better
>to run this from command line and have the process quit after it
>finished the job, and how do you pass arguments to a PHP script on
>the command line (like ?pid=6&name=blah)???
>
>--
>Thierry Coopman - [EMAIL PROTECTED]
>My opinions are personal, and have really nothing or nothing to do
>with Keytrade!
>
>Democracy: Three wolves and one sheep voting on what
>to have for supper.
>
>--
>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]
Hi,
can someone tell me where I can get
some Tree Menu ?
Thanks,
Rosen Marinov
http://www.webreference.com/dhtml/hiermenus/instructions/noframes/step4.html
It's client side javascript and very as a beautifull look.
Dominique Paquin
""Rosen"" <[EMAIL PROTECTED]> wrote in message
98akm9$poe$[EMAIL PROTECTED]">news:98akm9$poe$[EMAIL PROTECTED]...
> Hi,
> can someone tell me where I can get
> some Tree Menu ?
>
> Thanks,
> Rosen Marinov
>
>
>
>
> --
> 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]
>
On Thu, Mar 08, 2001 at 09:32:25PM -0000, george wrote:
> I am building a site which pulls FAQ's out of the database onto a page,but
> having just finished reading the FAQ's I realise that they will have to be
> spread over a few pages,
> how to I get the new page to take over where the old page finished.
I would try programming, that usually works for me.
You will have to let the program know where you left off, you could pass
it in the url, set a cookie, or put it to the session. Either way, just
do a little programming and voila.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
Well, you can implement a Perl peek() with unpack('P',...). Once you
have that, there's only security through obscurity. :-)
-- Larry Wall in <[EMAIL PROTECTED]>
On Fri, 9 Mar 2001, Jason Stechschulte wrote:
> On Thu, Mar 08, 2001 at 09:32:25PM -0000, george wrote:
> > I am building a site which pulls FAQ's out of the database onto a page,but
> > having just finished reading the FAQ's I realise that they will have to be
> > spread over a few pages,
> > how to I get the new page to take over where the old page finished.
>
> I would try programming, that usually works for me.
>
> You will have to let the program know where you left off, you could pass
> it in the url, set a cookie, or put it to the session. Either way, just
> do a little programming and voila.
Or you could just pass the offset in the url and use SQL to limit the
search.
I can't remeber the exact stuff but all you need to do is write the select
with an offset (where to start the select) and a limit (10 results
perhaps). You will then only get that data set.
Just add limit to the offset and pass that onto the next instance of the
page to use as the next offset.
>
>
Hello,
if you use mysql as a database, see the function Limit
For exemple:
if ( !isset( $start ){
$start = 0;
}
$total = 10; // total amount to grab in database
$sql = "SELECT * FROM my_table ORDER BY field Limit $start, $total";
$start += 10; // increment your start
You display those fields, and you show a next link:
<a href="<? print "$PHP_SELF?start=$start"; ?>Next</a>
But if you do not use mysql, I do not know...
py
Nick Davies wrote:
> On Fri, 9 Mar 2001, Jason Stechschulte wrote:
>
> > On Thu, Mar 08, 2001 at 09:32:25PM -0000, george wrote:
> > > I am building a site which pulls FAQ's out of the database onto a page,but
> > > having just finished reading the FAQ's I realise that they will have to be
> > > spread over a few pages,
> > > how to I get the new page to take over where the old page finished.
> >
> > I would try programming, that usually works for me.
> >
> > You will have to let the program know where you left off, you could pass
> > it in the url, set a cookie, or put it to the session. Either way, just
> > do a little programming and voila.
>
> Or you could just pass the offset in the url and use SQL to limit the
> search.
>
> I can't remeber the exact stuff but all you need to do is write the select
> with an offset (where to start the select) and a limit (10 results
> perhaps). You will then only get that data set.
>
> Just add limit to the offset and pass that onto the next instance of the
> page to use as the next offset.
>
> >
> >
>
> --
> 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]
> Can you telnet to port 25 of your box and get the qmail blurf?
Sure.
----------------------------------------------------------
$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 mozdev.org ESMTP
HELO localhost
250 mozdev.org
MAIL FROM:[EMAIL PROTECTED]
250 ok
RCPT TO:[EMAIL PROTECTED]
250 ok
DATA
354 go ahead
From:"pete collins" <[EMAIL PROTECTED]>
To:"pete"<[EMAIL PROTECTED]>
Subject:Testing
This is a test man
.
250 ok 984146454 qp 16200
QUIT
221 mozdev.org
Connection closed by foreign host.
----------------------------------------------------------
I even tried this:
<?php
passthru('/var/qmail/bin/qmail-inject [EMAIL PROTECTED]');
?>
Nothing.
But this works:
$ su httpd
[httpd@tigris bin]$ /var/qmail/bin/qmail-inject [EMAIL PROTECTED]
Subject: test
testing
^D
php is running as user httpd.
Any ideas?
Thanks
--pete
hi, you can use the sendmail wrapper as instructed in the qmail docs.
if you want to use qmail-inject try:
<?php
system('echo "Subject: test\n\n\nTest" | /var/qmail/bin/qmail-inject
[EMAIL PROTECTED]');
?>
good luck,
Nuno Silva
----- Original Message -----
From: "pete collins" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 09, 2001 2:07 PM
Subject: Re: [PHP] Qmail problem
> > Can you telnet to port 25 of your box and get the qmail blurf?
>
> Sure.
>
> ----------------------------------------------------------
> $ telnet localhost 25
> Trying 127.0.0.1...
> Connected to localhost.localdomain.
> Escape character is '^]'.
> 220 mozdev.org ESMTP
> HELO localhost
> 250 mozdev.org
> MAIL FROM:[EMAIL PROTECTED]
> 250 ok
> RCPT TO:[EMAIL PROTECTED]
> 250 ok
> DATA
> 354 go ahead
> From:"pete collins" <[EMAIL PROTECTED]>
> To:"pete"<[EMAIL PROTECTED]>
> Subject:Testing
>
> This is a test man
>
> .
> 250 ok 984146454 qp 16200
> QUIT
> 221 mozdev.org
> Connection closed by foreign host.
> ----------------------------------------------------------
>
> I even tried this:
>
> <?php
> passthru('/var/qmail/bin/qmail-inject [EMAIL PROTECTED]');
> ?>
>
>
> Nothing.
>
> But this works:
>
> $ su httpd
> [httpd@tigris bin]$ /var/qmail/bin/qmail-inject [EMAIL PROTECTED]
> Subject: test
>
> testing
>
> ^D
>
> php is running as user httpd.
>
> Any ideas?
>
> Thanks
>
> --pete
>
> --
> 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]
>
>
> hi, you can use the sendmail wrapper as instructed in the qmail docs.
Done that. Thanks.
>
> if you want to use qmail-inject try:
> <?php
> system('echo "Subject: test\n\n\nTest" | /var/qmail/bin/qmail-inject
> [EMAIL PROTECTED]');
> ?>
Tired this as well. Nothing.
system('echo "Subject: test\n\n\nTest" | /var/qmail/bin/qmail-inject
[EMAIL PROTECTED]');
Very strange!!
--pete
I am running this shell script from php using passthru.
#!/bin/sh
printf "Starting Shell script: <br><br>\n";
printf "command ls -l /var/qmail/bin/qmail-inject<br>\n";
ls -l /var/qmail/bin/qmail-inject;
printf "<br><br>*******************<br>\n";
printf "Subject: TESTING FROM SHELL SCRIPT" | /var/qmail/bin/sendmail
[EMAIL PROTECTED];
printf "<br>*******************<br>\n";
printf "<br>Finished running shell script . . . \n\n\n";
exit;
My php output is this:
Starting Shell script:
command ls -l /var/qmail/bin/qmail-inject
-rwxr-xr-x 1 root qmail 34748 Aug 25 2000 /var/qmail/bin/qmail-inject
*******************
*******************
Finished running shell script . . .
No mail. If i su to httpd and run the script, mail works.
Shoot me now please. ;-)
--pete
Hi all,
I have following problem. I have 2 computers:
1. Win98, IIS4, PHP4.04pl1
2. Win2000, IIS4, PHP4.04pl1
with same php.ini
When I am tried to execute my page on the first one, everything works well.
When I am tried to execute it on the second one following error appears:
FATAL: emalloc(): Unable to allocate 2147483599 bytes
This error occours when I am tried to call ODBC_EXEC function.
Does anybody know what is the problem ?
Thanks.
K.V.
I didn't know you could get IIS4 on windows 98. Are you sure you don't mean
PWS?
Knotek Vlastimil wrote:
> Hi all,
>
> I have following problem. I have 2 computers:
> 1. Win98, IIS4, PHP4.04pl1
> 2. Win2000, IIS4, PHP4.04pl1
>
> with same php.ini
>
> When I am tried to execute my page on the first one, everything works well.
> When I am tried to execute it on the second one following error appears:
>
> FATAL: emalloc(): Unable to allocate 2147483599 bytes
>
> This error occours when I am tried to call ODBC_EXEC function.
> Does anybody know what is the problem ?
> Thanks.
> K.V.
>
> --
> 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]
Hi
Win' 98 comes only with PWS and not IIS, generally. But some versions of
windows 98 do have IIS in it, but I dont' know about the config. there,
whether it'll be the same as we do for PWS, becoz for the past 2 yrs, I have
PHP on my machine with Windows'98 and PWS and so far, I haven't had any
problems at all. I just keep upgrading PHP and mysql, thats' all
Hth,
~ Karthick
> I didn't know you could get IIS4 on windows 98. Are you sure you don't
mean
> PWS?
>
>
>
> Knotek Vlastimil wrote:
>
> > Hi all,
> >
> > I have following problem. I have 2 computers:
> > 1. Win98, IIS4, PHP4.04pl1
> > 2. Win2000, IIS4, PHP4.04pl1
> >
> > with same php.ini
> >
> > When I am tried to execute my page on the first one, everything works
well.
> > When I am tried to execute it on the second one following error appears:
> >
> > FATAL: emalloc(): Unable to allocate 2147483599 bytes
> >
> > This error occours when I am tried to call ODBC_EXEC function.
> > Does anybody know what is the problem ?
> > Thanks.
> > K.V.
> >
> > --
> > 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]
>
>
LoL!
PHP is open source and, thus, accessible to everyone without condition.
But it help me a lot to see funny replies like this from time to time.
Thanks Dominick
Dominique Paquin
""Dominick Vansevenant"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I think this is the best proof you don't have to be a genius to program
PHP
> :-)
>
> Dominick
>
> -----Original Message-----
> From: Emmerson Rafael Miranda Ramirez [mailto:[EMAIL PROTECTED]]
> Sent: vrijdag 9 maart 2001 12:01
> To: [EMAIL PROTECTED]
> Subject: [PHP] unsuscribe me
> Importance: High
>
>
> this is the 5th request
> "UNSUSCRIBE ME"
>
>
>
> --
> 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]
>
Hi,
I just have a couple of questions that I hope some people will know the answers to.
1. I am hoping to read the entire range of values from a field in my MySQL table into
a combo box on my form, but I am not sure how. On top of that, I want the user to
select one value from this list, press next, and the combo box reappears with the full
list minus the chosen value. The user then chooses another, presses next, and the
combo box then appears again, minus the two chosen values. This loop continues until
flagged.
Does anyone have any ideas how I can do this?
2. I have created a session variable $session. This is an array. I have a dynamic
variable, ${"myvalue$counter"}, which has particular values assigned. The number of
instances varies depending on the data in the database, so it is difficult to go
through and assign each value to the session variable manually, eg
$session["myvalue1"], $session["myvalue2"], etc. Is there any way I can incorporate
dynamic variable names into the array structure like above. I have searched around,
but I am not really sure what this would come under.
3. This is similar to above, but it refers to functions. Is it possible to have
dynamic function names that actually change from where you call it?
eg. $value=1;
(call function from within another file)
function name$value (...)
$value=2;
(call same function from within the same file as before)
function name$value (...)
Is this possible with php?
Thank you very much for your time,
Michael.
How can I check if a value is in a multidimensional array?
like I have
<?php
$i=0;
while($idt = mssql_fetch_row($query_result))
{
//echo $idt[0]."<br>";
$produtos_sem_tracking[$i]['cod']=$idt[0];
$produtos_sem_tracking[$i]['idt']=$idt[1];
$produtos_sem_tracking[$i]['gen']=$idt[2];
}
?>
how can I check for an existing $produtos_sem_tracking['cod'] value for
example?
. [ Christian Dechery ]
. Webdeveloper @ Tá Na Mesa!
. Listmaster @ Gaita-L
. http://www.tanamesa.com.br
recusrion is your friend.
<?php
$test[0][0] = 'a';
$test[0][1] = 'b';
$test[0][2] = 'c';
$test[1][0] = 'd';
$test[1][1] = 'e';
$test[1][2] = 'f';
$test[2][0] = 'g';
$test[2][1] = 'h';
$test[2][2] = 'i';
function in_multi_array($needle, $haystack)
{
foreach($haystack as $pos => $val)
{
if (is_array($val))
{
if (in_multi_array($needle, $val))
return 1;
} else
if ($val == $needle)
return 1;
}
}
if (in_multi_array('d', $test))
echo "TRUE <br>\n";
else
echo "FALSE <br>\n";
?>
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
""Christian Dechery"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
How can I check if a value is in a multidimensional array?
like I have
<?php
$i=0;
while($idt = mssql_fetch_row($query_result))
{
//echo $idt[0]."<br>";
$produtos_sem_tracking[$i]['cod']=$idt[0];
$produtos_sem_tracking[$i]['idt']=$idt[1];
$produtos_sem_tracking[$i]['gen']=$idt[2];
}
?>
how can I check for an existing $produtos_sem_tracking['cod'] value for
example?
. [ Christian Dechery ]
. Webdeveloper @ Tá Na Mesa!
. Listmaster @ Gaita-L
. http://www.tanamesa.com.br
--
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]
Hello,
how can I compare in SELECT variable, that is type Date?
Which type and format $var should be?
example:
$var = ???;
$esql = ODBC_Exec("SELECT * FROM table WHERE table.mydate > $var");
Thanks,
Michal.
--- Yasuo Ohgaki <[EMAIL PROTECTED]> wrote:
> From: "Yasuo Ohgaki" <[EMAIL PROTECTED]>
> To: "Jayme Derr" <[EMAIL PROTECTED]>
> Subject: Re: [PHP-DEV] Header Question using WML
> Date: Fri, 9 Mar 2001 10:22:51 +0900
>
> Hello Jaymem
>
> You probably get the same message, buy anyway,
> This list(or new group) is not for asking question.
>
> try [EMAIL PROTECTED]
>
> Regards,
>
> --
> Yasuo Ohgaki
>
> ----- Original Message -----
> From: "Jayme Derr" <[EMAIL PROTECTED]>
> Newsgroups: php.dev
> Sent: Friday, March 09, 2001 8:39 AM
> Subject: [PHP-DEV] Header Question using WML
>
>
> > I am able to pull up my php3 file on my phone
> > simulator successfully. However, when I try to
> link
> > to the next php3 file I receive this error "HTML
> or
> > Plain text. Can't compile this..." This isn't
> very
> > descriptive, so when I view the source, it gives
> me
> > this error:
> > Content-Type: text/html. Content follows:
> > <br>
> > <b>Warning</b>: POST Error: content-type missing
> in
> > <b>/test/wmlsite/firstpage.php3</b> on line
> > <b>0</b><br>
> > <br>
> > <b>Warning</b>: Cannot add more header
> information -
> > the header was already sen
> > t (header information may be added only before any
> > output is generated from the
> > script - check for text or whitespace outside PHP
> > tags, or calls to functions th
> > at output text) in
> > <b>/test/wmlsite/secondpage.php3</b> on line
> > <b>1</b><br>
> >
> > Each of my php files start like this:
> > <?php header('content-type: text/vnd.wap.wml');
> > printf("\n\n\n<?xml version='1.0'?>\n");
> > printf("<!DOCTYPE wml PUBLIC '-//PHONE.COM//DTD
> WML
> > 1.1//EN'
> 'http://www.phone.com/dtd/wml11.dtd'>\n");?>
> > <wml>
> > Here's the kicker. When I pull up the
> > secondpage.php3, it actually displays with no
> problem.
> > It's only when I link them together. It's so
> > bizarre. I can display each php file individually
> > just not by linking. It's as if the output stream
> of
> > the firstpage is not getting closed. Has anyone
> ever
> > run into this problem or has any idea on how to
> fix
> > it?
> >
> > Thanks,
> > Jayme Derr
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Get email at your own domain with Yahoo! Mail.
> > http://personal.mail.yahoo.com/
> >
> > --
> > PHP Development 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]
> >
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/
I know it is possible to generate a random number using rand() I don`t
suppose there is anyway to generate a random letter sequence that anyone
knows of?
Ade
I use something like...
function randString($sequence_length = 7)
$possible_letters = "abcdefghijklmnopqrstuvwxzy";
$sequence = ""
while ($sequence_length--) {
$sequence .= $possible_letters[rand(0, strlen($possible_letters) - 1)];
}
return $sequence;
}
To create random strings. Just fill in $possible_letters with anything you
like
adamw
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 09, 2001 3:12 PM
Subject: [PHP] Generate Random Letters?
> I know it is possible to generate a random number using rand() I don`t
> suppose there is anyway to generate a random letter sequence that anyone
> knows of?
>
> Ade
>
> --
> 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]
>
>
Random lower-case letter:
$randomletter = chr(rand(ord("a"), ord("z")))
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 09, 2001 8:13 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Generate Random Letters?
I know it is possible to generate a random number using rand() I don`t
suppose there is anyway to generate a random letter sequence that anyone
knows of?
Ade
--
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]
You could use: select char(rand(128));
Will dispaly character with ascii value of 0 - 128.
Thanks,
Michael Ridinger
On Fri, 9 Mar 2001 [EMAIL PROTECTED] wrote:
> I know it is possible to generate a random number using rand() I don`t
> suppose there is anyway to generate a random letter sequence that anyone
> knows of?
>
> Ade
>
>
Does PHP4 have anything similar to perl's anonymous hash or array( $var = {
'some' => 'hash elements' } or $var = [ 'array', 'elements' ] )
The reason I ask is I am trying to find a way of passing a variable length
list of named parameters to a function without having to use a specific order.
i.e.
function my_func is expecting any of the following optional parameters:
fname, lname, city, state, zip
I can do this with the following code:
<?php
function my_func ( $input ){ echo '<PRE>';print_r( $input );echo '</PRE>'; }
$my_array = array( 'fname' => 'joe', 'lname'=>'coder', 'zip'=>'12345');
my_func( $my_array );
$my_array = array( 'city' => 'Brooklyn', 'state'=>'NY');
my_func( $my_array );
?>
To make it a little cleaner I would prefer to do something like:
my_func( {
'fname' => 'joe'
, 'lname'=>'coder'
, 'zip'=>'12345'
} );
an not pollute the code with one-time vars
Thanks,
Morgan
> To make it a little cleaner I would prefer to do something like:
> my_func( {
> 'fname' => 'joe'
> , 'lname'=>'coder'
> , 'zip'=>'12345'
> } );
> an not pollute the code with one-time vars
Unless I'm misunderstanding what you are asking, you can
do this:
my_func( array( 'fname' => 'joe', 'lname'=>'coder', 'zip'=>'12345' )) {
Chris
yep that works,
Initially I was getting an error when I did that but my function had been
setup for a pass-by-ref.
thanks
morgan
At 10:09 AM 3/9/2001 -0600, Boget, Chris wrote:
> > To make it a little cleaner I would prefer to do something like:
> > my_func( {
> > 'fname' => 'joe'
> > , 'lname'=>'coder'
> > , 'zip'=>'12345'
> > } );
> > an not pollute the code with one-time vars
>
>Unless I'm misunderstanding what you are asking, you can
>do this:
>
>my_func( array( 'fname' => 'joe', 'lname'=>'coder', 'zip'=>'12345' )) {
>
>Chris
Was wondering if someone could tell me how I could do this..
I need the dynamically generated number (<NUM>) from a string, where the
string is:-
http://blah.blah.com/blah/blah?blah.com/blah=something:%3Asessionid=<NUM>&dbname=blah
Now I tried explode and split, with the '&' being as the delimiter, but
how do you dump the rest of the string..
Could parse_str() help?
>From http://php.net/manual/en/function.parse-str.php:
void parse_str (string str [, array arr])
Parses str as if it were the query string passed via an URL and sets
variables in the current scope. If the second parameter arr is present,
variables are stored in this variable as an array elements instead.
-----Original Message-----
From: Ashwin Kutty [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 09, 2001 9:04 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Strings..
Was wondering if someone could tell me how I could do this..
I need the dynamically generated number (<NUM>) from a string, where the
string is:-
http://blah.blah.com/blah/blah?blah.com/blah=something:%3Asessionid=<NUM>&db
name=blah
Now I tried explode and split, with the '&' being as the delimiter, but
how do you dump the rest of the string..
--
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]
Hi, i just finished my first really big project and when it went live
the servers just flipped out, 100% CPU Load.
Removing all includes and pasting all libraries together seemed to do
the trick, CPU went back to normal.
My Question:
What can i do to speed up includes, i hate working on a file with 45 KB
Sourcecode in it.
Not to speak of pasting the libs to every single Script that makes use
of them.
I tested on a system with the Zend Optimizer installed, the Servers
running the live application do not have the encoder, but i noticed the
lags caused by the includes on the test system too.
tks in advance!
--
Grüße aus dem schönen Kleve
Jens Kisters
rosomm et partner
Agentur für neue Medien GmbH
Dienstleistungszentrum am
Weißen Tor - Eingang B
Gocher Landstrasse 2
47551 Kleve / Bedburg-Hau
Telefon: 02821 - 97856-20
Telefax: 02821 - 97856-77
[EMAIL PROTECTED]
http://www.rosomm-partner.de
Replace include with include_once where you can.
Best regards,
Andrew
> -----Original Message-----
> From: Jens Kisters [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 09, 2001 11:08 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] includes slooooooow
>
>
> Hi, i just finished my first really big project and when it went live
> the servers just flipped out, 100% CPU Load.
> Removing all includes and pasting all libraries together seemed to do
> the trick, CPU went back to normal.
>
> My Question:
> What can i do to speed up includes, i hate working on a file with 45 KB
> Sourcecode in it.
> Not to speak of pasting the libs to every single Script that makes use
> of them.
>
> I tested on a system with the Zend Optimizer installed, the Servers
> running the live application do not have the encoder, but i noticed the
> lags caused by the includes on the test system too.
>
> tks in advance!
>
> --
> Grüße aus dem schönen Kleve
> Jens Kisters
>
> rosomm et partner
> Agentur für neue Medien GmbH
> Dienstleistungszentrum am
> Weißen Tor - Eingang B
> Gocher Landstrasse 2
> 47551 Kleve / Bedburg-Hau
>
> Telefon: 02821 - 97856-20
> Telefax: 02821 - 97856-77
> [EMAIL PROTECTED]
> http://www.rosomm-partner.de
>
>
>
> --
> 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]
>
>
Hello--
Is PHP suitable for programming in a Haskell-like fashion? Is there
existing information on how to do this?
Best, Ted
_____________
Ted Goranson
Fusecap and Sirius-Beta, Virginia Beach USA
757/426-6704
[EMAIL PROTECTED]
Symmetry Conference: http://www.isis-s.unsw.edu.au
Argh Haskell - All the bad memories come flooding back.
On Fri, 9 Mar 2001, Ted Goranson wrote:
> Hello--
>
> Is PHP suitable for programming in a Haskell-like fashion? Is there
> existing information on how to do this?
>
> Best, Ted
>
> _____________
> Ted Goranson
> Fusecap and Sirius-Beta, Virginia Beach USA
> 757/426-6704
> [EMAIL PROTECTED]
> Symmetry Conference: http://www.isis-s.unsw.edu.au
>
>
anyone having trouble with these files getting mangled in transport? i'm using the
email class from renaghan's phpop. i'm wondering if the base64 encoding might be
horking things?
function formatAttachmentHeader($inFileLocation, $inNiceFileName){
$outAttachmentHeader = "";
//--get content type based on file extension
$contentType = $this->getContentType($inNiceFileName);
//--get contents of attachment file
$aFile = fopen($inFileLocation,"rb");
$aFileContents = fread($aFile, 2000000);
fclose($aFile);
//--if content type is TEXT the standard 7bit encoding
if(ereg("text",$contentType)){
//--format header
$outAttachmentHeader .= "Content-Type: ".$contentType.";\n";
$outAttachmentHeader .= ' name="'.basename($inNiceFileName).'"'."\n";
$outAttachmentHeader .= "Content-Transfer-Encoding: 7bit\n";
$outAttachmentHeader .= "Content-Disposition: inline;\n"; //--other: inline
$outAttachmentHeader .= ' filename="'.basename($inNiceFileName).'"'."\n\n";
$outAttachmentHeader .= $aFileContents."\n";
}
//--NON-TEXT use 64-bit encoding
else{
//--format header
$outAttachmentHeader .= "Content-Type: ".$contentType.";\n";
$outAttachmentHeader .= ' name="'.basename($inNiceFileName).'"'."\n";
$outAttachmentHeader .= "Content-Transfer-Encoding: base64\n";
$outAttachmentHeader .= "Content-Disposition: attachment;\n"; //--other: inline
$outAttachmentHeader .= ' filename="'.basename($inNiceFileName).'"'."\n\n";
$outAttachmentHeader .= chunk_split (base64_encode($aFileContents));
$outAttachmentHeader .= "\n";
}
return $outAttachmentHeader;
}
Hi,
How can i get size of a type like double or int ?
thanks.
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/
works great. I use it on a few sites. time.egn has a simple mtime() function and
database.egn are just my sql wrappers.
<?php
include_once('database.egn');
include_once('time.egn');
if ($db_file != 'none' AND $db_file AND is_uploaded_file($db_file) AND
filesize($db_file))
{
$db_file = addslashes(fread(fopen($db_file, 'r'), filesize($db_file)));
$db_file_id = mtime();
insert_db_value('images', " '$db_file_id', '$db_file', '$db_file_name',
'$db_file_type' ");
}
echo "
<html>
<body>
<form method=post enctype='multipart/form-data' action='$PHP_SELF'>
<input type=file name=db_file>
<input type=submit>
</form>
</body>
</html>
";
?>
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
"Daniele" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
A friend ask me how to insert image and other binary in his mysql db.
He don't want to insert the link to the file, he want insert the file itself..
I looking for some tutorial but i don't find anything...
I would like to know how i can do it in php and with the shell of
mysql...and if this works fine.
thanks!!
daniele
--
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]
using client side form verification is a bad idea anyhow, just write a simple php
verify.
<?php
if (isset($HTTP_POST_VARS['done']))
{
$people_name = @$HTTP_POST_VARS['people_name'];
if ( !$HTTP_POST_VARS['people_name'] )
$form_error[] = "Name must be set";
}
if(isset($form_error))
{
echo "
<font color='red'>
";
foreach ($form_error as $pos => $val)
echo "
$val <br>
";
echo "
</font>
";
}
echo "
<form method='post' action='$PHP_SELF'>
<input type='text' name='people_name' value'". @$people_name .">
<input type='submit' name='done' value='Submit'>
</form>
";
?>
simple stuff, server side is fool proof, client side is foolable.
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
""Christopher Cheng"" <[EMAIL PROTECTED]> wrote in message
989jvm$9r0$[EMAIL PROTECTED]">news:989jvm$9r0$[EMAIL PROTECTED]...
What should I put in for the parameter jvs_name of the oohform->start? Is
that a name of another javascript file? Where can I get a sample script?
I would like to make sure the clients put in something in the textbox.
--
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]
> What should I put in for the parameter jvs_name of the
> oohform->start? Is that a name of another javascript file?
> Where can I get a sample script?
> I would like to make sure the clients put in something in the textbox.
If you are talking about Jay Bloodworth's FormClass (one
of the most useful pieces of code there is when dealing with
forms, IMO :p), then that is just the name of the JS validator
that will be dynamically written. Just put in that name and
it's all done for you. Try it and see. :)
Chris
I'm running apache 1.3.14+Ben-SSL/1.42 and php-4.0.4pl1 on
a RedHat 6.1 linux box.
I'm in trouble trying to authenticate users via mod_auth_dbm.
Which DBA format should I use to generate user databases?
I've tried with:
1) dba and gdbm format
2) dba and ndbm format
3) dba and db2 format
I always read:
... [error] [client 192.168.0.11] (22)Invalid argument: could not
open dbm auth file: /www/auth/passwd_db
in apache logs. I've also tried with older deprecated dbm functions
but the result is still the same.
I guess the problem is that apache uses the "dbm" format. I've tried
to build php whith the option:
--with-dbm
but I always get this error:
configure: error: cannot find necessary header file(s)
What shoul'd I do to compile this "dmb" support into php4 ?
I've always thought that "dbm" was provided by "gdbm" but ...
-------------------------------------------
Gabriele Carioli
Hi,
i want a script to produce a "HTTP/1.0 304 Not Modified" or "Status 304 Not
Modified". Normally when i send this header after GET data to a script, it
should not be loaded. (in this case: an input-frame of a chat should not be
reloaded after submitting the data.). I heard the script should only send
the header without message body. so i tried:
header ("HTTP/1.0 304 Not Modified");
exit;
But this don't work. The Script is loaded and, of course, an empty page.
How can i do this???
Thank you.
bye,
Thomas Weber
CYNOBIA Community Online Service AG
Kühbachstraße 11
81543 München
fon 089-78 06 0(280)
fax 089-78 06 01 99
email [EMAIL PROTECTED]
net http://www.CYNOBIA.de
Hi,
I have installed on an NT box a binary PHP4 installation.
It seems that executing a "select" on a "composite" query in my Access
database
returns an error.
For instance, I have noticed that this occurs for UNION queries, or
joins between a query and a table etc.
I get things like: "SQL error: [microsoft][odbc ms access driver] too
few parameters. expected 1..."
Could somebody please confirm if this is a known bug with PHP, or maybe
the MS Access driver...(if not, any hints as to what my error might be
due to) ?
Thanks
--
Andrea Giacomelli
Hi all.
Can i use PHP as a shell script, like bash? Or this is inviable, impossible
and/or out of question?
Thanks.
--
Alexandre Hautequest
hquest at fesppr.br
Fundação de Estudos Sociais do Paraná - http://www.fesppr.br/
Centro de Administração de Redes - CAR
"Ninguém é melhor do que todos nós juntos."
Equipe Zeus Competições
-------------------------------------------------
Esta mensagem foi enviada pelo WebMail da FESP.
Conheça a FESP: http://www.fesppr.br/
On Fri, Mar 09, 2001 at 03:07:34PM -0300, Alexandre Hautequest wrote:
> Hi all.
>
> Can i use PHP as a shell script, like bash? Or this is inviable, impossible
> and/or out of question?
There's a good tutorial at phpbuilder.com - check the archives there.
Regards, Frank
>
> Hi all.
>
> Can I use PHP as a shell script, like bash? Or this is inviable,
> impossible
> and/or out of question?
>
It is viable and works great. You must have a php binary somewhere from a
default installation of PHP. Usually, this binary is found somewhere like
/usr/local/bin/php.
Then make a file.
#!/usr/local/bin/php -q
<?
print("Hello World\n");
?>
Then chmod it so it is executable like so.
chmod 755 thefilename
It works for me. This is a very convenient way to obtain access to
databases from shell scripts.
Good luck.
John
I use a script like this, place it in cron, run it once a day to search the db and
email the nescisary people the reminders they request.
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
""John Huggins"" <[EMAIL PROTECTED]> wrote in message
002201c0a8ce$d57e08b0$[EMAIL PROTECTED]">news:002201c0a8ce$d57e08b0$[EMAIL PROTECTED]...
>
> Hi all.
>
> Can I use PHP as a shell script, like bash? Or this is inviable,
> impossible
> and/or out of question?
>
It is viable and works great. You must have a php binary somewhere from a
default installation of PHP. Usually, this binary is found somewhere like
/usr/local/bin/php.
Then make a file.
#!/usr/local/bin/php -q
<?
print("Hello World\n");
?>
Then chmod it so it is executable like so.
chmod 755 thefilename
It works for me. This is a very convenient way to obtain access to
databases from shell scripts.
Good luck.
John
--
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]
Compile PHP as CGI and you should be able to.
- Kath
----- Original Message -----
From: "Alexandre Hautequest" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 09, 2001 1:07 PM
Subject: [PHP] Using PHP as a shell script
> Hi all.
>
> Can i use PHP as a shell script, like bash? Or this is inviable,
impossible
> and/or out of question?
>
> Thanks.
>
> --
> Alexandre Hautequest
> hquest at fesppr.br
> Fundação de Estudos Sociais do Paraná - http://www.fesppr.br/
> Centro de Administração de Redes - CAR
>
> "Ninguém é melhor do que todos nós juntos."
> Equipe Zeus Competições
>
> -------------------------------------------------
> Esta mensagem foi enviada pelo WebMail da FESP.
> Conheça a FESP: http://www.fesppr.br/
>
> --
> 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]
>
I'm working with WinMe with apache 1.3.9 and PHP 4.04 now. And it allways
worked perfectly...
when I had to use the extension php_mssql70.dll, I went into php.ini changed
some stuff and everything went ok, but now... everytime I run a script (whether
I use mssql's functions or not) it runs and when it stops it comes up with
a GPF window for PHP4TS.DLL telling me that Apache caused, so it restarts
apache.
What might be causing this? How can I fix it?
. [ Christian Dechery ]
. Webdeveloper @ Tá Na Mesa!
. Listmaster @ Gaita-L
. http://www.tanamesa.com.br
I am running PHP 4.0.4pl1 as a CGI and I have a PHP file that is something
like this:
#!/usr/local/bin/php4
<?
passthru("/bin/ls -al /home/devin/*");
?>
but for some reason it doesn't return anything in the browser, but when
I run the php file from unix it works just fine, any ideas?
/'^'\
( o o )
------------------------------------------oOOO--(_)--OOOo----
Devin Atencio
ArosNet Systems Administration .oooO
EMail: [EMAIL PROTECTED] ( ) Oooo.
--------------------------------------------\ (----( )-----
\_) ) /
(_/
-----Original Message-----
From: Fabian Fabela [mailto:[EMAIL PROTECTED]]
Sent: 9. marts 2001 04:34
To: [EMAIL PROTECTED]
Subject: [PHP] Graph Functions
>Hello.
>
>Which is the easiest way to graph funcitions in php, like f(x)=sin(2x)
As far as i know, there is no easy way. I once wrote some code displaying
the cos and sin curve.
You can take a look at it here:
http://razor.dk/graph.php
http://razor.dk/graph.phps
The code is a bit confusing :)
--
Christian Jørgensen
http://www.razor.dk
First of all thanks to everyone who has helped me from this ng
but I am afraid I have another question
I am using the code below to pull FAQ out of a database but how do I stop
the next link appearing when the last question is displayed
TIA
george
if ( !isset( $start )){
$start = 0;
}
$num_q = 4;
$sql =" SELECT DISTINCT * FROM $table_name LIMIT $start, $num_q";
$start += 4;
$newStart = $start - $num_q;
$result = @mysql_query($sql, $connection) or die ("Couldnt execute query");
while ($row = mysql_fetch_array($result)) {
echo
"<tr><td class=\"headline\">$row[headline]</td></tr><tr><td align=left
class=\"answer\">$row[answer]</td
></tr>";
}
echo "</table>";
?></td>
</tr>
<tr>
<td colspan="2"><a href="<? print "$PHP_SELF?newstart=$start? -
$num_q" ; ?>">Previous</a>
<a href="<? print "$PHP_SELF?start=$start";
?>">Next</a></td>
here is an example.
<?php
$database_db = 'bookmarks';
include_once('database_class.egn');
$HOW_MANY = 10;
if (!isset($pos))
$pos = 0;
$pos_prev = $pos - $HOW_MANY;
$pos_next = $pos + $HOW_MANY;
$product_count = $database->count('site', '');
$result = $database->select_array('', 'site', "LIMIT $pos, $HOW_MANY");
foreach($result as $pos => $val)
echo $val['site_address'] ."<br>\n";
if ($pos_prev >= 0)
echo "
<a href='$PHP_SELF?pos=$pos_prev'>Back</a>
";
echo "
<a href='$PHP_SELF?pos=0'>Home</a>
";
if ( $pos_next < $product_count )
echo "
<a href='$PHP_SELF?pos=$pos_next'>Next</a>
";
?>
compare your position to how many fields are in the db.
SELECT count(*) FROM site ;
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
""george"" <[EMAIL PROTECTED]> wrote in message
98b7n0$mfc$[EMAIL PROTECTED]">news:98b7n0$mfc$[EMAIL PROTECTED]...
First of all thanks to everyone who has helped me from this ng
but I am afraid I have another question
I am using the code below to pull FAQ out of a database but how do I stop
the next link appearing when the last question is displayed
TIA
george
if ( !isset( $start )){
$start = 0;
}
$num_q = 4;
$sql =" SELECT DISTINCT * FROM $table_name LIMIT $start, $num_q";
$start += 4;
$newStart = $start - $num_q;
$result = @mysql_query($sql, $connection) or die ("Couldnt execute query");
while ($row = mysql_fetch_array($result)) {
echo
"<tr><td class=\"headline\">$row[headline]</td></tr><tr><td align=left
class=\"answer\">$row[answer]</td
></tr>";
}
echo "</table>";
?></td>
</tr>
<tr>
<td colspan="2"><a href="<? print "$PHP_SELF?newstart=$start? -
$num_q" ; ?>">Previous</a>
<a href="<? print "$PHP_SELF?start=$start";
?>">Next</a></td>
--
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]
Whats wrong with this?
$MaxID="select Max($Table.'ID') from $Table";
MikeP
[EMAIL PROTECTED]
At 1:42 PM -0500 3/9/01, Mike wrote:
>Whats wrong with this?
>$MaxID="select Max($Table.'ID') from $Table";
I assume you want to do:
$MaxID="select Max($TableID) from $Table";
as long as you don't have a variable called $TableID that is. if you
do then do:
$MaxID="select Max(".$Table."ID) from $Table";
the . operator for concat only works when you're not in a stting
variable. for example:
$var = "Hello ".$user;
you could also just do:
$var = "Hello $user";
PHP is smart enough to notice variables in strings. but periods in
strings are just periods.
-aaron
Hi!
I have a strange problem, when i use the following in
<? mail('[EMAIL PROTECTED]', 'confirmation', ob_get_contents());
ob_end_flush(); ?>
i receive the page many times in my email account!
Any idea ?
Thanks
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Hello,
I am trying to create an associative array dynamically. Here's what I did first:
$form_val_list =
"firstname,lastname,address,address2,city,state,zip,phone,email,resume";
$form_arr = explode (",", $form_val_list);
while (list ($key, $val) = each ($form_arr))
{
echo "$key is $val<br>";
}
This doesn't do the trick, as it creates a regular array with values from my list, as
in form_array['1'] = "firstname"; whereas I need form_array['firstname']
Is this possible without being overly complicated? Thanks.
stas
> I am trying to create an associative array dynamically.
> Here's what I did first:
> $form_val_list =
> "firstname,lastname,address,address2,city,state,zip,phone,emai
> l,resume";
> $form_arr = explode (",", $form_val_list);
> while (list ($key, $val) = each ($form_arr))
> {
> echo "$key is $val<br>";
> }
> This doesn't do the trick, as it creates a regular array with
> values from my list, as in form_array['1'] = "firstname";
> whereas I need form_array['firstname']
> Is this possible without being overly complicated? Thanks.
You need to assign a value to that element. This would work:
$assocArray = array();
$assocArray[firstname] = $someVal;
$assocArray[lastname] = $someVal;
Alternately, you can do:
$assocArray = array( "firstname" => $someVal, "lastname" => $someVal );
etc.
Chris
Thanks, I know that, but I don't want to type out assignments manually, as
my list of my form values will grow. However, I solved very simply like
this:
$form_val_list =
"firstname,lastname,address,address2,city,state,zip,phone,email,resume";
$form_arr = explode (",", $form_val_list);
while (list ($key, $val) = each ($form_arr))
{
$new_arr[ $val] = "some test value";
}
stas
----- Original Message -----
From: "Boget, Chris" <[EMAIL PROTECTED]>
> > I am trying to create an associative array dynamically.
> > Here's what I did first:
> > $form_val_list =
> > "firstname,lastname,address,address2,city,state,zip,phone,emai
> > l,resume";
> > $form_arr = explode (",", $form_val_list);
> > while (list ($key, $val) = each ($form_arr))
> > {
> > echo "$key is $val<br>";
> > }
> > This doesn't do the trick, as it creates a regular array with
> > values from my list, as in form_array['1'] = "firstname";
> > whereas I need form_array['firstname']
> > Is this possible without being overly complicated? Thanks.
>
> You need to assign a value to that element. This would work:
>
> $assocArray = array();
> $assocArray[firstname] = $someVal;
> $assocArray[lastname] = $someVal;
>
> Alternately, you can do:
>
> $assocArray = array( "firstname" => $someVal, "lastname" => $someVal );
> etc.
>
> Chris
>
Developer Certifications only mean something if you are trying to get a
government job.
I have only been asked for sites that I have done and been asked once for a
sample
of code. I would go to another recruiter if I were you. Every place I
have applied looked
at urls and code functionality. I would never ever hire someone who had an
MCSE.
I look at skills that someone has, and coding style. I know high school
students who
program better than people in our nation's top computer courses. IMHO
certifications
are garbage. I would rather hire someone who can learn then someone who
was spoon
fed and just managed to take a stupid course that doesn't teach you what
you need
to know.
BTW the microsoft certifications are worth nothing now, even to microsoft.
Rick
At 02:58 PM 3/8/01 -0500, Krznaric Michael wrote:
> OK now I'm pissed. I consider myself to be an above average
>programmer with extensive skill in PHP (amongst other things).
>
> NOW... I am not going to go jumping through hoops just because some
>ignorant/illiterate HR Recruiter/IS Head thinks that if you're not PHP
>certified by some company (eg. brainbench) you're not worth consideration.
>I REFUSE to do it. I WOULD NOT on my life take the MCSE of MCwhatever,
>however I may take the Cisco or the Oracle test. Things that require and
>properly compensate specialization I am open to. But things that test how
>well you can interact with a GUI (Windows) are bullshit. With respect to
>PHP there are other methods of determining ones competency with a particular
>language. What should be judged is a persons overall programming
>competency, or how well they can adapt to a new language, as oppose to
>specialization in PHP or PERL or ..... If you specialize in PHP, what are
>you going to do when there is no more PHP. (Not that we are expecting that).
>
> To summarize, judging a proficiency as it relates to a particular
>language shows the inexperience and ignorance of your future management.
>The bottom line is that "YOU DO NOT WANT TO WORK FOR PEOPLE LIKE THAT". I'm
>sure some experienced programmers around here know what I'm talking about.
>
>Mike
>
>
>-----Original Message-----
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, February 28, 2001 1:33 PM
>To: [EMAIL PROTECTED]
>Subject: [PHP] Developer certifications
>
>
>Does anyone know of a company which is offering or planning to offer PHP
>developer certifications? Arguments against certification programs aside[1],
>there are a lot of companies which prefer certified developers, even to the
>point of assuming a project done in ASP will be better than the same thing
>done
>in PHP simply because the ASP developers are Microsoft certified.
>
>While this seems like an interesting sideline for a company like Zend, I'm
>also
>somewhat curious about whether an "Open Source" test could be developed.
>It'd
>certainly have to be quite different from normal tests and that move away
>from
>easily memorized answers would probably be a very good thing.
>
>[1] We've all heard them before. I'm personally in favor only of
>certifications
>like certain devilishly hard Cisco exams which measure more than
>multiple-choice memory.
>
>--
>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]
##########################################################
# Rick St Jean,
# [EMAIL PROTECTED]
# President of Design Shark,
# http://www.designshark.com/
# Quick Contact: http://www.designshark.com/messaging.ihtml
# Tel: 905-684-2952
##########################################################
Hello,
I am having some problems with php, netscape enterprise server and
solaris 2.6. I am not sure if this is a normal problem with the
configuration I have or if I am missing something. But when I do
something like this: $IP = getenv('REMOTE_ADDR') , I do not get the
REMOTE_ADDR. But if I do $IP = $REMOTE_ADDR it works fine. This also
happens with other environment variables as well. The getenv() also works
fine on my linux/apache setup too. But if anyone could help out with this
getenv() problem I would greatly appreciate it.
Thanks
Jeff
== ==
The nice thing about Windows is - It does not just crash, it displays a
dialog box and lets you press 'OK' first.
Arnold,
In the minutes field on crontab, you can add as many values as you want
separated by a colon. Try somthing like this...
00,05,10,15,20,25 and so until 55 * * *
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
THIS IS A MINUTES FIELD WITH MANY VALUES
We use it here and it does the job fine. Try reading crontab manpages
for additional info.
William
Arnold Gamboa wrote:
>
> hi there.
>
> is there a way to tell crontab to do:
>
> "run script every 5 mins for 1 hour"..
>
> i have this mass email script that is so huge that i need it to chunk into
> records and make sure that it will run every 5 mins for 1 hour.
>
> Thanks for any help.
So whats up with that GTK... Anyone know of a site with tutorials?
Thank you,
--------------------------------------------
Brandon Orther
WebIntellects Design/Development Manager
[EMAIL PROTECTED]
800-994-6364
www.webintellects.com
--------------------------------------------
Hi,
I need to access array values at varying dimensions.
What I want to do is something like this:
$full_index = ["op"]["view"];
print ${"HTTP_GET_VARS" . $full_index};
but that doesnt work :(
A messy solution would be:
function return_array_value($index1, $index2)
{
if ($index2) {
return $HTTP_GET_VARS[$index1][$index2];
} else {
return $HTTP_GET_VARS[$index1];
}
}
but this would mean I would have to continue adding 'if' clauses if I wanted
to access values more than one dimension deep.
Is there a neat way of getting at array values dynamically?
D. Robinson
Hello,
I am currently working on finishing up version 2.0 of PHP Studio.
It's release date is March 15. It is a completely free source/ware. I
was hoping to get a list of features that PHP developers would want to
see. I will make an attempt to have all of these features included in the
March 15 version. Thank you very much for your time.
Dan
+-------------------------------------------------------------------+
| |
| If Yoda so strong in force is, |
| why words in proper order he cannot put? |
| |
+-------------------------------------------------------------------+
| |
+-------------------------------------------------------------------+
| Daniel J. Cleveland |
| e-mail: [EMAIL PROTECTED] |
+-------------------------------------------------------------------+
I use ultraedit love it.
- ftp open
- line numbers and ruler
- search and replace by file, highlightd text, dir
- auto indent, highlight a group of text and indent or de-dent.
- file::open::default dir depends on the current file open
- htmltidy built in
- spell check text not code.
- macros
- syntax highlighting
- linking to php.net/manual/ functions.
- new files open inside main windows (file tabs) not in new windows (like IE)
there are lots
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
"Dan Cleveland" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello,
I am currently working on finishing up version 2.0 of PHP Studio.
It's release date is March 15. It is a completely free source/ware. I
was hoping to get a list of features that PHP developers would want to
see. I will make an attempt to have all of these features included in the
March 15 version. Thank you very much for your time.
Dan
+-------------------------------------------------------------------+
| |
| If Yoda so strong in force is, |
| why words in proper order he cannot put? |
| |
+-------------------------------------------------------------------+
| |
+-------------------------------------------------------------------+
| Daniel J. Cleveland |
| 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]
I use a fantastic program called Textpad. I love ultraedit also.... but
what it lacks is a clip or snippets library.
The functions work well... as well as the macros. The thing that the
snippets or clip library needs is the ability
to have a hotkey tied to each one... the drawback of a macro is you have to
retype them.,,, the big thing why
I dropped ultraedit is that the line numbers do not read the end of a
line.... if a line goes past the edge of a page
and the word wrap is on the rest of that line gets a new number that throws
everything else off. Ability to use
unix regular expressions for searching. Ability to reassign hotkeys is
important... everyone wants to customize
their keys.
Something that I have also never seen and would like is to have a central
repository for code snippets within a
company. I think that something like this would be very unique and
useful. Everyone has a shared drive and
it load the definitions from there. If it gets updated then everyone's
would update.
At 01:04 PM 3/9/01 -0600, Chris Lee wrote:
>I use ultraedit love it.
>
>- ftp open
>- line numbers and ruler
>- search and replace by file, highlightd text, dir
>- auto indent, highlight a group of text and indent or de-dent.
>- file::open::default dir depends on the current file open
>- htmltidy built in
>- spell check text not code.
>- macros
>- syntax highlighting
>- linking to php.net/manual/ functions.
>- new files open inside main windows (file tabs) not in new windows (like IE)
>
>there are lots
>
>--
>
> Chris Lee
> Mediawaveonline.com
>
> ph. 250.377.1095
> ph. 250.376.2690
> fx. 250.554.1120
>
> [EMAIL PROTECTED]
>
>
>
>"Dan Cleveland" <[EMAIL PROTECTED]> wrote in message
>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>Hello,
>I am currently working on finishing up version 2.0 of PHP Studio.
>It's release date is March 15. It is a completely free source/ware. I
>was hoping to get a list of features that PHP developers would want to
>see. I will make an attempt to have all of these features included in the
>March 15 version. Thank you very much for your time.
>
>Dan
>
>+-------------------------------------------------------------------+
>| |
>| If Yoda so strong in force is, |
>| why words in proper order he cannot put? |
>| |
>+-------------------------------------------------------------------+
>| |
>+-------------------------------------------------------------------+
>| Daniel J. Cleveland |
>| 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 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]
##########################################################
# Rick St Jean,
# [EMAIL PROTECTED]
# President of Design Shark,
# http://www.designshark.com/
# Quick Contact: http://www.designshark.com/messaging.ihtml
# Tel: 905-684-2952
##########################################################
is there a reason why doing something like `rm test.test` would work on one
server but not another?
- noah
permisions ?
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
""noah"" <[EMAIL PROTECTED]> wrote in message
98be51$o3u$[EMAIL PROTECTED]">news:98be51$o3u$[EMAIL PROTECTED]...
is there a reason why doing something like `rm test.test` would work on one
server but not another?
- noah
--
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]
hi
i'm currently programming a php web application and i have the following
problem: i need a login scheme; programmed a simple one. Whichever page the
user reaches, in some i need their userid, for extra validation. so
basically, i'm looking for a mechanism to share a variable between multiple
pages, but as i don't always use forms, i think i can't use url-encoding
with the a-tag to make the userid available for all scripts.
maybe there is support for logging users in, i don't know
anyone an idea?
tx
sessions
<?php
/*
http://php.net/manual/en/ref.session.php
sessions with cookies
------------------------
- will transfer across full urls
- will transfer acress full form urls
- will not set SID
- will not transfer across multiple domainnames
sessions without cookies
------------------------
- will set SID
- will transfer across multiple domainnames if the domain name is on the same server
and $SID is manualy appended to the url
- will transfer across full urls if $SID is appended to the url
- will transfer across full form urls if $SID is appended to the form url
*/
function mtime()
{
$mtime = microtime();
$mtime = str_replace('.', '', $mtime);
$mtime = explode(' ', $mtime);
$mtime = $mtime[1] . $mtime[0];
return($mtime);
}
if ( isset($HTTP_GET_VARS['PHPSESSID']) )
session_id($HTTP_GET_VARS['PHPSESSID']);
if ( isset($HTTP_POST_VARS['PHPSESSID']) )
session_id($HTTP_POST_VARS['PHPSESSID']);
if (!isset($HTTP_SESSION_VARS['SessionID']))
{
$SessionID = mtime();
session_register('SessionID');
}
$PHPSESSID = session_id();
$SID = "PHPSESSID=$PHPSESSID";
//----
echo "
<a href='http://$SERVER_NAME/$PHP_SELF?$SID'>here </a>
";
?>
there ya go
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
"Leo" <[EMAIL PROTECTED]> wrote in message
98be7g$qnj$[EMAIL PROTECTED]">news:98be7g$qnj$[EMAIL PROTECTED]...
hi
i'm currently programming a php web application and i have the following
problem: i need a login scheme; programmed a simple one. Whichever page the
user reaches, in some i need their userid, for extra validation. so
basically, i'm looking for a mechanism to share a variable between multiple
pages, but as i don't always use forms, i think i can't use url-encoding
with the a-tag to make the userid available for all scripts.
maybe there is support for logging users in, i don't know
anyone an idea?
tx
--
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]
how do I write a Not isset as in:
if != isset($order)
{
$order=$Table."ID";
}
mikep
[EMAIL PROTECTED]
> how do I write a Not isset as in:
> if != isset($order)
> {
> $order=$Table."ID";
> }
if( !( isset( $order ))) {
}
I'm big on parens. :p
OR
if( empty( $order )) {
}
Chris
try
if(!(isset($order)))
{
$order=$Table."ID";
}
hth
Thank you
Brian Paulson
Sr. Web Developer
[EMAIL PROTECTED]
http://www.chieftain.com
1-800-269-6397
-----Original Message-----
From: Mike [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 09, 2001 1:34 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Not isset
how do I write a Not isset as in:
if != isset($order)
{
$order=$Table."ID";
}
mikep
[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]
Hi all,
anyone know if there's a similar way to read like the linux php://stdin on a
windows box? I've tried to run a simple script founded on phpbuilder.com
about a shell scripting and it seems to work in some way just for the first
"request" ...
This a "screenshoot" of my ms-dos window:
<screenshoot>
C:\Programmi\Apache Group\Apache\bin\php>php -q test.php
What is your first name? max
What is your last name? <font color=ff0000><br>
<b>Warning</b>: fopen("php://stdin","r") - No error in <b>test.php</b> on
line
<b>38</b><br>
</font><font color=ff0000><br>
<b>Warning</b>: Supplied argument is not a valid File-Handle resource in
<b>te
t.php</b> on line <b>39</b><br>
</font><font color=ff0000><br>
<b>Warning</b>: Supplied argument is not a valid File-Handle resource in
<b>te
t.php</b> on line <b>40</b><br>
</font>
</screenshoot>
this is the code:
function read() {
$fp=fopen("php://stdin", "r");
$input=fgets($fp, 255);
fclose($fp);
return str_replace("\n", "", $input);
}
print("\nWhat is your first name? ");
$first_name = read();
print("\nWhat is your last name? ");
$last_name = read();
print("\n\n\nHello, $first_name $last_name! Nice to meet !\n");
many thanks in advance
max
Anyone know where I can find a file upload
tutorial ?
Jerry Lake - [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com
does anyone look at the manual anymore?
there's TONS of info at:
http://www.php.net/manual/en/features.file-upload.php
-aaron
At 1:10 PM -0800 3/9/01, Jerry Lake wrote:
>Anyone know where I can find a file upload
>tutorial ?
>
>Jerry Lake - [EMAIL PROTECTED]
>Web Designer
>Europa Communications - http://www.europa.com
>Pacifier Online - http://www.pacifier.com
>
>
>
>--
>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]
With the info in the manual (thanks)
I keep getting this error
Warning: Unable to create '/www/htdocs/uploads': Is a directory in
/www/workbox/htdocs/upload.php on line 4
I have the directory chmoded to 777
what is my problem, aside from general idiocy...
Jerry Lake - [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com
-----Original Message-----
From: Aaron Tuller [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 09, 2001 1:17 PM
To: Jerry Lake; [EMAIL PROTECTED]
Subject: Re: [PHP] file upload tutorial.
does anyone look at the manual anymore?
there's TONS of info at:
http://www.php.net/manual/en/features.file-upload.php
-aaron
At 1:10 PM -0800 3/9/01, Jerry Lake wrote:
>Anyone know where I can find a file upload
>tutorial ?
>
>Jerry Lake - [EMAIL PROTECTED]
>Web Designer
>Europa Communications - http://www.europa.com
>Pacifier Online - http://www.pacifier.com
>
>
>
>--
>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]
Is anyone working on integrating libical (
http://softwarestudio.org/libical/index.html ) with php. This library
seems to be in much more active development than libmcal and in active
use by software developers.
-Mark
Does anyone know of any other lists that are a little more advanced,
And has a little less traffic? I am not the end all be all by any means of
programming or PHP. I just want to know where the big boys hang out
and learn some secrets that require some understanding.
Rick
##########################################################
# Rick St Jean,
# [EMAIL PROTECTED]
# President of Design Shark,
# http://www.designshark.com/
# Quick Contact: http://www.designshark.com/messaging.ihtml
# Tel: 905-684-2952
##########################################################
If I'm not mistaken, the big boys keep an eye out over here.
Mike
-----Original Message-----
From: Rick St Jean [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 09, 2001 4:54 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Advanced PHP
Does anyone know of any other lists that are a little more advanced,
And has a little less traffic? I am not the end all be all by any means of
programming or PHP. I just want to know where the big boys hang out
and learn some secrets that require some understanding.
Rick
##########################################################
# Rick St Jean,
# [EMAIL PROTECTED]
# President of Design Shark,
# http://www.designshark.com/
# Quick Contact: http://www.designshark.com/messaging.ihtml
# Tel: 905-684-2952
##########################################################
--
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]
Yeah. I even see some PHP book authors, like Julie Meloni here on this
list.
There is never a question, no matter how retarded, that this list or #php on
irc.openprojects.net has never been able to answer.
- Kath
----- Original Message -----
From: "Krznaric Michael" <[EMAIL PROTECTED]>
To: "'Rick St Jean'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, March 09, 2001 5:11 PM
Subject: RE: [PHP] Advanced PHP
> If I'm not mistaken, the big boys keep an eye out over here.
>
> Mike
>
>
> -----Original Message-----
> From: Rick St Jean [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 09, 2001 4:54 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Advanced PHP
>
>
> Does anyone know of any other lists that are a little more advanced,
> And has a little less traffic? I am not the end all be all by any means
of
> programming or PHP. I just want to know where the big boys hang out
> and learn some secrets that require some understanding.
>
> Rick
> ##########################################################
> # Rick St Jean,
> # [EMAIL PROTECTED]
> # President of Design Shark,
> # http://www.designshark.com/
> # Quick Contact: http://www.designshark.com/messaging.ihtml
> # Tel: 905-684-2952
> ##########################################################
>
>
> --
> 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]
>
What came first the chicken or the egg?
Keith
On Fri, 9 Mar 2001, Kath wrote:
> Yeah. I even see some PHP book authors, like Julie Meloni here on this
> list.
>
> There is never a question, no matter how retarded, that this list or #php on
> irc.openprojects.net has never been able to answer.
>
> - Kath
>
>
> ----- Original Message -----
> From: "Krznaric Michael" <[EMAIL PROTECTED]>
> To: "'Rick St Jean'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Friday, March 09, 2001 5:11 PM
> Subject: RE: [PHP] Advanced PHP
>
>
> > If I'm not mistaken, the big boys keep an eye out over here.
> >
> > Mike
> >
> >
> > -----Original Message-----
> > From: Rick St Jean [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, March 09, 2001 4:54 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] Advanced PHP
> >
> >
> > Does anyone know of any other lists that are a little more advanced,
> > And has a little less traffic? I am not the end all be all by any means
> of
> > programming or PHP. I just want to know where the big boys hang out
> > and learn some secrets that require some understanding.
> >
> > Rick
> > ##########################################################
> > # Rick St Jean,
> > # [EMAIL PROTECTED]
> > # President of Design Shark,
> > # http://www.designshark.com/
> > # Quick Contact: http://www.designshark.com/messaging.ihtml
> > # Tel: 905-684-2952
> > ##########################################################
> >
> >
> > --
> > 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 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]
>
>
The chicken did.
as the Chicken is an actual chicken
and the egg is a potential chicken.
Actuality precedes potentiality
Jerry Lake - [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com
-----Original Message-----
From: Keith Vance [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 09, 2001 3:14 PM
To: Kath
Cc: Krznaric Michael; 'Rick St Jean'; [EMAIL PROTECTED]
Subject: Re: [PHP] Advanced PHP
What came first the chicken or the egg?
Keith
On Fri, 9 Mar 2001, Kath wrote:
> Yeah. I even see some PHP book authors, like Julie Meloni here on this
> list.
>
> There is never a question, no matter how retarded, that this list or #php
on
> irc.openprojects.net has never been able to answer.
>
> - Kath
>
>
> ----- Original Message -----
> From: "Krznaric Michael" <[EMAIL PROTECTED]>
> To: "'Rick St Jean'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
> Sent: Friday, March 09, 2001 5:11 PM
> Subject: RE: [PHP] Advanced PHP
>
>
> > If I'm not mistaken, the big boys keep an eye out over here.
> >
> > Mike
> >
> >
> > -----Original Message-----
> > From: Rick St Jean [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, March 09, 2001 4:54 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] Advanced PHP
> >
> >
> > Does anyone know of any other lists that are a little more advanced,
> > And has a little less traffic? I am not the end all be all by any means
> of
> > programming or PHP. I just want to know where the big boys hang out
> > and learn some secrets that require some understanding.
> >
> > Rick
> > ##########################################################
> > # Rick St Jean,
> > # [EMAIL PROTECTED]
> > # President of Design Shark,
> > # http://www.designshark.com/
> > # Quick Contact: http://www.designshark.com/messaging.ihtml
> > # Tel: 905-684-2952
> > ##########################################################
> >
> >
> > --
> > 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 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]
> The chicken did.
>
> as the Chicken is an actual chicken
> and the egg is a potential chicken.
> Actuality precedes potentiality
amen brotha.
How do I create a directory which is owned by a user other than the user
which is running the webserver?
The "other" user will change all the time. So I need to be able to set the
ownership of a directory, on-the-fly.
I have searched the Internet and I have run across things like creating c
wrappers and perl scripts using suidperl. I really really want to stay in
the PHP world for this, so does anyone have any suggestions of what I can
do to make this happen. I don't have a problem with using other languages
to accomplish this, I would just prefer to stick with PHP on this one.
I am running the latest everything, PHP and Apache on Linux of course.
Keith
Hi there.
Maybe this is a stupid question, i dunno, but untill now, nobody seemed to
be able to answer it, so here goes.
I have PHP4 running under apache as a DSO on a linux system.
This is cool, it runs as nobody, and thus is fairly safe.
But also very unfunctional when it comes to uploading files, manipulating
and removing files :(
Is there a way i can make PHP switch user for a while and then switch back ?
I mean, like making it switch from nobody to the desired user, do stuff,
when done, switch back to nobody ?
I do not want to make folders/files world writeable etc.
Thanks.
--
- NoSpeed
------------------------------------------------------
- Carpe Noctem
"The stickers on the side of the box said "Supported Platforms: Windows 98,
Windows NT 4.0, Windows 2000 or better", so clearly Linux was a supported
platform."
-WEEKLY UPDATES-
BREAKING NEWS... RECORDS WERE BROKEN...
AND MILLIONAIRRES WILL BE MADE!!
THE ADVANTAGES OF BEING ON OUR TEAM ARE:
-YOU WILL GET PAYED NEXT WEEK!
-WE WILL BUILD ONE SIDE OF YOUR BUSINESS FOR YOU!
-WE WILL PROVIDE YOU WITH FREE NETWORKER LEADS SPECIFIC TO THIS OPPORTUNITY
-WE WILL TRAIN YOU, DO CALLS FOR YOU, AND PLUG YOU INTO OUR PROVEN SYSTEM
-YOU.... CANNOT FAIL
CHECK US OUT ON THE WEB AT
http://www.geocities.com/success352003/
***************************************************************
THIS EMAIL COMPLIES WITH ALL REGULATIONS AND IS NOT SPAM. TO
PERMANENTLY REMOVE YOURSELF FROM THE LIST SIMPLY EMAIL
[EMAIL PROTECTED] WITH "REMOVE" AS THE SUBJECT LINE.
***************************************************************
How to people typically integrate payment processors with PHP?
And what processors are used most often? I know that a number
of people are scrambling after cybercash died. There is a site out
there www.opay.com that says it supports payment processors
on any platform, anyone ever use it?
Rick
##########################################################
# Rick St Jean,
# [EMAIL PROTECTED]
# President of Design Shark,
# http://www.designshark.com/
# Quick Contact: http://www.designshark.com/messaging.ihtml
# Tel: 905-684-2952
##########################################################
On 3/9/2001 5:27 PM this was written:
> How to people typically integrate payment processors with PHP?
> And what processors are used most often? I know that a number
> of people are scrambling after cybercash died. There is a site out
> there www.opay.com that says it supports payment processors
> on any platform, anyone ever use it?
Never used it. I use authorize.net or any of their resellers (rtware.net,
quickcommerce.com)
--
Thomas Deliduka
IT Manager
-------------------------
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/
I use Virisign PayFlow Pro and it's so easy. ust the built in
functions or just call parse_str() on the output and you're set.
-aaron
At 5:27 PM -0500 3/9/01, Rick St Jean wrote:
>How to people typically integrate payment processors with PHP?
>And what processors are used most often? I know that a number
>of people are scrambling after cybercash died. There is a site out
>there www.opay.com that says it supports payment processors
>on any platform, anyone ever use it?
>
>Rick
>##########################################################
># Rick St Jean,
># [EMAIL PROTECTED]
># President of Design Shark,
># http://www.designshark.com/
># Quick Contact: http://www.designshark.com/messaging.ihtml
># Tel: 905-684-2952
>##########################################################
>
>
>--
>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]
I haven't used opay.com.
However I was looking at using cybercash for up and coming software I am
writing.
Their website talks extensively about a merger with a 'Network 1' company
and now a buyout and a chapter 11 filing. The buyout, or "merger" press
release says: "CyberCash Internet Payment Processing Service to Continue
without Interruption."
Is this incorrect? When you say that it 'died', what are you referring to?
.:: Nathan Cook [ [EMAIL PROTECTED] ] ::.
PCS Edventures.com
Systems & Network Administrator :: Programmer
[ phone - 208.343.3110 ][ pager - 208.387.9983 ]
----- Original Message -----
From: "Rick St Jean" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 09, 2001 3:27 PM
Subject: [PHP] payment
> How to people typically integrate payment processors with PHP?
> And what processors are used most often? I know that a number
> of people are scrambling after cybercash died. There is a site out
> there www.opay.com that says it supports payment processors
> on any platform, anyone ever use it?
>
> Rick
> ##########################################################
> # Rick St Jean,
> # [EMAIL PROTECTED]
> # President of Design Shark,
> # http://www.designshark.com/
> # Quick Contact: http://www.designshark.com/messaging.ihtml
> # Tel: 905-684-2952
> ##########################################################
>
>
> --
> 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]
>
>
It says it is not a gateway but a method between code and the processor.
One piece of code is supposed to
work for 150 payment processors. If you need a new processor then you buy
some driver from them.
At 02:28 PM 3/9/01 -0800, Aaron Tuller wrote:
>I use Virisign PayFlow Pro and it's so easy. ust the built in functions
>or just call parse_str() on the output and you're set.
>
>-aaron
>
>At 5:27 PM -0500 3/9/01, Rick St Jean wrote:
>>How to people typically integrate payment processors with PHP?
>>And what processors are used most often? I know that a number
>>of people are scrambling after cybercash died. There is a site out
>>there www.opay.com that says it supports payment processors
>>on any platform, anyone ever use it?
>>
>>Rick
>>##########################################################
>># Rick St Jean,
>># [EMAIL PROTECTED]
>># President of Design Shark,
>># http://www.designshark.com/
>># Quick Contact: http://www.designshark.com/messaging.ihtml
>># Tel: 905-684-2952
>>##########################################################
>>
>>
>>--
>>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]
##########################################################
# Rick St Jean,
# [EMAIL PROTECTED]
# President of Design Shark,
# http://www.designshark.com/
# Quick Contact: http://www.designshark.com/messaging.ihtml
# Tel: 905-684-2952
##########################################################
On 3/9/2001 5:38 PM this was written:
> Is this incorrect? When you say that it 'died', what are you referring to?
That's what I'm inerested in. I have several sites currently using Cybercash
and one client left for a month on vacation and asked before he left if the
merger would affect him; didn't want his stuff going down while he was gone.
Now I'm hearing they're gone and we have to find other arrangements?
--
Thomas Deliduka
IT Manager
-------------------------
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/
> How to people typically integrate payment processors with PHP?
> And what processors are used most often? I know that a number
> of people are scrambling after cybercash died. There is a site out
> there www.opay.com that says it supports payment processors
> on any platform, anyone ever use it?
We use datacash (www.datacash.com). They've worked out well
for us for the last several years.
Chris
They were supposed to merge with Network 1, but they could not come up with
the money.
I read something that said they filed for chapter 11. But this means that
he smaller company
Network 1 will absorb them or buy what is left. Those are the rumours I heard
Rick
At 03:38 PM 3/9/01 -0700, Nathan Cook wrote:
>I haven't used opay.com.
>
>However I was looking at using cybercash for up and coming software I am
>writing.
>
>Their website talks extensively about a merger with a 'Network 1' company
>and now a buyout and a chapter 11 filing. The buyout, or "merger" press
>release says: "CyberCash Internet Payment Processing Service to Continue
>without Interruption."
>
>Is this incorrect? When you say that it 'died', what are you referring to?
>
>.:: Nathan Cook [ [EMAIL PROTECTED] ] ::.
>PCS Edventures.com
>Systems & Network Administrator :: Programmer
>[ phone - 208.343.3110 ][ pager - 208.387.9983 ]
>----- Original Message -----
>From: "Rick St Jean" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Friday, March 09, 2001 3:27 PM
>Subject: [PHP] payment
>
>
> > How to people typically integrate payment processors with PHP?
> > And what processors are used most often? I know that a number
> > of people are scrambling after cybercash died. There is a site out
> > there www.opay.com that says it supports payment processors
> > on any platform, anyone ever use it?
> >
> > Rick
> > ##########################################################
> > # Rick St Jean,
> > # [EMAIL PROTECTED]
> > # President of Design Shark,
> > # http://www.designshark.com/
> > # Quick Contact: http://www.designshark.com/messaging.ihtml
> > # Tel: 905-684-2952
> > ##########################################################
> >
> >
> > --
> > 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]
> >
> >
##########################################################
# Rick St Jean,
# [EMAIL PROTECTED]
# President of Design Shark,
# http://www.designshark.com/
# Quick Contact: http://www.designshark.com/messaging.ihtml
# Tel: 905-684-2952
##########################################################
confirmed on Fu**edcompany.com
At 05:54 PM 3/9/01 -0500, you wrote:
>They were supposed to merge with Network 1, but they could not come up
>with the money.
>I read something that said they filed for chapter 11. But this means that
>he smaller company
>Network 1 will absorb them or buy what is left. Those are the rumours I heard
>
>Rick
>
>At 03:38 PM 3/9/01 -0700, Nathan Cook wrote:
>>I haven't used opay.com.
>>
>>However I was looking at using cybercash for up and coming software I am
>>writing.
>>
>>Their website talks extensively about a merger with a 'Network 1' company
>>and now a buyout and a chapter 11 filing. The buyout, or "merger" press
>>release says: "CyberCash Internet Payment Processing Service to Continue
>>without Interruption."
>>
>>Is this incorrect? When you say that it 'died', what are you referring to?
>>
>>.:: Nathan Cook [ [EMAIL PROTECTED] ] ::.
>>PCS Edventures.com
>>Systems & Network Administrator :: Programmer
>>[ phone - 208.343.3110 ][ pager - 208.387.9983 ]
>>----- Original Message -----
>>From: "Rick St Jean" <[EMAIL PROTECTED]>
>>To: <[EMAIL PROTECTED]>
>>Sent: Friday, March 09, 2001 3:27 PM
>>Subject: [PHP] payment
>>
>>
>> > How to people typically integrate payment processors with PHP?
>> > And what processors are used most often? I know that a number
>> > of people are scrambling after cybercash died. There is a site out
>> > there www.opay.com that says it supports payment processors
>> > on any platform, anyone ever use it?
>> >
>> > Rick
>> > ##########################################################
>> > # Rick St Jean,
>> > # [EMAIL PROTECTED]
>> > # President of Design Shark,
>> > # http://www.designshark.com/
>> > # Quick Contact: http://www.designshark.com/messaging.ihtml
>> > # Tel: 905-684-2952
>> > ##########################################################
>> >
>> >
>> > --
>> > 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]
>> >
>> >
>
>##########################################################
># Rick St Jean,
># [EMAIL PROTECTED]
># President of Design Shark,
># http://www.designshark.com/
># Quick Contact: http://www.designshark.com/messaging.ihtml
># Tel: 905-684-2952
>##########################################################
>
>
>--
>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]
##########################################################
# Rick St Jean,
# [EMAIL PROTECTED]
# President of Design Shark,
# http://www.designshark.com/
# Quick Contact: http://www.designshark.com/messaging.ihtml
# Tel: 905-684-2952
##########################################################
Umm, I'm not sure what you mean. You do need a an acquiring bank, we
use Wells Fargo, they're pretty cheap, and knowledgeable about the
internet.
PayFlow supports any bank that uses FDMS Nashville plus others.
http://biz.wellsfargo.com/products/merchant/internet/internet.jhtml
if you want sample PayFlow code, just ask, or use the built in functions.
-aaron
At 5:45 PM -0500 3/9/01, Rick St Jean wrote:
>It says it is not a gateway but a method between code and the
>processor. One piece of code is supposed to
>work for 150 payment processors. If you need a new processor then
>you buy some driver from them.
>
>
>At 02:28 PM 3/9/01 -0800, Aaron Tuller wrote:
>>I use Virisign PayFlow Pro and it's so easy. ust the built in
>>functions or just call parse_str() on the output and you're set.
>>
>>-aaron
>>
>>At 5:27 PM -0500 3/9/01, Rick St Jean wrote:
>>>How to people typically integrate payment processors with PHP?
>>>And what processors are used most often? I know that a number
>>>of people are scrambling after cybercash died. There is a site out
>>>there www.opay.com that says it supports payment processors
>>>on any platform, anyone ever use it?
>>>
>>>Rick
>>>##########################################################
>>># Rick St Jean,
>>># [EMAIL PROTECTED]
>>># President of Design Shark,
>>># http://www.designshark.com/
>>># Quick Contact: http://www.designshark.com/messaging.ihtml
>>># Tel: 905-684-2952
>>>##########################################################
>>>
>>>
>>>--
>>>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]
>
>##########################################################
># Rick St Jean,
># [EMAIL PROTECTED]
># President of Design Shark,
># http://www.designshark.com/
># Quick Contact: http://www.designshark.com/messaging.ihtml
># Tel: 905-684-2952
>##########################################################
>
>
>--
>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]
I developed this site http://www.hytes.com
for techical resource for developers. Please take a look and let me know
your feedback.
Thanks
Narsu
Sorry for neglecting this before when i requested a list of features that
would be nice, but here's the url of the site currently...
http://www.sju.edu/~dc008274/phpstudio
Thanks again
Dan
+-------------------------------------------------------------------+
| |
| If Yoda so strong in force is, |
| why words in proper order he cannot put? |
| |
+-------------------------------------------------------------------+
| |
+-------------------------------------------------------------------+
| Daniel J. Cleveland |
| e-mail: [EMAIL PROTECTED] |
+-------------------------------------------------------------------+
Err...where the heck do I download this from?
The download page on that site just gives me a Javascript popup about
version 2.0 being out on March 15th. It looks like an interesting editor but
I'd like to try it out...
- James
> -----Original Message-----
> From: Dan Cleveland [mailto:[EMAIL PROTECTED]]
> Sent: March 9, 2001 3:03 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] PHP Studio Website
>
>
> Sorry for neglecting this before when i requested a list of features that
> would be nice, but here's the url of the site currently...
>
> http://www.sju.edu/~dc008274/phpstudio
>
> Thanks again
>
> Dan
>
> +-------------------------------------------------------------------+
> | |
> | If Yoda so strong in force is, |
> | why words in proper order he cannot put? |
> | |
> +-------------------------------------------------------------------+
> | |
> +-------------------------------------------------------------------+
> | Daniel J. Cleveland |
> | 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]
Is there a way to have a session end if they leave my site and go to
another?
thanks
randy
Hello!
My case:
My users have ftp access to their directories, then if I put my scripts
inside it, they will br able to stole!
Is possible to use directory alias and forcetype on Apache to protect my
scripts or which's the better solution for it, any ideas ???
Regards,
marcoBR
include them from a directory outside of their access. If they are
creative they can use the
fp tags to make copies, if you do not lock down your server rights.
Rick.
At 08:51 PM 3/9/01 -0300, Marco Aurélio wrote:
>Hello!
>
>
>My case:
>
>My users have ftp access to their directories, then if I put my scripts
>inside it, they will br able to stole!
>
>Is possible to use directory alias and forcetype on Apache to protect my
>scripts or which's the better solution for it, any ideas ???
>
>
>Regards,
>
>marcoBR
>
>
>--
>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]
##########################################################
# Rick St Jean,
# [EMAIL PROTECTED]
# President of Design Shark,
# http://www.designshark.com/
# Quick Contact: http://www.designshark.com/messaging.ihtml
# Tel: 905-684-2952
##########################################################