Ok. Here's the situation:
I'm running PHP on a Unix (SGI) box with Apache as a module running an
Intranet web server (call it inside.mydomain.com). Sendmail is running on
the machine. I'm on a network with a windows Mail server (MS. Exchange 5.5)
with (I'm told) appropriate SMTP services runni
Hmmm... I'm pretty sure 1%3 is equal to 1.
I'm suspecting you might be incrementing $photocount too early -- that is,
before the if (($photocount % 3) == 2) statement. That would certainly
explain the weirdness you're seeing.
--Todd
> -Original Message-
> From: Johnson, Kirk [mailto:
Sorry. Take that back. Just saw the original post.
The problem is that you're doing the stuff AFTER deciding whether you
want to change rows or not. Imagine going through the list below when you're
on $photocount=2, which is really the third picture.
while($row = mysql_fetch_array($result)) {
Sounds like they have relay disabled on their SMTP server and the IP that
your PHP is running on is not on an included network address. As them to
verify that your ip address is ok.
The mail server will accept locally destined mail but anything else is seen
as a relay attempt (Spam) and blocked.
Hello,
I need a little help getting started with my project (i'm new to PHP). I
need to enumerate all of the files in a folder, their name mostly. How
would I do that?
Thank you!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional com
sas Mon Feb 26 14:14:24 2001 EDT
Modified files:
/php4/ext/ircg config.m4
Log:
Improve the configure part of ircg a little bit; complain when ircg-config
is not found. That lead to confusion in many cases.
Index: php4/ext/ircg/config.m4
diff -u
Unfortuanetly, phpinfo is not telling me anything.
It returns all the normal info, but it still seems to act like there was no
data posted.
> Put phpinfo() in the script to see what is going on..
>
>
> On Monday, 26 February 2001, at 09:12:11 (-0800),
> Chris wrote:
>
> >
> > I am trying to pos
Anyone know of a open-source driver that would allow unlimited database
connection to connect the UNIX machine to a MS-SQL Server 7.0 and is free?
I have see FreeTDS but it use myssql, I am looking for odbc.
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [E
Strange,
phpinfo is showing this:
POST /members/plurp.asp HTTP/1.1
and a content length of 16, which is exactly right forlah=sd&dta=test
but I can't seem to get to the actual data.
Is there a way to see the acutal content data, like you can with perl:
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH
This is a really common question. Check the mailing list archive for an
answer. (I don't know)
Michael
Scott Fletcher wrote:
> Anyone know of a open-source driver that would allow unlimited database
> connection to connect the UNIX machine to a MS-SQL Server 7.0 and is free?
>
> I have see Fre
Im trying to get GD to work on my box and i keep getting the following
errors:
gdttf.c:66: syntax error before `TT_Engine'
gdttf.c:72: syntax error before `TT_Matrix'
gdttf.c:81: syntax error before `TT_Engine'
gdttf.c:87: syntax error before `TT_Glyph'
gdttf.c: In function `fontFetch':
gdtt
Now im even getting more confused. Ive been doing some more research into
the subject, and cant seem to find any answers.
All of the PHP documentation about headers() talks about auth via PHP, but
doesnt mention anything about htaccess as the auth system.
On my main.php screen, this is where t
Addressed to: "Scott Rothgaber" <[EMAIL PROTECTED]>
[EMAIL PROTECTED]
** Reply to note from "Scott Rothgaber" <[EMAIL PROTECTED]> Mon, 26 Feb 2001 12:46:08
-0500
>
> On 26 Feb 2001, at 10:21, [EMAIL PROTECTED] wrote:
>
> > The first thing to try is get a list of the host names that
Addressed to: "Karl J. Stubsjoen" <[EMAIL PROTECTED]>
[EMAIL PROTECTED]
** Reply to note from "Karl J. Stubsjoen" <[EMAIL PROTECTED]> Mon, 26 Feb 2001
15:28:27 -0700
>
> Hello,
>
> I need a little help getting started with my project (i'm new to PHP). I
> need to enumerate all of
I <[EMAIL PROTECTED]> wrote:
> Can someone give me a simple example script that uses postgres session
> handling, that works with register_globals "off"?
As a followup again, it seems what I've been running into is a bug
in PHP:
http://bugs.php.net/bugs.php?id=8772
http://bugs.
Addressed to: "Parker, John (Snorkel)" <[EMAIL PROTECTED]>
"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
** Reply to note from "Parker, John (Snorkel)" <[EMAIL PROTECTED]> Mon, 26
Feb 2001 16:02:32 -0600
> The behaviour is this: When I send mail from the webserver (running as
> [EMAI
The request for a password is usually generated by a 401 header. Just do
this -
Header("WWW-authenticate: basic realm=\"Some realm\"");
Header("HTTP/1.1 401 Unauthorized");
exit;
That should pop up a box. Just make sure you check the values of
$PHP_AUTH_USER/PW first before presenting those head
Addressed to: "Jerry Lake" <[EMAIL PROTECTED]>
[EMAIL PROTECTED]
** Reply to note from "Jerry Lake" <[EMAIL PROTECTED]> Mon, 26 Feb 2001 12:58:35 -0800
>
> I just installed php as an apache DSO module
> on the first try of a phpinfo(); it worked
> just as it should, then I loaded ph
Addressed to: <[EMAIL PROTECTED]>
[EMAIL PROTECTED]
** Reply to note from <[EMAIL PROTECTED]> Mon, 26 Feb 2001 15:58:19 -0500
>
> hi all,
>
> thanks for the replies. many of you asked why I want to use php4 as a cgi.
>
> basically it boils down to this, using PHP as CGI you can run
I'd like to see this also.
- Kath
- Original Message -
From: "colin olkowski" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 26, 2001 3:58 PM
Subject: [PHP] php4 as a module AND a cgi
> hi all,
>
> thanks for the replies. many of you asked why I want to use php4 as
I am trying to install and configure PHP3 with Oracle 8.1.6 and am
receiving the following error when I run $ make
In file included from functions/php3_oci8.h:53,
from internal_functions.c:53:
/stuff/oracle/product/8.1.6/rdbms/demo/oci.h:1659: ociextp.h: No such
file or directory
I used a .php extension which phpmyadmin uses also
it is rather odd, it worked until I loaded phpmyadmin
(i unloaded it, but nothing fixed)
Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com
-Ori
I'm having trouble establishing MySQL sessions when the client is running
from behind a remote firewall. (I.e., the MySQL server has a static
internet IP, but the remote client which is accessing, or better said,
attempting to access the MySQL database via PHP in their browser can't seem
to estab
convert_to_string_ex(p2);
+
+ conn = lookup_irconn(Z_LVAL_PP(p1));
+
+ if (!conn) RETURN_FALSE;
+
+ irc_handle_command(&conn->conn, "WHOIS", 1, Z_STRVAL_PP(p2));
+ RETVAL_TRUE;
+#endif
+}
+
PHP_FUNCTION(ircg_topic)
{
#if defined(IRCG_API_VERSION) &&a
At 12:26 AM 27/02/2001, Sander Pilon wrote:
>The request for a password is usually generated by a 401 header. Just do
>this -
>
>Header("WWW-authenticate: basic realm=\"Some realm\"");
>Header("HTTP/1.1 401 Unauthorized");
>exit;
>
>That should pop up a box. Just make sure you check the values of
On Mon, 26 Feb 2001 20:52, [EMAIL PROTECTED] wrote:
> I'm a beginner but...I can't install php-4.o.4pl1 on my linux
> mandrake..why?
> When I run configure ,the program checks all the files...
> there are some missing..but it never return an error
> it return a warning 'you will need bison if you
Hiya,
Can i call a function from the action line of a form?
ie:
On Tue, 27 Feb 2001 05:33, Jerry Lake wrote:
> What is the newsgroup archive location ?
> marc.themaesgroup.something ?
>
> Jerry Lake- [EMAIL PROTECTED]
> Web Designer
> Europa Communications - http://www.europa.com
> Pacifier Online - http://www.pacifier.com
nearly - marc.
On Tue, 27 Feb 2001 06:28, Jason wrote:
> Hi,
>
> I need a way to walk through mail headers and search for a specific
> string in the subject. If the message contains the string, it will be
> forwarded to a different account, otherwise it will trigger an
> autoresponse with a certain message to th
On Tue, Feb 27, 2001 at 10:34:53AM +1030, David Robley wrote:
> On Mon, 26 Feb 2001 20:52, [EMAIL PROTECTED] wrote:
> > I'm a beginner but...I can't install php-4.o.4pl1 on my linux
> > mandrake..why?
> > When I run configure ,the program checks all the files...
> > there are some missing..but it
On Tue, 27 Feb 2001 01:28, Clayton Dukes wrote:
> > Hi :-)
> Can someone tell me how to do the equivalant of this Perl script in
> PHP?
>
> ###
> ### This function prints all lines between the dashes read in a text
> file ###
> ### The file looks like this:
>
> # -
> #
Hi all,
I understand that you can call the parent function
from within an overriding child function using the
parent::method syntax. That's OK.
My problem is...I need the parent's data! (I know
that the class has no data, only objects of that
class have data, etc etc.)
I have a class that ca
zeevMon Feb 26 16:09:14 2001 EDT
Modified files:
/php4/ext/standard output.c php_output.h
Log:
Fix chunked output buffering support
Index: php4/ext/standard/output.c
diff -u php4/ext/standard/output.c:1.39 php4/ext/standard/output.c:1.40
--- php4/ext/st
On Tue, 27 Feb 2001 05:53, Steve Segarra wrote:
> Hi everyone,
> First, let me explain I am a very knowledgable php developer. I'm not
> someone trying to write their first script. I have been working on a
> very large and complex problem for some time now when it suddenly
> stopped workin
Is there any equivalent java try catch syntax in php ?
Thanks,
Jeff
--
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]
Actually, static calls aren't so static when they're calling a method which is
in the inheritance tree.
In other words, parent:: calls (assuming the subclass is instanciated) will
operate instanciated.
John
On Tue, 27 Feb 2001, Tyson Lloyd Thwaites wrote:
> Hi all,
>
> I understand that you
**
[EMAIL PROTECTED] is no longer a valid address.
Try replacing @CELL1.com with @alltel.com
If your email is still not delivered, please contact
the recipient and request their new email address.
***
I have a customer who insists on using Front Page, but wants protection
against intruders on all his web pages. I envisioned a solution where he
works in Front Page, then all his files are ftp'd to a directory on the
server, opened and re-written as .php files with all links changed from
"some
Hello Brian,
JavaScript book, that I have, mentions some NN cannot display JavaScript
code correctly when user views HTML source code. To work around this, author
says disable JavaScript on NN and display source.
How about try this to see what the browser really get?
(PHP sends the same output f
hello!!
I have a question about variables scope!!
In the above segment, I know that, func2 won't echo anything, even I add
"global var;" in func2.
if, I modified the segment, so, that, it like the following!!
It works!!
However, I am now doing a project, using PHP, I decide to write some
mo
Hello Lee,
I cannot imagin exact environtment that you have. Anyway,
Are you sure that your servers (Web Server running PHP and Database server
running MySQL) can talk to each other? It seems you have firewall(or like,
router/proxy/etc) between your web server and your database server.
Regards,
I read about the php manual, I find that, shmop function can let me use
to store information directly on a shared segment memory.
However, I have some question about these!
Does it provide a faster performance, if I use these rather than store
things in mysql DB, I know this might be stupid, but
Hiya,
Can i call a function from the action line of a form?
ie:
> Can i call a function from the action line of a form?
No, since the tag needs to point to a receiving PHP script.
PHP code is executed on the server side, not the browser.
PHP code is executed on the server side, not the browser.
PHP code is executed on the server side, not the browser.
PHP c
Hi all,
how can I tell the output from a mysql query to
wrap the cols at 80 (or whatever)?
here's what I have:
$row = mysql_fetch_array($sth);
if ($row[0] != "")
{ echo $row[0];
prints the data, but some of the results are long
strings of text that don't wrap in the browser,
Nevermind,
I got it :-)
I used:
function wraptext($text,$warp) {
$text = explode(" ", $text);
$i = 0; $length = 0;
while ($i <= count($text)) {
$length += strlen($text[$i]);
if ($length <= $warp) {
$output .= $text[$i]." ";
PHP runs as the webserver user which in most cases is user nobody. For PHP
to write to a directory, it has to be writable to this directory. A
possible solution would be to compile a PHP executable and run a script from
cron to copy the files periodically. By using cron and a cgi-version of PHP
No, PHP doesn't have the extensive error handling that Java does. It's a
bit more like C.
Jason
- Original Message -
From: "Jeff" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 26, 2001 6:30 PM
Subject: [PHP] try catch in php?
> Is there any equivalent java try cat
There's a PHP function that does this. See: http://www.php.net/wordwrap
Sig for a Day
Stephan Ahonen, ICQ 491101
"That's very funny Scotty, now beam down my clothes!"
Come back tomorrow for a different sig!
Backspace a single "s" to reply by email
--
PHP General Mailing List (http://www.php.ne
Hello Zenith,
SNIP
> However, I am now doing a project, using PHP, I decide to write some
> modules, for frequestly used. How ever, these module, have to use some
> variables, whose scope is originally on only the upper most level.
> If using these way (global all var in each function, even not t
can some one offer a suggestion please ... i have a
if ($update) {
$result=foo;
}
in that if statement i want to redirect them to another page after it has processed
the result ..
i tried having using
if ($update) {
$result=foo;
echo "";
}
but to no avail ..
any suggestio
Hello all,
I would like to know if anyone already wrote FORM module (not PHP
class/function) that handles HTML forms (elements, validation, etc).
I searched freashmeat, I couldn't find one.
Thanks,
--
Yasuo Ohgaki
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAI
try the header function
http://www.php.net/manual/en/function.header.php
for ex, if you want the user to be redirected to abc.php3 file, then use
this function call
header("location:abc.php3");
exit;
do take all the precautions subscribed for the header function in the
manual.
hope that helps
On Tue, 27 Feb 2001 14:58, Peter Houchin wrote:
> > can some one offer a suggestion please ... i have a
>
> if ($update) {
> $result=foo;
> }
>
> in that if statement i want to redirect them to another page after it
> has processed the result ..
> i tried having using
>
> if ($update) {
>
On Tue, 27 Feb 2001 15:15, David Robley wrote:
> On Tue, 27 Feb 2001 14:58, Peter Houchin wrote:
> > > can some one offer a suggestion please ... i have a
> >
> > if ($update) {
> > $result=foo;
> > }
> >
> > in that if statement i want to redirect them to another page after it
> > has processed t
hi..
i have a form that allow users to upload several image files.
every time they submit, i do fread them and assign them to an array...
this array will be passed on until user confirmation.. then i insert
into database as blob type
//freed image file and assign to array.
$diagram[$ind] =
ad
php-general Digest 27 Feb 2001 05:04:25 - Issue 536
Topics (messages 41705 through 41794):
Re: isset()
41705 by: Johnson, Kirk
41727 by: Christian Reiniger
Help, Perl can, Php can't !
41706 by: Chris
41710 by: David Raufeisen
41748 by: Chris
I can't seem to locate the php.ini file on my system.
Here's some pertinent info from phpinfo():
PHP Version 4.0.4pl1
SystemLinux i686 unknown
Configure Command './configure' '--with-mysql' '--with-apxs' '--enable-versioning'
Server API Apache
Configuration File (php.ini) Path /usr/lo
SNIP
>
> I mean, of course
> header("Location: page.php");
>
> Must teach fingers to wait for brain to engage :-)
According to RFC2616, 'Location: ' header must be absolute URI (i.e.
http://example.com/test.html), most browser works with relative URI, though.
'Content-Location: ' can be both ab
hi all,
how do i keep an array of variable "alive" thru different pages...
array is assigned with value at say index.php...
user will move from tat page to say index2... index3... index4.php..
in index4.php i can still access the array...
thanks..
--
PHP General Mailing List (http://www.php
OK, I answered my own question. After researching on php.net, I determined that the
php.ini should have been in /usr/local/lib, but was missing, presumably because
whoever did the install skipped the step of copying php.ini-dist to
/usr/local/lib/php.ini.
I downloaded a source .tar, extracted
Hi,
Steve Edberg wrote:
> In your HTMLTable() function, use
>
> $this->attributes[] = array("border", "0");
> $this->attributes[] = array("cellpadding", "0");
>
> otherwise, PHP thinks $attributes is a variable local to that
> function, rather that a class variable.
Yes, that di
I would suggest you to use sessions.
http://www.php.net/manual/en/ref.session.php
or use PHPLIB if you are on PHP3
best regards
Ankur Verma
HCL Technologies
A1CD, Sec -16
Noida, UP
India
- Original Message -
From: "John LYC" <[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>
Se
Hi,
I'm trying to use an authentication method I found in a tutorial in the
net. The server prompts for username/password. But if I enter the hard coded
values (or any other values) the server rejects them with a message
authorization failed.
I use PHP 4 as a module on IIS
Thanks very much for
Hi,
I have looked at the docs and was not able to find anything covering this subject.
Ken,
if PHP is 'built in' to apache (--with-apxs, besides other ways to
achieve this), it is configured through Apache. This is either
httpd.conf, or .htaccess files within your web tree.
The 'configuration' section in the manual is more specific on that.
Cheers,
Ben
Ken wrote:
>
> I can't see
Hi Ken,
that looks like both are being read, which I wasn't aware of. Thanks for
pointing out.
Setting things within the apache configuration is quite useful if you
want to set them on a per-directory basis, or have different settings
for .php and .phtml files, etc, etc.
Cheers,
Ben
Ken wrote:
does session_register() "over-write existing variable of the same
name...?
for example..
//count already registered and holds value 3.
session_register("count");
print $count; //output null;
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
Fo
Hi there I had a problem here
I got a database in mysql that contains the date format like this "Mar 12
2001"
now i try to sort the database and find out how many data in my MySQL that
had a date > "Mar 12 2001"
how can i change that kind of format so i can compare the data in unix time
stamp for
101 - 169 of 169 matches
Mail list logo