Re: [PHP] Dumping fields.....

2001-07-27 Thread Dell Coleman

Hi
Looks like the range of the  block overlaps the range of the  block
I usually generate all the TH stuff first 
You can then generate the   and data elements as needed after that
for each row

HTH

Jeff Lewis wrote:

> Using this function to dump a table, having a problem outputting the value
> below after the SELECT * FROM $ID.
>
> function dump($ID, $link) {
> echo "Dumped table $ID border=\"1\">";
> $fields = mysql_list_fields("hyrum_nuke", $ID, $link);
> $columns = mysql_num_fields($fields);
> for ($i = 0; $i < $columns; $i++) {
>   echo "\t". mysql_field_name($fields, $i) . "\n";
> }
> echo "";
> $query = mysql_query("SELECT * FROM $ID;");
> while ($line = mysql_fetch_array($query)) {
> while ($value = each($line)){
> $value = ereg_replace("<", "<", $value);
> $value = ereg_replace(">", ">", $value);
> echo "$value";
> }
> }
> echo "";
> }
>
> --
> 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]

--
Dell Coleman
PICO Technology Corp.



-- 
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] install PHP --with-java on FreeBSD. No luck.

2001-07-27 Thread SlowPork

Hello.

After I compiled PHP with Java support, I instantiated new class [ eg.  ]. I got blank response, and that child of 
Apache died.  

Is this a bug that I should report?  or I'm missing somthing here?   Any expert please 
give me some suggestions.

For Apache error log, 
[Fri Jul 27 17:40:01 2001] [notice] child pid 48040 exit signal Bus error (10)
[Fri Jul 27 17:40:02 2001] [notice] child pid 48041 exit signal Bus error (10)
[Fri Jul 27 17:40:03 2001] [notice] child pid 48042 exit signal Bus error (10)

I use PHP Version 4.0.6
./configure --with-apxs=/usr/local/sbin/apxs --with-java=/usr/local/linux-jdk1.3.1

phpinfo() shows Java section fine.
java.class.path   
/usr/local/lib/php/php_java.jar:/usr/local/linux-jdk1.3.1/jre/lib/rt.jar
java.home  /usr/local/linux-jdk1.3.1
java.library libjava.so
java.library.path 
/usr/local/lib:/usr/compat/linux/lib:/usr/local/linux-jdk1.3.1/jre/lib/i386:/usr/local/linux-jdk1.3.1/jre/lib/i386/hotspot:/usr/local/linux-jdk1.3.1/jre/lib/i386/native_threads

From, php.ini
java.home=/usr/local/linux-jdk1.3.1
java.class.path=/usr/local/lib/php/php_java.jar:/usr/local/linux-jdk1.3.1/jre/lib/rt.jar
extension_dir=/usr/local/lib/php/20001222
extension=libphp_java.so
java.library.path=/usr/local/lib:/usr/compat/linux/lib:/usr/local/linux-jdk1.3.1/jre/lib/i386:/usr/local/linux-jdk1.3.1/jre/lib/i386/hotspot:/usr/local/linux-jdk1.3.1/jre/lib/i386/native_threads
java.library=libjava.so

I tried both Sun Java 1.3.1, and Blackdown 1.2.2.  It gave same error on Apache.  Java 
itself works fine from shell.

I use FreeBSD 4.3 Stable,  Linux compat mode is on
# kldstat
Id Refs AddressSize Name
 13 0xc010 38c5f4   kernel
 21 0xc0d47000 3000 daemon_saver.ko  (screen saver)
 31 0xc0d4c000 12000linux.ko

I also set LD_LIBRARY_PATH before I start Apache.
# setenv LD_LIBRARY_PATH 
/usr/local/lib:/usr/compat/linux/lib:/usr/local/linux-jdk1.3.1/jre/lib/i386:/usr/local/linux-jdk1.3.1/jre/lib/i386/hotspot:/usr/local/linux-jdk1.3.1/jre/lib/i386/native_threads

I run 'ld' .  Seems it finds most dynamic links.
# ld /usr/local/linux-jdk1.3.1/jre/lib/i386/libjava.so
/usr/libexec/elf/ld: warning: cannot find entry symbol _start; not setting start 
address


Thank you. 
slowpork at hotmail.com



Re: [PHP] Adding scripts

2001-07-27 Thread Chris Fry

Tim,

It is not necessary to retrieve your values using $HTTP_POST_VARS, the
variables can be referred to by their name, e.g $hit_955 so in PART 1 it
appears that you are intialising everything that was passed from the select
page to 0. All you need to do is initialise your counters.

PART ONE:


I would say that the 3 items that you are getting values for are spelt
incorrectly in that initialisation section and are not getting zeroed.

The problem is that the missing values will be a null string and your
calculation will fail.

For each value passed you will need to do a test and set to 0 if the variable
does not exist e.g.:-

if(!$hit_955) {
$hit_955 = 0;
}

etc...

Have fun,

Chris

Tim Thorburn wrote:

> Hi,
>
> I'm creating a very simple script (or so I thought) in which a user can
> select items from a form, the script will take the number values of those
> items and do two things: display the names of the items selected, and add
> the items together and give the user a total price including taxes.
>
> In my form, I use the following syntax:
> 
>
> The form is then sent using the POST method.
>
> I then retrieve the values using the following syntax:
> $hit_955 = $HTTP_POST_VARS["hit_955"];
>
> All together there are 14 items a user can choose - for testing purposes, I
> chose all items.  The script would only display and add the first, second,
> and tenth items.  All others are ignored.
>
> Here is the script - its broken into three parts - the first part is
> collecting the information - the second part is doing the actual math - and
> the third part displays the item names that the user chose.  Does anyone
> see anything wrong with this script, or have a possible reason why its only
> choosing 3 out of 14 items to work with?
>
> PART ONE:
> 
> $SubTotal = 0;
> $FormattedSubTotal = 0;
> $Total = 0;
> $FormattedTotal = 0;
>
> $PST = 1.08;
> $GST = 1.07;
> $CalcPST = 0;
> $CalcGST = 0;
> $FormattedPST = 0;
> $FormattedGST = 0;
>
> $nokia252c = 0;
> $battery = 0;
> $hit_955 = 0;
> $hit_965 = 0;
> $nok_cbl_7 = 0;
> $nok_lch_6rpd = 0;
> $nok_cgh10 = 0;
> $nok_lch9 = 0;
> $belt_252 = 0;
> $nokia_0261670 = 0;
> $s_nok_0261669 = 0;
> $nok_mbc_3k = 0;
> $nok_cark_89 = 0;
> $nok_cark_90 = 0;
>
> $nokia252c = $HTTP_POST_VARS["nokia252c"];
> $battery = $HTTP_POST_VARS["battery"];
> $hit_955 = $HTTP_POST_VARS["hit_955"];
> $hit_965 = $HTTP_POST_VARS["hit_965"];
> $nok_cbl_7 = $HTTP_POST_VARS["nok_cbl_7"];
> $nok_lch_6rpd = $HTTP_POST_VARS["nok_lch_6rpd"];
> $nok_cgh10 = $HTTP_POST_VARS["nok_cgh10"];
> $nok_lch9 = $HTTP_POST_VARS["nok_lch9"];
> $belt_252 = $HTTP_POST_VARS["belt_252"];
> $nokia_0261670 = $HTTP_POST_VARS["nokia_0261670"];
> $s_nok_0261669 = $HTTP_POST_VARS["s_nok_0261669"];
> $nok_mbc_3k = $HTTP_POST_VARS["nok_mbc_3k"];
> $nok_cark_89 = $HTTP_POST_VARS["nok_cark_89"];
> $nok_cark_90 = $HTTP_POST_VARS["nok_cark_90"];
>
> ?>
>
> PART TWO:
>  $SubTotal = $nokia252c + $battery + $hit_955 + $hit_965 + $nok_cbl_7 +
> $nok_lch_6rpd + $nok_cgh10 + $nok_lch9 + $belt_252 + $nokia_0261670 +
> $s_nok_0261669 + $nok_mbc_3k + $nok_cark_89 + $nok_cark_90;
> $CalcPST = ($SubTotal * $PST) - $SubTotal;
> $CalcGST = ($SubTotal * $GST) - $SubTotal;
> $Total = $SubTotal + $CalcPST + $CalcGST;
> $FormattedSubTotal = number_format($SubTotal, 2);
> $FormattedPST = number_format($CalcPST, 2);
> $FormattedGST = number_format($CalcGST, 2);
> $FormattedTotal = number_format($Total, 2);
> ?>
>
> PART THREE:
>  0)
> {
>echo "Nokia 252c";
> }
>else
> {
>echo "";
> } ?>
>
> Thanks
> -Tim
>
> --
> 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]

--

Chris Fry
Quillsoft Pty Ltd
Specialists in Secure Internet Services and E-Commerce Solutions
10 Gray Street
Kogarah
NSW  2217
Australia

Phone: +61 2 9553 1691
Fax: +61 2 9553 1692
Mobile: 0419 414 323
eMail: [EMAIL PROTECTED]
http://www.quillsoft.com.au

You can download our Public CA Certificate from:-
https://ca.secureanywhere.com/htdocs/cacert.crt

**

This information contains confidential information intended only for
the use of the authorised recipient.  If you are not an authorised
recipient of this e-mail, please contact Quillsoft Pty Ltd by return
e-mail.
In this case, you should not read, print, re-transmit, store or act
in reliance on this e-mail or any attachments, and should destroy all
copies of them.
This e-mail and any attachments may also contain copyright material
belonging to Quillsoft Pty Ltd.
The views expressed in this e-mail or attachments are the views of
the author and not the views of Quillsoft Pty Ltd.
You should only deal with the material contained in this e-mail if
you are authorised to do so.

This notice should not be removed.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL P

[PHP] Adding scripts

2001-07-27 Thread Tim Thorburn

Hi,

I'm creating a very simple script (or so I thought) in which a user can 
select items from a form, the script will take the number values of those 
items and do two things: display the names of the items selected, and add 
the items together and give the user a total price including taxes.

In my form, I use the following syntax:


The form is then sent using the POST method.

I then retrieve the values using the following syntax:
$hit_955 = $HTTP_POST_VARS["hit_955"];

All together there are 14 items a user can choose - for testing purposes, I 
chose all items.  The script would only display and add the first, second, 
and tenth items.  All others are ignored.

Here is the script - its broken into three parts - the first part is 
collecting the information - the second part is doing the actual math - and 
the third part displays the item names that the user chose.  Does anyone 
see anything wrong with this script, or have a possible reason why its only 
choosing 3 out of 14 items to work with?

PART ONE:


PART TWO:


PART THREE:
 0)
{
   echo "Nokia 252c";
}
   else
{
   echo "";
} ?>


Thanks
-Tim


-- 
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] PHP on win2k/Weblogic?

2001-07-27 Thread Rory O'Connor

I have been using PHP/MySQL to build alot of little utilities (like form
mailers, contact DBs etc.) for my sites on linux and freebsd, but I just
got a client requiring a win2k server running WebLogic (for JSP
purposes).  Can I even install PHP in that environment and if so, would
it conflict with the JSP servlets?  I would love to figure out a way to
leverage the PHP utilities i've built and tested.

If not, would ActiveState Perl be usable in that setup?  if I can't use
PHP, perl would be the next best thing.  Worst case scenario is I have
to bite the bullet and try to figure out JSP and re-build the utilities
with that.

Thanks!

providing the finest in midget technology

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Stripping single quotes

2001-07-27 Thread Chris Fry

Matt,

Try ereg_replace:-

$fldemail == ereg_replace("'","",$fldemail);

Chris


Matt Stone wrote:

> Hi all,
> I am trying to validate some email addresses before they are entered into
> the database.
> The problem is, some thick or malicious people are entering single quotes
> into their email addresses.
> I need to strip out all these single quotes but a little ole' str_replace
> doesn't seem to be working.
> Here it is:
>
> $fldemail == str_replace("'","",$fldemail);
>
> Nice and basic :)
> Can anyone please enlighten me on this?
> Thanks in advance,
>
> Matt Stone
>
> --
> 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]

--

Chris Fry
Quillsoft Pty Ltd
Specialists in Secure Internet Services and E-Commerce Solutions
10 Gray Street
Kogarah
NSW  2217
Australia

Phone: +61 2 9553 1691
Fax: +61 2 9553 1692
Mobile: 0419 414 323
eMail: [EMAIL PROTECTED]
http://www.quillsoft.com.au

You can download our Public CA Certificate from:-
https://ca.secureanywhere.com/htdocs/cacert.crt

**

This information contains confidential information intended only for
the use of the authorised recipient.  If you are not an authorised
recipient of this e-mail, please contact Quillsoft Pty Ltd by return
e-mail.
In this case, you should not read, print, re-transmit, store or act
in reliance on this e-mail or any attachments, and should destroy all
copies of them.
This e-mail and any attachments may also contain copyright material
belonging to Quillsoft Pty Ltd.
The views expressed in this e-mail or attachments are the views of
the author and not the views of Quillsoft Pty Ltd.
You should only deal with the material contained in this e-mail if
you are authorised to do so.

This notice should not be removed.



-- 
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] Stripping single quotes

2001-07-27 Thread Matt Stone

Hi all,
I am trying to validate some email addresses before they are entered into
the database.
The problem is, some thick or malicious people are entering single quotes
into their email addresses.
I need to strip out all these single quotes but a little ole' str_replace
doesn't seem to be working.
Here it is:

$fldemail == str_replace("'","",$fldemail);

Nice and basic :)
Can anyone please enlighten me on this?
Thanks in advance,

Matt Stone


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] auto refresh in every five seconds.

2001-07-27 Thread Matt Greer


- Original Message -
From: "Mark Lo" <[EMAIL PROTECTED]>
To: "php general" <[EMAIL PROTECTED]>
Sent: Friday, July 27, 2001 10:40 PM
Subject: [PHP] auto refresh in every five seconds.


> Hi,
>
> I would like to know how to do a auto refresh in every five
seconds.

This isn't php, and javascript can surely do this. But this will also do
it...

http://www.website.com/index.html";>

Where X is the number of seconds between refreshes, and set the url to
itself. Place this within the head.

Matt




-- 
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] auto refresh in every five seconds.

2001-07-27 Thread Mark Lo

Hi,

I would like to know how to do a auto refresh in every five seconds.

Thanks

Mark


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Please Please Pleeeeaaaaaaaaaasssssssseeeeeee

2001-07-27 Thread Ben Bleything

There are a wealth of available scripts at other websites...
www.hotscripts.com for instance... I find it unlike at this point that
anybody will send you anything... Just go there, or to SourceForge, and
you'll find all you need.

Ben

-Original Message-
From: Kyle Smith [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 27, 2001 5:48 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Please Please Plaaeee

Can everybody please send me a simple script they have made it doesnt
matter what, i just need some material to learn from, i learn better
hands on.


-legokiller666-
http://www.StupeedStudios.f2s.com
New address new site

ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666




-- 
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] Re: [PHP-DEV] Passing JavaScript variables to PHP

2001-07-27 Thread Markus Fischer

On Fri, Jul 27, 2001 at 04:31:51PM -0500, Craig Gardner wrote : 
> Is there any way to pass JavaScript variables to PHP?

This doesn't belong in here; this list is for the development OF
php and _not_ WITH. Ask at [EMAIL PROTECTED]

- Markus

-- 
Markus Fischer,  http://guru.josefine.at/~mfischer/
EMail: [EMAIL PROTECTED]
PGP Public  Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1  C2B5 D674 B445 C227 2BD0

-- 
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] FORCING A PHP OUTPUT TO BE CACHED

2001-07-27 Thread Randy Johnson

Is it possible to force a confirmation page that is displayed via a post
operation to be cached so it will not rerun the script when somebody hits
the refresh button?   I am hoping it is easy as using a header   thanks
in advance


Randy


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] substr question...

2001-07-27 Thread Ryan Fischer

You wrote:
> I am trying to receive file names but can't quite figure out the
proper > substr to do it:
>
> jeff.dat
> jeffrey.dat
> chris.dat
> tom.dat
>
> I want to receive the name to the left of the .dat
>
> Jeff

$file = array("jeff.dat", "jeffrey.dat", "chris.dat", "tom.dat");
for($i=0; $i\n";
}

HTH!  :)

--
 -Ryan :: ICQ - 595003 :: GigaBoard - http://www.gigaboard.net/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Example high-profile PHP sites

2001-07-27 Thread Ryan Fischer

You wrote:
> While I do appreciate people's contributions, let me frame the
> discussion a little.  The person I need to convince is an
> administrator of an organization within North America, and he's never
> heard of PHP.  The response I'm hoping to provoke in him is something
> like this:  "You mean _ is using this PHP thing?  Wow!  They
> know what they're doing, so we'd better use it, too!"
>
> Does this help frame things?  Thanks for the suggestions!
>
> -Maurice

Why don't you just say something along the lines of, "Look, PHP is the
best programming language for the job you want me to do.  What other
sites are using doesn't matter.  Trust me on this.  I don't tell you how
to (fill in the blanks of whatever this person does).  I assure you that
what you're looking for will be accomplished in a way that will please
you, and that's all you need to know.  :)"

Of course, say it in a more tactful, arse-kissing type way than that.
But you get my drift, I think.  ;)

I've always thought "monkey-see, monkey-do" or "what the joneses have"
type arguments were better left to the playgrounds of elementary
schools, myself.  Hopefully, the person you're trying to work with can
understand that.  :)

--
 -Ryan :: ICQ - 595003 :: GigaBoard - http://www.gigaboard.net/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] best php editor

2001-07-27 Thread Chip

Martin Marconcini wrote:

> LOL :) I didn't ... perhaps I used an old version...

Must've been an old version, I've been using it for close to a year and
haven't
had it crash nearly as much as expected for a winblows app (at work on
winnt4).
Wish there was a *nix port of it.
--
Chip


>
>
> Regards,
>
> Martin Marconcini
> www.marconcini.com.ar
>
> "Life must be lived looking forward and can be understood only looking
> backward." Soren Kierkegaard
>
> > -Original Message-
> > From: elias [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, July 27, 2001 6:51 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [PHP] best php editor
> >
> > Then you must be one of the 3% who voted "Bad" at cnet.com ;)
> >
> > "Martin Marconcini" <[EMAIL PROTECTED]> wrote in message
> > 001401c11673$9b2926a0$[EMAIL PROTECTED]">news:001401c11673$9b2926a0$[EMAIL PROTECTED]...
> > > > languages. It is called HTML-kit! I absolutely love it and felt I
> had
> > > to
> > > > share that love with you all.
> > > >
> > > > It is free. A little like Homesite, except better in my view.
> > > Certainly
> > > > far
> > > > more feature-rich for PHP scripting.
> > > >
> > > > Unless I'm missing some serious drawback, it's the best editor for
> web
> > > > work
> > > > I've found!! Works on Windows. Wish they had a Linux version.
> > >
> > > TO be honest, I've used it but it was 2 unstable...
> > >
> > > Regards,
> > >
> > > Martin.
> > >
> >
> >
> >
> > --
> > 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]

--
Regards,

--
Chip Wiegand
CRW Computer Services
www.wiegand.org
[EMAIL PROTECTED]
<-->
  Web page design
Consulting
 PC Repair
<-->




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

2001-07-27 Thread Jerry Lake

when using mkdir
I cant seem to make subdirectories


is there any way to do this ?

Jerry Lake 
Interface Engineering Technician
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]




Re: [PHP] HTTP_REFERER is missing in SSL

2001-07-27 Thread Ezra Nugroho


>Bug in IE?  PHP doesn't even enter the picture here.  The HTTP_REFERER
>variable is defined by the web server if that information is provided by
>the browser.

No, it's not really a PHP thing, it's more HTML stuff.
I suspect that the error comes because one of the server is not running 
SSL, so IE doesn't pass HTTP_REFERER to it.
I wonder if someone has any authoritative knowledge on this problem.


>Keep in mind that there is absolutely no guarantee that the browser will
>ever provide this information.  Building anything that relies on this is a
>mistake.

Yeah, I know, but this is an outsourced script that I have no controll off.


>-Rasmus


Ezra Nugroho
Web/Database Application Specialist
Goshen College ITS
Phone: (219) 535-7706


"Don't be humble, you're not that great." -- Golda Meir


-- 
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] top reports Status D

2001-07-27 Thread Werner Stuerenburg

Sorry, I don't know if this is a php or Apache or MySQL or even
Linux problem. Any suggestion would be of help.

Server Version: Apache/1.3.19 (Unix) PHP/4.0.4pl1
MySQL 3.23.33

When watching top, things go nicely for a while. If there is high
load, it is significant that mostly httpd processes are shown,
very seldom a mysql process.

All of a sudden, the picture changes. Some mysql processes show
up with status column showing D instead of R, meaning
"uninterruptible sleep" versus "running".

Looking at processlist, I may or may not see mysql processes. If
I do, there are all kinds of status reports like sorting,
opening, copying to tmp table etc.

Without that state, I have little chance to see any processes at
all (except root looking for processlist :-)), which seems to
show that mysql is extremely fast.

With these few mysql processes in status D, very fast some httpd
processes show status D as well, and in addition, if there were
many processes running and showing before, we have only a few
shown with status D and few if any running. So if I let top run
in the background without really watching, I will notice this
change by the number of rows shown alone.

Response time will decline very fast, load average will rise
instead, and we have seen values of up to 200, at which situation
the machine is essentially non responding to anything.

The only remedy we know to date is killing and restarting Apache,
which we do with a cron job every minute evaluating load average,
but that's just a workaround for the moment. We will refine this
watching for status D.

I thought about bad queries or faulty code, but the data below
does not back this idea.

Also, we thought that the machine could not handle the load, but
it happens with few hits as well and does not seem to accelerate
significantly with heavy load.

Actually, I don't know if the data shown below relates to Status D
or not, but it is highly peculiar in any case and maybe
significant. These are the first data that really show something
weird. I have processlist and Apache status, but neither showed
anything valuable.

To find out about that phenomenon I am hunting for 10 days
already, I added a stopwatch and record the elapsed time for each
URL from entry of page construction to end.

Right from the start, I get significant data:

auto Timestamp URL  secs
178 20010727193459 Preis/30-35   1.06
179 20010727193459 Preis/35-40   0.41
180 20010727193500 Preis/18-20  81.55 
181 20010727193505 Preis/40-45   0.81
182 20010727193505 Anzeigen/Woche/9  2.68
183 20010727193526 1461  0.47
184 20010727193531 Preis/20-25  91.86 
185 20010727193538 4485  0.17
186 20010727193549 Berichte/120  0.56

Entries 180 and 184 are extreme. All Preis-URLs fetch classifieds
within that price range (horses 30.000-35.000 DM, for example).

As can be seen from the timestamp alone, this is no human
scanning the pages, rather a spider.

The program is always the same, the table also, the only
difference are the conditioning numbers for the query.

Therefore, it is not likely to be a program or query fault, as
this should produce equally bad figures on all URLs with that
pattern.

The table in question for the above data is ok, as might be
suspected, because it is the same table with all queries, slow or
fast.

I just made a manual test with URL Preis/18-20: it took 2.98
seconds - so this is proof that it is not the data range that
produces the differences. I show at most 10 records, and clearly
there will be more in this range than in range 40-45 (in fact, we
have no offers in this range right now). Time is consumed not in
fetching the data but in producing the html for presenting the
data.

Did anybody ever see something like this?

Should I upgrade to 4.0.6? Is it plausible that this is a problem
with MySQL or php? Any places to look at in addition? Any ideas
of how to track this thing down?


-- 
Herzlich
Werner Stuerenburg

_
ISIS Verlag, Teut 3, D-32683 Barntrup-Alverdissen
Tel 0(049) 5224-997 407 · Fax 0(049) 5224-997 409
http://pferdezeitung.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]




Re[2]: [PHP] installing php as cgi on linux

2001-07-27 Thread Richard Kurth

Hello Jon,

tried that it still just wants to download it

Friday, July 27, 2001, 2:49:14 PM, you wrote:

Jon Snell> This is a long shot, but...  MSIE has a nasty habit of saving the mime type
Jon Snell> of a page.  If you attempted to load the URL before PHP was set up properly,
Jon Snell> it won't load until after you closed IE and reopened.


Jon Snell> -Original Message-
Jon Snell> From: Richard Kurth [mailto:[EMAIL PROTECTED]]
Jon Snell> Sent: Friday, July 27, 2001 2:20 PM
Jon Snell> To: php
Jon Snell> Subject: [PHP] installing php as cgi on linux


Jon Snell> I am trying to get php as cgi installed on a RedHat7 box to be used
Jon Snell> with Apache. I configured it with ./configure --with-mysql  did a make
Jon Snell> and then a make install every thing whet just fine. I add
Jon Snell> ScriptAlias /php/ "/usr/local/bin/php"
Jon Snell> AddType application/x-httpd-php .php4 .php3 .phtml .php
Jon Snell> AddType application/x-httpd-php-source .phps

Jon Snell> to the httpd.conf file. and restarted Apache.

Jon Snell> When I try to run a test file with a .php ext All it does is try to
Jon Snell> download it. This should be simple but I can not figure it out.
Jon Snell> What else should I look at?




















Jon Snell> Best regards,
Jon Snell>  Richard
Jon Snell> mailto:[EMAIL PROTECTED]


Jon Snell> --
Jon Snell> PHP General Mailing List (http://www.php.net/)
Jon Snell> To unsubscribe, e-mail: [EMAIL PROTECTED]
Jon Snell> For additional commands, e-mail: [EMAIL PROTECTED]
Jon Snell> To contact the list administrators, e-mail: [EMAIL PROTECTED]





-- 
Best regards,
 Richard  
mailto:[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]




Re: [PHP] idiotic question

2001-07-27 Thread mike cullerton

on 7/27/01 3:46 PM, Jerry Lake at [EMAIL PROTECTED] wrote:

> for the life of me I can't remember
> how to convert a string to just the first
> letter of itself i.e. $string = test
> ...a function
> $string_first = t
> 

$word = substr($word,0,1);

 -- mike cullerton



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] HTTP_REFERER is missing in SSL

2001-07-27 Thread Rasmus Lerdorf

> I have a frameset that runs on a SSL enabled server that has two frames in it.
> One of the source is the local machine and the other one is a (outsourced
> asp !!) script in another machine without SSL.
> The non SSL one requires HTTP_REFERER to make sure it was hit from the
> authorized server.
>
> This works fine with Netscape but not with IE 5. HTTP_REFERER just wasn't
> defined.
>
> Any explanation?

Bug in IE?  PHP doesn't even enter the picture here.  The HTTP_REFERER
variable is defined by the web server if that information is provided by
the browser.

Keep in mind that there is absolutely no guarantee that the browser will
ever provide this information.  Building anything that relies on this is a
mistake.

-Rasmus


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

2001-07-27 Thread Jerry Lake

for the life of me I can't remember
how to convert a string to just the first
letter of itself i.e. $string = test
...a function
$string_first = t

I must be thinking in circles today.

Jerry Lake
Interface Engineering Technician
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]




RE: [PHP] installing php as cgi on linux

2001-07-27 Thread Jon Snell

This is a long shot, but...  MSIE has a nasty habit of saving the mime type
of a page.  If you attempted to load the URL before PHP was set up properly,
it won't load until after you closed IE and reopened.


-Original Message-
From: Richard Kurth [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 27, 2001 2:20 PM
To: php
Subject: [PHP] installing php as cgi on linux


I am trying to get php as cgi installed on a RedHat7 box to be used
with Apache. I configured it with ./configure --with-mysql  did a make
and then a make install every thing whet just fine. I add
ScriptAlias /php/ "/usr/local/bin/php"
AddType application/x-httpd-php .php4 .php3 .phtml .php
AddType application/x-httpd-php-source .phps

to the httpd.conf file. and restarted Apache.

When I try to run a test file with a .php ext All it does is try to
download it. This should be simple but I can not figure it out.
What else should I look at?




















Best regards,
 Richard
mailto:[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] --with-imap-ssl

2001-07-27 Thread Held Markus

Hello,

i have a big problem. I want to compile php4.0.6  ./configure 
--with-imap --with-imap-ssl=/usr/lib 

checking for IMAP support... yes
checking for pam_start in -lpam... (cached) yes
checking for Kerberos support in IMAP... no
checking for SSL support in IMAP... yes
configure: error: This c-client library does not support SSL. Recompile 
or remove --with-imap-ssl from configure line.


i updated my imap to imap2000c
i updated my c-client to the newest

cp c-client.h /usr/lib/c-client.h
cp c-client.a /usr/lib/c-client.a

and copy rfc822.h, mail.h and linkage.h to   /usr/local/include


my config.log

configure:22595: checking for Kerberos support in IMAP
configure:22793: checking for SSL support in IMAP
configure:22914: gcc -o conftest -g -O2  -DEAPI_MM -DLINUX=2 
-DMOD_SSL=206105 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT  
-Wl,-rpath,/usr/local/lib -L/usr/local/
configure:22891: warning: initialization makes integer from pointer 
without a cast
configure:22891: parse error before `void'
configure: failed program was:

DLIBS="-lssl -lcrypto -lc-client "

#line 22889 "configure"
#include "confdefs.h"


whats wrong. Have anyone an idea

mfg snooter



-- 
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] HTTP_REFERER is missing in SSL

2001-07-27 Thread Ezra Nugroho

I have a frameset that runs on a SSL enabled server that has two frames in it.
One of the source is the local machine and the other one is a (outsourced 
asp !!) script in another machine without SSL.
The non SSL one requires HTTP_REFERER to make sure it was hit from the 
authorized server.

This works fine with Netscape but not with IE 5. HTTP_REFERER just wasn't 
defined.

Any explanation?


Ezra Nugroho
Web/Database Application Specialist
Goshen College ITS
Phone: (219) 535-7706


"Don't be humble, you're not that great." -- Golda Meir


-- 
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] Re: Moving a PHP/MySQL web site ???

2001-07-27 Thread Owen Rudge

You can use phpmyadmin to dump the database into .sql files and then use
phpmyadmin again on the new server to import it.

--
Owen Rudge
http://www.owenrudge.co.uk/
http://www.gamearchive.uk.tt/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] A PHP Editor

2001-07-27 Thread Miles Thompson

Augusto,

This has been exhaustively covered, and I believe someone has set up a page 
that deals specifically with PHP and editors.

You can search the archives, however, at
http://www.php.net/search.php

Use editor as your search term, pick the general list, and there are scores 
of messages.

Good luck - Miles Thompson



At 04:08 PM 7/27/01 -0300, Augusto Cesar Castoldi wrote:
>Hi.
>
>I'm using the PHPEd (http://www.soysal.com/PHPEd) as my default editor.
>
>But this program aren't very good, it's instable. Something crash...
>
>Do you know a good php editor?
>
>thanks,
>
>Augusto
>
>
>--
>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]




RE: [PHP] Please Please Pleeeeaaaaaaaaaasssssssseeeeeee

2001-07-27 Thread Sam Masiello


Didn't we go through this the other day? :) :)

There are lots of sites available with LOTS of scripts you can look at that
do very practical things.  Scripts that I am sure some of us have even used
on occasion (I know *I* have!).  Besideshow is someone sending you one
of their scripts "hands on" for you?  :)

--Sam

 -Original Message-
From:   Kyle Smith [mailto:[EMAIL PROTECTED]]
Sent:   Friday, July 27, 2001 8:48 PM
To: [EMAIL PROTECTED]
Subject:[PHP] Please Please Plaaeee

Can everybody please send me a simple script they have made it doesnt matter
what, i just need some material to learn from, i learn better hands on.


-legokiller666-
http://www.StupeedStudios.f2s.com
New address new site

ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] array through url?

2001-07-27 Thread mike cullerton

on 7/27/01 12:21 PM, [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote:

> Is it possible to send an array of numbers into a php file through a url?
> Like if I have a file that adds numbers together, could I send it
> 
> www.domain.com/add.php?num=2,3,4,5
> 
> $num would be an array.

www.domain.com/add.php?num[]=2&num[]=3&num[]=4&num[]=5

 -- mike cullerton



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

2001-07-27 Thread colin

can anyone give me a work around for a PHP date function when used in
conjunction with a PHP include.
The code inside the include is printed but I do not know how to echo the
date as the document has already been parsed once.
Any help would be appreciated. Please reply to [EMAIL PROTECTED]
many thanks
Colin



-- 
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] Re: A PHP Editor

2001-07-27 Thread Inércia Sensorial

  I like to use PHPCoder, www.phpide.de

--

  Julio Nobrega.

2B||!BB - That's the question.

"Augusto Cesar Castoldi" <[EMAIL PROTECTED]> wrote in message
Pine.GSO.4.10.10107271605490.2482-10@minerva">news:Pine.GSO.4.10.10107271605490.2482-10@minerva...
> Hi.
>
> I'm using the PHPEd (http://www.soysal.com/PHPEd) as my default editor.
>
> But this program aren't very good, it's instable. Something crash...
>
> Do you know a good php editor?
>
> thanks,
>
> Augusto
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP mail() function

2001-07-27 Thread Mark Maggelet

On Fri, 27 Jul 2001 13:32:49 -0600, Kevin Leavell ([EMAIL PROTECTED])
wrote:
>Regular email flows in and out just fine.
>
>The host providers are and have been fiddling with the dns stuff to
>no avail.

we don't know anything about your setup, it could be that a different
server is handling your mail. If you can ping, say, google.com from
the server then that says your dns is ok, if so your problem is
probably that php can't find sendmail or something like that.
otherwise it's a network problem and you'll have to let the host
figure it out.

>Kevin
>
>- Original Message -
>From: Mark Maggelet <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
>Sent: Friday, July 27, 2001 12:14 PM
>Subject: Re: [PHP] PHP mail() function
>
>
>On Fri, 27 Jul 2001 11:11:57 -0600, Kevin Leavell ([EMAIL PROTECTED])
>wrote:
>>mail0 is sending mail that can't be received by aol or my local
isp.
>> That
>>same mail can be received by other sites on that same server.  The
>>mail doesn't bounce but I am getting a few DSN errors in my
maillog.
>
>it sounds like you don't have dns set up. try pinging a bunch of
>domains from the server.
>
>>My site is
>>hosted at a major hosting company.  Funny enough, when the scripts
>>were run
>>on their server w/ php as a cgi, all worked well.  When I moved my
>>scripts
>>to a server that had mod_php, I began having problems.
>>
>>Any wizards out their have any ideas?  The hosting company seems to
>>have run
>>out of ideas.
>>
>>The PHP version is 4.0.3pl1 running on Redhat 6x with Apache 1.3.14
>>
>>I have tried various header configs, double checked my php.ini file
>>sendmail
>>config, but after a week of dealing with this, I'll try
>>anythingI'll
>>even dance a jig if that is what it takes.
>>
>>TIA,
>>
>>Kevin
>>
>>
>>--
>>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: php-list-
>>[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: php-list-
>[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]




Re: [PHP] PHP mail() function

2001-07-27 Thread Kevin Leavell

Regular email flows in and out just fine.

The host providers are and have been fiddling with the dns stuff to no
avail.

Kevin

- Original Message -
From: Mark Maggelet <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, July 27, 2001 12:14 PM
Subject: Re: [PHP] PHP mail() function


On Fri, 27 Jul 2001 11:11:57 -0600, Kevin Leavell ([EMAIL PROTECTED])
wrote:
>mail0 is sending mail that can't be received by aol or my local isp.
> That
>same mail can be received by other sites on that same server.  The
>mail doesn't bounce but I am getting a few DSN errors in my maillog.

it sounds like you don't have dns set up. try pinging a bunch of
domains from the server.

>My site is
>hosted at a major hosting company.  Funny enough, when the scripts
>were run
>on their server w/ php as a cgi, all worked well.  When I moved my
>scripts
>to a server that had mod_php, I began having problems.
>
>Any wizards out their have any ideas?  The hosting company seems to
>have run
>out of ideas.
>
>The PHP version is 4.0.3pl1 running on Redhat 6x with Apache 1.3.14
>
>I have tried various header configs, double checked my php.ini file
>sendmail
>config, but after a week of dealing with this, I'll try
>anythingI'll
>even dance a jig if that is what it takes.
>
>TIA,
>
>Kevin
>
>
>--
>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: php-list-
>[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] ./configure problem with 4.0.6

2001-07-27 Thread Alex Black

php.install doesn't seem to be too active, I'll try here :)

hi all,

I'm trying to configure a fresh 4.0.6 cgi, and I'm getting this message
after a clean configure process:

++
|   *** ATTENTION ***|
||
| Something is likely to be messed up here, because the configure|
| script was not able to detect a simple feature on your platform.   |
| This is often caused by incorrect configuration parameters. Please |
| see the file debug.log for error messages. |
||
| If you are unable to fix this, send the file debug.log to the  |
| [EMAIL PROTECTED] mailing list and include appropiate  |
| information about your setup.  |
++


So, I looked in debug.log:
Everything looks like an info dump, except this:

--
/usr/bin/ld: cannot
find -lxmlparse
--

Note that the "default" in ./configure is:

-lxmltok, I got the exact same behavior with that, and the same error
message (with lxmltoc instead:

--
/usr/bin/ld: cannot
find -lxmltok
--

I've checked ld.so.conf and all of the right paths are available.
I'm getting a similar error with a Sablot 0.60 install, so I think it may
have something to do with my expat install: but my expat install appears to
be fine, and I'm using the latest version.


here's debug.log


-

CONFIGURE:  './configure' '--prefix=/usr/local/php4'
'--with-config-file-path=/usr/local/apache/conf'
'--enable-force-cgi-redirect' '--enable-discard-path' '--disable-shared'
'--enable-ftp' '--with-zlib'
'--enable-bcmath' '--enable-calendar' '--with-imlib=/usr/local/lib/'
'--with-jpeg-dir=/usr/lib'
'--with-tiff-dir=/usr/lib' '--with-oci8=/u01/oracle/product/8.1.6'
'--with-mhash=/usr/local/mhash'
'--with-mcrypt=/usr/local/mcrypt' '--with-dom=/usr/local/libxml2'
'--with-sablot=/usr/local/Sablot'
'--with-curl' '--enable-wddx' '--enable-memory-limit' '--enable-debug=no'
CC:  gcc CFLAGS:  -g -O2
CPPFLAGS:  -DSUPPORT_UTF8 CXX:  CXXFLAGS:  INCLUDES:  -I$(top_builddir)/Zend
-I/usr/local/libxml2/include -I/usr/local/mcrypt/include
-I/usr/local/mhash/include
-I/u01/src/apache-1320-php-406-bc/php-4.0.6.cgi/ext/mysql/libmysql
-I/u01/oracle/product/8.1.6/rdbms/public
-I/u01/oracle/product/8.1.6/rdbms/demo
-I/u01/oracle/product/8.1.6/network/public -I/usr/local/Sablot/include
LDFLAGS:
-Wl,-rpath,/usr/local/libxml2/lib -L/usr/local/libxml2/lib
-Wl,-rpath,/usr/local/mcrypt/lib
-L/usr/local/mcrypt/lib -Wl,-rpath,/usr/local/mhash/lib
-L/usr/local/mhash/lib
-Wl,-rpath,/u01/oracle/product/8.1.6/lib -L/u01/oracle/product/8.1.6/lib
-Wl,-rpath,/usr/local/Sablot/lib -L/usr/local/Sablot/lib
-Wl,-rpath,/usr/local/lib -L/usr/local/lib
LIBS:  -liconv -lxmlparse -lxmlparse -lsablot -lm -ldl -lmhash -lmcrypt
-lltdl -lz -lxml -lcurl -ldl
-lcrypto -lssl -lz -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lclntsh DLIBS:
SAPI:  cgi PHP_RPATHS:
/usr/local/libxml2/lib /usr/local/mcrypt/lib /usr/local/mhash/lib
/u01/oracle/product/8.1.6/lib
/usr/local/Sablot/lib /usr/local/lib uname -a:  Linux core.turingstudio.com
2.2.16-3smp-hh #2 SMP Wed
Jan 24 10:07:49 PST 2001 i686 unknown

gcc -o conftest -g -O2 -DSUPPORT_UTF8 -Wl,-rpath,/usr/local/libxml2/lib
-L/usr/local/libxml2/lib
-Wl,-rpath,/usr/local/mcrypt/lib -L/usr/local/mcrypt/lib
-Wl,-rpath,/usr/local/mhash/lib
-L/usr/local/mhash/lib -Wl,-rpath,/u01/oracle/product/8.1.6/lib
-L/u01/oracle/product/8.1.6/lib
-Wl,-rpath,/usr/local/Sablot/lib -L/usr/local/Sablot/lib
-Wl,-rpath,/usr/local/lib -L/usr/local/lib
conftest.c -liconv -lxmlparse -lxmlparse -lsablot -lm -ldl -lmhash -lmcrypt
-lltdl -lz -lxml -lcurl
-ldl -lcrypto -lssl -lz -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lclntsh
1>&5 /usr/bin/ld: cannot
find -lxmlparse collect2: ld returned 1 exit status
---

ideas?

tia all :)

_alex




-- 
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] PHP 4.0.6 / GD 2.0.1 compile error

2001-07-27 Thread Wandrer

On a freebsd 4.2 system, php 4.0.5 / gd 1.8x were running happily.

Downloaded and compiled gd 2.0.1 no problems.
Downloaded and compiled php 4.0.6 with:

./configure --with-mysql --with-apxs --with-gd=/usr/local 
--with-zlib-dir=/usr/local --with-jpeg-dir=/usr/local --enable-gd-imgstrttf 
--with-png-dir=/usr/local

configure works fine, but when i 'make' this is displayed:

...

...
Making all in gd
/bin/sh /usr/src/php-4.0.6/libtool --silent --mode=compile gcc  -I. 
-I/usr/src/php-4.0.6/ext/gd -I/usr/src/php-4.0.6/main -I/usr/src/php-4.0.6 
-I/usr/local/include/apache -I/usr/src/php-4.0.6/Zend -I/usr/local/include 
-I/usr/src/php-4.0.6/ext/mysql/libmysql 
-I/usr/src/php-4.0.6/ext/xml/expat/xmltok 
-I/usr/src/php-4.0.6/ext/xml/expat/xmlparse 
-I/usr/src/php-4.0.6/TSRM  -DHARD_SERVER_LIMIT=512 
-DDOCUMENT_LOCATION="/usr/local/www/data/" 
-DDEFAULT_PATH="/bin:/usr/bin:/usr/local/bin" -DUSE_EXPAT -DSUPPORT_UTF8 
-DXML_BYTE_ORDER=12 -g -O2  -c gd.c
gd.c: In function `php_minit_gd':
gd.c:296: `gdPie' undeclared (first use in this function)
gd.c:296: (Each undeclared identifier is reported only once
gd.c:296: for each function it appears in.)
gd.c:297: `gdChord' undeclared (first use in this function)
gd.c:298: `gdNoFill' undeclared (first use in this function)
gd.c:299: `gdEdged' undeclared (first use in this function)
gd.c: In function `php_if_imagecreatetruecolor':
gd.c:577: warning: assignment makes pointer from integer without a cast
*** Error code 1

Stop in /usr/src/php-4.0.6/ext/gd.
*** Error code 1

Stop in /usr/src/php-4.0.6/ext/gd.
*** Error code 1

Stop in /usr/src/php-4.0.6/ext.
*** Error code 1

Stop in /usr/src/php-4.0.6.

=

Anyone have any ideas ??

Paul


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] execution time

2001-07-27 Thread Alex Black

> I have a php script that runs every 30 minutes. It takes the contents of a
> directory (which is constantly being updated) and dumps them into a mysql
> database. Recently this directory has become increasingly large and the php
> script only updates a portion of it before it stops execution.
> 
> To run the php script I use a lynx command in a crontab. I'm running suse
> linux and apache on both machines (the machine containting the directory
> and the other machine containing the database).

Sounds like you're trying to hammer a nail with a flower pot :)

You should compile and install the cgi version of php, which can be run from
the command line like perl, with php -q.

Remember that you'll need to declare the location of the php app just like
in perl scripts. :)

> I've tried changing the max execution time in php.ini file but it appears
> to have no affect. When I took the php script and divided it into portions
> and ran them one at a time it worked (except for one portion of the
> script). the execution time of the script doesn't matter to me, I just need
> it to run.

It's been a while since I looked into this, but I _think_ setting it to 0
makes it infinite. I think.

> When I run the php script through a browser, and the script doesn't
> complete, I get a 'page cannot be displayed' message (while I am expecting
> a 'fatal error, exceeded max execution time' error message).
> 
> Maybe it could be fixed by using something other than lynx to run the php
> script internally, but  I don't know of any alternatives.
> 
> hope someone can help..

cron with command line php :)

_a


-- 
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] Dumping fields.....

2001-07-27 Thread Jeff Lewis

Using this function to dump a table, having a problem outputting the value
below after the SELECT * FROM $ID.


function dump($ID, $link) {
echo "Dumped table $ID";
$fields = mysql_list_fields("hyrum_nuke", $ID, $link);
$columns = mysql_num_fields($fields);
for ($i = 0; $i < $columns; $i++) {
  echo "\t". mysql_field_name($fields, $i) . "\n";
}
echo "";
$query = mysql_query("SELECT * FROM $ID;");
while ($line = mysql_fetch_array($query)) {
while ($value = each($line)){
$value = ereg_replace("<", "<", $value);
$value = ereg_replace(">", ">", $value);
echo "$value";
}
}
echo "";
}


-- 
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] installing php as cgi on linux

2001-07-27 Thread Richard Kurth

I am trying to get php as cgi installed on a RedHat7 box to be used
with Apache. I configured it with ./configure --with-mysql  did a make
and then a make install every thing whet just fine. I add
ScriptAlias /php/ "/usr/local/bin/php"
AddType application/x-httpd-php .php4 .php3 .phtml .php
AddType application/x-httpd-php-source .phps

to the httpd.conf file. and restarted Apache.

When I try to run a test file with a .php ext All it does is try to
download it. This should be simple but I can not figure it out.
What else should I look at?




















Best regards,
 Richard  
mailto:[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] A PHP Editor

2001-07-27 Thread Augusto Cesar Castoldi

Hi.

I'm using the PHPEd (http://www.soysal.com/PHPEd) as my default editor.

But this program aren't very good, it's instable. Something crash...

Do you know a good php editor?

thanks,

Augusto


-- 
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] number of uploads

2001-07-27 Thread Gary

I can do basic file uploads. How do you let the user choose the number of
uploads with drop down list?

Gary



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] array through url?

2001-07-27 Thread Boget, Chris

> Is it possible to send an array of numbers into a php file 
> through a url?  
> Like if I have a file that adds numbers together, could I send it
> www.domain.com/add.php?num=2,3,4,5
> $num would be an array.

Sent that last one out prematurely... sorry...

Take a look at the serialize() and urlencode() functions.

Chris



RE: [PHP] array through url?

2001-07-27 Thread Boget, Chris

> Is it possible to send an array of numbers into a php file 
> through a url?  > Like if I have a file that adds numbers together, could
I send it
> 
> www.domain.com/add.php?num=2,3,4,5
> 
> $num would be an array.
> 
> Thanks,
> Pat
> 



Re: [PHP] PHP Upload breaks session

2001-07-27 Thread Bill Catlan

> When I upload a file using PHP, it seems to break sessions.

Hi Dan,

No direct experience of this myself, but I was researching this functionality
and came across the below recent bug report in the archives.  I think it speaks
to your issue.  I also included my post to the php-dev list, in case your
interested.  (My response, followed by original bug report below.)

Bill Catlan


>Crashes (signal 11) on file upload using multipart form data.
>
>Worked with 4.0.4pl1, haven't tried 4.0.5, crashed with 4.0.6 and latest
>CVS since.

Hello,

Has this been addressed at all?

In any case, when the PHP multipart form handling functions worked properly
(v4.04, etc.) , how did they expect the file data to be encoded?

Does PHP expect it to be encoded as binary?  Does it handle and respond to a
'Content-transfer-encoding:' header for each sub-part?  Or, does PHP require the
data to perhaps be base64 encoded as required by SMTP transport, even though
HTTP is being used?  I'm thinking that maybe some other MIME handlers designed
for email are being re-purposed in PHP here and cannot properly handle binary
data.

Thanks!

Bill Catlan


List: php-dev
Subject:  [PHP-DEV] Bug #11998: Crash on multipart file form upload
From: [EMAIL PROTECTED]
Date: 2001-07-10 6:21:53
[Download message RAW]

From: [EMAIL PROTECTED]
Operating system: FreeBSD 4.2-STABLE
PHP version:  4.0CVS-2001-07-10
PHP Bug Type: Reproducible crash
Bug description:  Crash on multipart file form upload

Crashes (signal 11) on file upload using multipart form data.

Worked with 4.0.4pl1, haven't tried 4.0.5, crashed with 4.0.6 and latest
CVS since.

Compiled with:
./configure \
--enable-inline-optimization \
--enable-sysvsem \
--enable-sysvshm \
--with-mysql=/usr/local \
--with-pdflib=/usr/local \
--with-jpeg=/usr/local \
--with-jpeg-dir=/usr/local \
--with-png-dir=/usr/local \
--with-png=/usr/local \
--with-zlib-dir=/usr \
--with-pgsql=/usr/local \
--with-imap=/usr/local \
--with-gd=/usr/local \
--with-freetype=/usr/local \
--with-apxs=/usr/local/apache_test/bin/apxs

Backtrace:
(gdb) bt
#0  0x1822c8f3 in php_mime_split (
buf=0x81bf00c '-' ,
"7d1bb1e111070e\r\nContent-Disposition: form-data;
name=\"id\"\r\n\r\n3319", cnt=80256,
boundary=0x818e02a '-' , "7d1bb1e111070e",
array_ptr=0x81389cc) at rfc1867.c:174
#1  0x1822d56f in rfc1867_post_handler (
content_type_dup=0x818e00c "multipart/form-data; boundary=", '-'
, "7d1bb1e111070e", arg=0x81389cc)
at rfc1867.c:472
#2  0x1822b675 in sapi_handle_post (arg=0x81389cc) at SAPI.c:110
#3  0x1822e52d in php_treat_data (arg=0, str=0x0, destArray=0x0) at
php_variables.c:251
#4  0x18229486 in php_hash_environment () at main.c:1080
#5  0x18228b98 in php_request_startup () at main.c:650
#6  0x18226321 in apache_php_module_main (r=0x818406c,
display_source_mode=0) at sapi_apache.c:67
#7  0x18226d6a in send_php (r=0x818406c, display_source_mode=0,
filename=0x0) at mod_php4.c:581
#8  0x18226da6 in send_parsed_php (r=0x818406c) at mod_php4.c:594
#9  0x80758a1 in ap_invoke_handler ()
#10 0x8089fa8 in process_request_internal ()
#11 0x808a402 in ap_internal_redirect ()
#12 0x184e68d2 in mod_gzip_redir1_handler () from
/usr/local/apache_test/libexec/mod_gzip.so
#13 0x184e4fa0 in mod_gzip_handler () from
/usr/local/apache_test/libexec/mod_gzip.so
#14 0x80758a1 in ap_invoke_handler ()
#15 0x8089fa8 in process_request_internal ()
#16 0x808a402 in ap_internal_redirect ()
#17 0x80602b2 in handle_dir ()
#18 0x80758a1 in ap_invoke_handler ()
#19 0x8089fa8 in process_request_internal ()
#20 0x808a012 in ap_process_request ()
#21 0x8080fdf in child_main ()
#22 0x808119d in make_child ()
#23 0x8081316 in startup_children ()
#24 0x8081924 in standalone_main ()
#25 0x808213c in main ()
#26 0x804f429 in _start ()
--
Edit bug report at: http://bugs.php.net/?id=11998&edit=1


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] array through url?

2001-07-27 Thread Johnny Nguyen

that's the same as $num = "2,3,4,5";
$num is a string.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 27, 2001 11:22 AM
To: [EMAIL PROTECTED]
Subject: [PHP] array through url?


Is it possible to send an array of numbers into a php file through a url?  
Like if I have a file that adds numbers together, could I send it

www.domain.com/add.php?num=2,3,4,5

$num would be an array.

Thanks,
Pat


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] array through url?

2001-07-27 Thread Mark Maggelet

On Fri, 27 Jul 2001 14:21:41 EDT,  ([EMAIL PROTECTED]) wrote:
>Is it possible to send an array of numbers into a php file through a
>url?
>Like if I have a file that adds numbers together, could I send it
>
>www.domain.com/add.php?num=2,3,4,5
>
>$num would be an array.

on the next page just go:
$num=explode(",",$num);

either that or use serialize/unserialize.

- Mark


--
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] mail function problem

2001-07-27 Thread Emiliano Marmonti

Dears:

I have a problem using mail function under the default IIS's SMTP. Appears an 
error, something like:

Unknown error in line 3

   Line 3 only have the instruction mail ("[EMAIL PROTECTED]","[TEST] Hola","Mensaje 
de Prueba"). 

I have tested the use of this function using another SMTP server (shareware) and works 
OK. I have tried to echo what is returning the instruction, and no returns, only the 
error message. Anybody knows what could be happening?

Thanks in advance
Emiliano Marmonti
  



Re: [PHP] Payflow Pro Problems

2001-07-27 Thread Mark Maggelet

On Fri, 27 Jul 2001 09:31:50 -0700, Brandon Orther
([EMAIL PROTECTED]) wrote:
>Hello,
>
>I am trying to get the Payflow pro library compiled with PHP and am
>having any problems.  When I compile it without shared it gives me a
>-8
>error or SSL connection error.  If I try to compile it with shared
it
>gives me undefined function error.  Anyone have an helpful tips?
>Thank you,

i ran into a lot of problems with this a while back. it turned out i
had to get older libraries from verisign because they were the ones
the payflowpro module was written for and it hadn't been updated yet.

also when I tried to get it all compiled into apache-ssl everything
was broken for some reason and I ended up having to use php as cgi.

- Mark


--
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] array through url?

2001-07-27 Thread DrWebPat

Is it possible to send an array of numbers into a php file through a url?  
Like if I have a file that adds numbers together, could I send it

www.domain.com/add.php?num=2,3,4,5

$num would be an array.

Thanks,
Pat



Re: [PHP] PHP mail() function

2001-07-27 Thread Mark Maggelet

On Fri, 27 Jul 2001 11:11:57 -0600, Kevin Leavell ([EMAIL PROTECTED])
wrote:
>mail0 is sending mail that can't be received by aol or my local isp.
> That
>same mail can be received by other sites on that same server.  The
>mail doesn't bounce but I am getting a few DSN errors in my maillog.

it sounds like you don't have dns set up. try pinging a bunch of
domains from the server.

>My site is
>hosted at a major hosting company.  Funny enough, when the scripts
>were run
>on their server w/ php as a cgi, all worked well.  When I moved my
>scripts
>to a server that had mod_php, I began having problems.
>
>Any wizards out their have any ideas?  The hosting company seems to
>have run
>out of ideas.
>
>The PHP version is 4.0.3pl1 running on Redhat 6x with Apache 1.3.14
>
>I have tried various header configs, double checked my php.ini file
>sendmail
>config, but after a week of dealing with this, I'll try
>anythingI'll
>even dance a jig if that is what it takes.
>
>TIA,
>
>Kevin
>
>
>--
>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: php-list-
>[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] PHP mail() function

2001-07-27 Thread Kevin Leavell

mail0 is sending mail that can't be received by aol or my local isp.  That
same mail can be received by other sites on that same server.  The mail
doesn't bounce but I am getting a few DSN errors in my maillog.  My site is
hosted at a major hosting company.  Funny enough, when the scripts were run
on their server w/ php as a cgi, all worked well.  When I moved my scripts
to a server that had mod_php, I began having problems.

Any wizards out their have any ideas?  The hosting company seems to have run
out of ideas.

The PHP version is 4.0.3pl1 running on Redhat 6x with Apache 1.3.14

I have tried various header configs, double checked my php.ini file sendmail
config, but after a week of dealing with this, I'll try anythingI'll
even dance a jig if that is what it takes.

TIA,

Kevin


-- 
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] PHP Upload breaks session

2001-07-27 Thread Dan Harrington

Hello people,

I am wondering if this is a bug or even something that
anyone has noticed before.

When I upload a file using PHP, it seems to break sessions.

The session ID is still around, the session variables
are still in the session files, but when trying to 
go to another page linking off the results page from
right after uploading, the session does not exist
anymore.

Rasmus? Anyone?
:-)

Thanks
Dan


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Please Please Pleeeeaaaaaaaaaasssssssseeeeeee

2001-07-27 Thread John Monfort


  got to www.hotscripts.com download anything you want.



__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Fri, 27 Jul 2001, Kyle Smith wrote:

> Can everybody please send me a simple script they have made it doesnt matter what, i 
>just need some material to learn from, i learn better hands on.
>
>
> -legokiller666-
> http://www.StupeedStudios.f2s.com
> New address new site
>
> ICQ: 115852509
> MSN: [EMAIL PROTECTED]
> AIM: legokiller666
>
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Please Please Pleeeeaaaaaaaaaasssssssseeeeeee

2001-07-27 Thread Brandon Orther

I can send you one if your subject calms down.


Thank you,


Brandon Orther
WebIntellects Design/Development Manager
[EMAIL PROTECTED]
800-994-6364
www.webintellects.com
  

-Original Message-
From: Kyle Smith [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 27, 2001 5:48 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Please Please Plaaeee

Can everybody please send me a simple script they have made it doesnt
matter what, i just need some material to learn from, i learn better
hands on.


-legokiller666-
http://www.StupeedStudios.f2s.com
New address new site

ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666




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

2001-07-27 Thread Kyle Smith

Can everybody please send me a simple script they have made it doesnt matter what, i 
just need some material to learn from, i learn better hands on.


-legokiller666-
http://www.StupeedStudios.f2s.com
New address new site

ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666





Re: [PHP] A Basic Question!

2001-07-27 Thread Unni

Hi Hth,

I just tried two programs with the same name to display echo phpinfo(). 
One with php3 extention and another with php extention and both brings 
in php 3.0.12

Is there anything else I should check?
Thanks in advance.
-Unni

Kurt Lieber wrote:

> If it's set up according to defaults, a file named .php will be
> processed by php4 and one named .php3 will be processed by php3.
> 
> You can test this out by creating two files, one with a .php extension
> and one with a .php3 extension.  Then, just place an "echo phpInfo();"
> in the file and you'll see which version each file gets processed by.
> 
> hth
> 
> --kurt
> 
>> -Original Message-
>> From: Unni [mailto:[EMAIL PROTECTED]] 
>> Sent: Friday, July 27, 2001 8:58 AM
>> To: Php (E-mail) (E-mail)
>> Subject: [PHP] A Basic Question!
>> 
>> 
>> Hello,
>> 
>> This is a very basic question. My server admin said, the PHP is 
>> available in the server to use it. PHP3 available in the 
>> server and PHP4 
>> is available as CGI-Wrapper. Now my question is, how can I 
>> make use of 
>> PHP4 over riding PHP3?
>> 
>> Thanks.
>> -Unni
>> 
>> 
>> -- 
>> 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] Site Statistics, like the Counter.com

2001-07-27 Thread John Monfort


Hello everyone,

I'm looking for a PHP/MySQL script that keeps traffic stats, similar to
what the Counter.com script offers.

Do you know where I can one that offer the following features?

 The ideal script would:

  -track user domain and IP
  -track page viewed
  -provide a graphical display of site traffic by day,week, month, and/or
   year.
  -track Top Referrers
  -track user platform and browsers
  -Track Search Engines
  -Banner tracking (?)
  -password protected
  -track screen depth and resolution
  -track download documents
  -etc...

 If you know of any script that has, or is relative close to having, these
 features, then please let me know.

 Thanks in advance!


__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-



-- 
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] Payflow Pro Problems

2001-07-27 Thread Brandon Orther

Hello,
 
I am trying to get the Payflow pro library compiled with PHP and am
having any problems.  When I compile it without shared it gives me a -8
error or SSL connection error.  If I try to compile it with shared it
gives me undefined function error.  Anyone have an helpful tips?
Thank you,


Brandon Orther
WebIntellects Design/Development Manager
[EMAIL PROTECTED]
800-994-6364
www.webintellects.com
  
 



RE: [PHP] A Basic Question!

2001-07-27 Thread Kurt Lieber

If it's set up according to defaults, a file named .php will be
processed by php4 and one named .php3 will be processed by php3.

You can test this out by creating two files, one with a .php extension
and one with a .php3 extension.  Then, just place an "echo phpInfo();"
in the file and you'll see which version each file gets processed by.

hth

--kurt

> -Original Message-
> From: Unni [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, July 27, 2001 8:58 AM
> To: Php (E-mail) (E-mail)
> Subject: [PHP] A Basic Question!
> 
> 
> Hello,
> 
> This is a very basic question. My server admin said, the PHP is 
> available in the server to use it. PHP3 available in the 
> server and PHP4 
> is available as CGI-Wrapper. Now my question is, how can I 
> make use of 
> PHP4 over riding PHP3?
> 
> Thanks.
> -Unni
> 
> 
> -- 
> 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]




Re: [PHP] flat file from ?

2001-07-27 Thread Sheridan Saint-Michel

Check the fwrite function.  There are a couple of examples of writing
flat files there.

http://www.php.net/manual/en/function.fwrite.php

Sheridan Saint-Michel
Website Administrator
FoxJet, an ITW Company
www.foxjet.com


- Original Message - 
From: Gary <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 27, 2001 11:56 AM
Subject: [PHP] flat file from ?


> Hello All,
>   I am still kinda new to php. I know how to write/create a flat file but
> how would I write to a flat file from a form object ?
> 
> TIA
> Gary
> 
> 
> 
> -- 
> 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]




Re: [PHP] flat file from ?

2001-07-27 Thread Unni

Textarea is also a veriable


Write a the file with $textVar value thats it.

Gary wrote:

> Hello All,
>   I am still kinda new to php. I know how to write/create a flat file but
> how would I write to a flat file from a form object ?
> 
> TIA
> Gary
> 
> 
> 


-- 
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] A Basic Question!

2001-07-27 Thread Unni

Hello,

This is a very basic question. My server admin said, the PHP is 
available in the server to use it. PHP3 available in the server and PHP4 
is available as CGI-Wrapper. Now my question is, how can I make use of 
PHP4 over riding PHP3?

Thanks.
-Unni


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] MySQL big table process

2001-07-27 Thread Unni

Try LIMIT in the select

Plamen Slavov wrote:

> Hi guys,
> I have a big MySQL table - about 300MB
> I want to get all the records from the table, make certain transformations and write 
>them to a text file (i can not use "select into outfile...)
> the problem is when i type "select * from " the server hangs 
> is there a way that i can select 1 record at a time or something similar, which 
>would not put so much pressure on the server, but i still will get every record from 
>the table
> Thanks
> --
> Visit our site at http://eshop.bg
> 
> 
> 


-- 
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] flat file from ?

2001-07-27 Thread Gary

Hello All,
  I am still kinda new to php. I know how to write/create a flat file but
how would I write to a flat file from a form object ?

TIA
Gary



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] my php script is very slow. help?

2001-07-27 Thread Unni

If you are using DB queries a lot, try to use LIMIT, this will save lot 
of your time.

Tom Carter wrote:

> Do you have many DB queries? What is the average size of the result
> returned?
> 
> have you tried running timing functions on it to get a measure of how long
> the page is taking? theres many examples on the web..
> 
> You can also use these to calculate the time for different sections.. that
> should help you work out what is taking the time.
> 
> HTH,Tom
> 
>> 
>> Hi all
>> 
>> I have Linux/PHP/MySQL. Some of my script really run
>> very slowly. painfully slow. All data are fetched from
>> the database. The tables in database are indexed.
>> Still  some scripts are very slow. I am using nested
>> while and for loops. Any idea how to make them faster?
>> 
>> What should I avoid in my scripting?
>> 
>> thanks all
>> 
>> 
>> Do You Yahoo!?
>> Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
>> or your free @yahoo.ie address at http://mail.yahoo.ie
>> 
>> --
>> 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]




RE: [PHP] e-mail confirmation #76215525

2001-07-27 Thread Michael Geier, CDM Systems Admin

hahahaha...

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 27, 2001 9:51 AM
To: [EMAIL PROTECTED]
Subject: [PHP] e-mail confirmation #76215525


This is a confirmation e-mail for your request.

You can come anytime and claim your FREE Sex Toys at
http://www.freevibrator.com

All Free Sex Toys we feature are absolutly free with no purchase necessary
whatsoever.
(Small reasonable shipping charges apply)


Thank You for subscribing to FreeSexToys updates list.
This Is OPT-IN list.
To make sure that we won't send anything to you in ERROR - You HAVE TO
CONFIRM that you would like to be added to our list.

To confirm that you want to be added send e-mail to: [EMAIL PROTECTED]

If you received this e-mail in error (my apologies) or do not wish to be
added to our list DO NOTHING. You will NOT be added to our list without Your
Confirmation.

Freely Yours
Julie Aston

[EMAIL PROTECTED]
message confirmation ID#1312076215525118128826213

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




Re: [PHP] successful error?

2001-07-27 Thread Jon Yaggie


okay another one we never discussed.  what is this?
/image_blu2.jpg

is this an element?  i rememeber only discussing

$timage
$logo
$button
$textmenu


so what are the other ones

and if you wanted to include addition elements why not tell me before.  i
asked you to list ALL possible elements for a reason  .. .

Thank You,

Jon Yaggie
www.design-monster.com

And they were singing . . .

'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code

101 little bugs in the code . . .'

And it continued until they reached 0


- Original Message -
From: "Jon Yaggie" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 27, 2001 9:57 PM
Subject: [PHP] successful error?



okay i just got this error.  what doe sit mean

Warning: file("") - Success in /var/www/html/login/login.php on line 45

the lines of code involved are

 $filename = "log/userdb.txt".
 $list = file($filename);


Thank You,

Jon Yaggie
www.design-monster.com

And they were singing . . .

'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code

101 little bugs in the code . . .'

And it continued until they reached 0





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] my php script is very slow. help?

2001-07-27 Thread Matthew Loff


If you're only doing one DB query per page, then the query is probably
what's taking the longest.

Log into mysql, and execute EXPLAIN SELECT ...  ... It'll
tell you how MySQL plans on performing the query across the rows of the
table(s).  You can use the information it provides to optimize your
tables and/or indicies.

See this section of the MySQL manual for more info:

http://www.mysql.com/doc/E/X/EXPLAIN.html


-Original Message-
From: Tom Carter [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 27, 2001 6:48 AM
To: hassan xaaji; [EMAIL PROTECTED]
Subject: Re: [PHP] my php script is very slow. help?



Do you have many DB queries? What is the average size of the result
returned?

have you tried running timing functions on it to get a measure of how
long the page is taking? theres many examples on the web..

You can also use these to calculate the time for different sections..
that should help you work out what is taking the time.

HTH,Tom

>
>
> Hi all
>
> I have Linux/PHP/MySQL. Some of my script really run
> very slowly. painfully slow. All data are fetched from
> the database. The tables in database are indexed.
> Still  some scripts are very slow. I am using nested
> while and for loops. Any idea how to make them faster?
>
> What should I avoid in my scripting?
>
> thanks all
>
> 
> Do You Yahoo!?
> Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your 
> free @yahoo.ie address at http://mail.yahoo.ie
>
> --
> 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]




RE: [PHP] Re: File Upload Size Limits

2001-07-27 Thread Michael Conley

I increased apache to 60 seconds, but it still fails.  it doesn't actually
go for 60 seconds.  It's more like 10 seconds before it fails.  Any idea
where I would allow Apache to deal with a larger POST?  

-Original Message-
From: bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 27, 2001 7:27 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: File Upload Size Limits


I think you need to check your Apache time limits too.

Michael Conley wrote:

> I am running PHP 4.0pl1 with Apache 1.3.14 on RedHat Linux 7.1.  I am
trying
> to do a file upload from the users PC to my web server.  If I do a small
> file, the transfer goes fine.  If I do a large file (> 50 MB), the
transfer
> fails saying either the file was not available for reading or my script
just
> bombs out.  I need to be able to have people upload large files.  I have
> changed the setting in php.ini to upload_max_filesize = 100M.
>
> Do I also need to change the following entries in php.ini?
> max_execution_time = 60
> memory_limit = 8M
>
> Is this an apache limit?  I'm not sure what to do with this as I really
need
> to be able to transfer large files.


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

2001-07-27 Thread ROsen

Hi,
can someone help me to secure Phorum on internet server ?

Thanks,
Rosen



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Grabbing data up to \n

2001-07-27 Thread Wagner Tomy

$data = file("myfile");

$data = array of the lines from myfile ( they still contain the newline
character )

Wagner Tomy
Editus Luxembourg S.A.

- Original Message -
From: "Jeff Lewis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 27, 2001 5:14 PM
Subject: [PHP] Grabbing data up to \n


I am grabbing lines of a file using:

$buffer = fgets($fd, 4096);

How can I grab the line up to \n or does this do it?  Like if the line is
only a few characters, it will only grab up to \n?

And if the line up to the \n is a huge message will I still be able to grab
all of it with the 4096?

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]




[PHP] Grabbing data up to \n

2001-07-27 Thread Jeff Lewis

I am grabbing lines of a file using:

$buffer = fgets($fd, 4096);

How can I grab the line up to \n or does this do it?  Like if the line is only a few 
characters, it will only grab up to \n?

And if the line up to the \n is a huge message will I still be able to grab all of it 
with the 4096?

Jeff



[PHP] successful error?

2001-07-27 Thread Jon Yaggie


okay i just got this error.  what doe sit mean

Warning: file("") - Success in /var/www/html/login/login.php on line 45

the lines of code involved are

 $filename = "log/userdb.txt".
 $list = file($filename);


Thank You,
 
Jon Yaggie
www.design-monster.com
 
And they were singing . . . 
 
'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code
 
101 little bugs in the code . . .'
 
And it continued until they reached 0





[PHP] e-mail confirmation #76215525

2001-07-27 Thread julie15525

This is a confirmation e-mail for your request.

You can come anytime and claim your FREE Sex Toys at
http://www.freevibrator.com

All Free Sex Toys we feature are absolutly free with no purchase necessary whatsoever.
(Small reasonable shipping charges apply)


Thank You for subscribing to FreeSexToys updates list.
This Is OPT-IN list.
To make sure that we won't send anything to you in ERROR - You HAVE TO CONFIRM that 
you would like to be added to our list.

To confirm that you want to be added send e-mail to: [EMAIL PROTECTED]

If you received this e-mail in error (my apologies) or do not wish to be added to our 
list DO NOTHING. You will NOT be added to our list without Your Confirmation.

Freely Yours
Julie Aston

[EMAIL PROTECTED]
message confirmation ID#1312076215525118128826213

-- 
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] OK............... Yell!~

2001-07-27 Thread Nicole4Av1611

Hello,

I am new at all this. Please help!

I am using PHP4 on windows 98, Apache, MySql server.
Apache is working fine. However when I try to view the phpinfo test page 
nothing happens.
Should I put it in the Apache docs file??(thats were it is)
Is it better to configure PHP for Apache as a script alias or a module??
I added it as a script alias.
Should I save the phpinfo as a .php or .html file??
This one may the the stupidest (if that's a word lol) question of all 
drum roll please DO you have to manually 
start PHP like I do Apache and MySQL for it to work?

Thnx bunches, sorry if you all have answered these questions a 100xs! 
 %)

The Crazy Blonde,
Nicole~

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Moving a PHP/MySQL web site ???

2001-07-27 Thread Plamen Slavov

I think that as far as you have the same version of MySQL on both servers, you can 
simply copy the table files, otherwise you should use mysqldump or something like that
- Original Message - 
From: "PHP Junkie" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday 27 July 2001 ?. 5:21 PM
Subject: [PHP] Moving a PHP/MySQL web site ???


Hi 

I will be having to face the dubious task of moving my PHP/MySQL-based website to 
another server.  Can anyone out there point me to some "GOOD" documentation on this?  
The .php files I'm not as concerned about.  I've been using the $DOCUMENT_ROOT in all 
of my includes.  I'm more concerned about getting the MySQL databases ( actual files 
??? ) moved over correctly.

I know this isn't a MySQL list, but I thought that enough of you out there work with 
PHP/MySQL enough to get some good feedback.  I'd also like to hear feedback on just 
your general experience with the process of moving from one web server over to 
another.

Thanks all -- --

Gene Kelley
BizFlow Data Solutions
http://www.bizflowdata.net/



__
Your favorite stores, helpful shopping tools and great gift ideas. Experience the 
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at 
http://webmail.netscape.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]





[PHP] Re: Frames, Sessions & Search Engines

2001-07-27 Thread Inércia Sensorial

  Search Engines, usually, do not see individual frames. Not even Google,
the (IMHO) best and largest one, do not.

  For example, if one page link to page.php and this page uses frames, and
the search engine robot crawls to page.php, it will not index the individual
frames.

  You can, however, especify a  tag, or similar, I might be wrong
on the wording, to generate some text, link or image for agents that can not
see frames. On it, you might put some kind of link to a non-frame page.

  But on your specific question, might be useful to ereg() the
$HTTP_REFERER, and if it does not find a browser, you can header(); to some
place. I say ereg() the browsers because they exist in less numbers than
search engines... It might be a little difficult to find them all, but I
guess it is worth, if you go for this direction. Might exist 20 or 30
browsers anyway... (browscap.ini is helpful to find out).

  If you do not go for this solution, just remember most (almost all) search
engines will not index the individual frames on your document.

--

  Julio Nobrega.

2B||!BB - That's the question.

"Jeroen Geusebroek" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi there,

I have a question about how Search Engines handle sessions and frames.

Since my site uses frames, and i think search engines link to pages
individualy and not the
frameset, i wanted to use sessions to indicate if a user comes from a
search engine (then
it doesn't have a valid session) and if so just redirect the user to the
main page.

But i'm afraid that search engines will get redirected to the main page
everytime it try's to index
a page. What do you all think, and might there be another solution?

Thanks,

Jeroen Geusebroek

P.S. Please CC me in your reply, i'm not a member of the list.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Moving a PHP/MySQL web site ???

2001-07-27 Thread Tim

You can just use mysqldump to copy the contents of the database to a
file, and it will be easy to re-create it on the new site.

- Tim
  http://www.phptemplates.org

> I will be having to face the dubious task of moving my PHP/MySQL-based website to 
>another server.  Can anyone out there point me to some "GOOD" documentation on this?  
>The .php files I'm not as concerned about.  I've been using the $DOCUMENT_ROOT in all 
>of my includes.  I'm more concerned about getting the MySQL databases ( actual files 
>??? ) moved over correctly.



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

2001-07-27 Thread Jeremy Morano

Hi, im trying to delete a record from a table where the value of a field
must be equal to the value of a field of another table.I know
this is wrong but I need to show you what I mean. I think I'm missing a very
important select statement to join them...can anyone
help me out?


sql="Delete from table1 where table1.value = table2.value"


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] my php script is very slow. help?

2001-07-27 Thread Jack Dempsey

Be careful with any sort of nested loops. You may not be able to avoid
them, but if you nest a while loop within another while loop, and simply
iterate through results, you will have quadratic running time. This
isn't a big deal if you've got 20 results, but for every increase in N
(size of result) your running time will increase N^2. So, if you've got
a large dataset, the process time will be enormous.

Jack

-Original Message-
From: hassan xaaji [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 27, 2001 5:51 AM
To: [EMAIL PROTECTED]
Subject: [PHP] my php script is very slow. help?



Hi all

I have Linux/PHP/MySQL. Some of my script really run
very slowly. painfully slow. All data are fetched from
the database. The tables in database are indexed.
Still  some scripts are very slow. I am using nested
while and for loops. Any idea how to make them faster?

What should I avoid in my scripting?

thanks all


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

-- 
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] Re: File Upload Size Limits

2001-07-27 Thread bill

I think you need to check your Apache time limits too.

Michael Conley wrote:

> I am running PHP 4.0pl1 with Apache 1.3.14 on RedHat Linux 7.1.  I am trying
> to do a file upload from the users PC to my web server.  If I do a small
> file, the transfer goes fine.  If I do a large file (> 50 MB), the transfer
> fails saying either the file was not available for reading or my script just
> bombs out.  I need to be able to have people upload large files.  I have
> changed the setting in php.ini to upload_max_filesize = 100M.
>
> Do I also need to change the following entries in php.ini?
> max_execution_time = 60
> memory_limit = 8M
>
> Is this an apache limit?  I'm not sure what to do with this as I really need
> to be able to transfer large files.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Moving a PHP/MySQL web site ???

2001-07-27 Thread Jeff Lewis

Why don't you just dump the data and structure and then use that to import
it?  I'm sure there is something to do in telnet but I am unfamiliar :)

Jeff
- Original Message -
From: "PHP Junkie" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 27, 2001 10:21 AM
Subject: [PHP] Moving a PHP/MySQL web site ???


> Hi 
>
> I will be having to face the dubious task of moving my PHP/MySQL-based
website to another server.  Can anyone out there point me to some "GOOD"
documentation on this?  The .php files I'm not as concerned about.  I've
been using the $DOCUMENT_ROOT in all of my includes.  I'm more concerned
about getting the MySQL databases ( actual files ??? ) moved over correctly.
>
> I know this isn't a MySQL list, but I thought that enough of you out there
work with PHP/MySQL enough to get some good feedback.  I'd also like to hear
feedback on just your general experience with the process of moving from one
web server over to another.
>
> Thanks all -- --
>
> Gene Kelley
> BizFlow Data Solutions
> http://www.bizflowdata.net/
>
>
>
> __
> Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with Shop@Netscape!
http://shopnow.netscape.com/
>
> Get your own FREE, personal Netscape Mail account today at
http://webmail.netscape.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]
>
>
>


-- 
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] Moving a PHP/MySQL web site ???

2001-07-27 Thread PHP Junkie

Hi 

I will be having to face the dubious task of moving my PHP/MySQL-based website to 
another server.  Can anyone out there point me to some "GOOD" documentation on this?  
The .php files I'm not as concerned about.  I've been using the $DOCUMENT_ROOT in all 
of my includes.  I'm more concerned about getting the MySQL databases ( actual files 
??? ) moved over correctly.

I know this isn't a MySQL list, but I thought that enough of you out there work with 
PHP/MySQL enough to get some good feedback.  I'd also like to hear feedback on just 
your general experience with the process of moving from one web server over to another.

Thanks all -- --

Gene Kelley
BizFlow Data Solutions
http://www.bizflowdata.net/



__
Your favorite stores, helpful shopping tools and great gift ideas. Experience the 
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.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]




[PHP] Frames, Sessions & Search Engines

2001-07-27 Thread Jeroen Geusebroek

Hi there,

I have a question about how Search Engines handle sessions and frames.

Since my site uses frames, and i think search engines link to pages
individualy and not the
frameset, i wanted to use sessions to indicate if a user comes from a
search engine (then
it doesn't have a valid session) and if so just redirect the user to the
main page.

But i'm afraid that search engines will get redirected to the main page
everytime it try's to index
a page. What do you all think, and might there be another solution?

Thanks,

Jeroen Geusebroek

P.S. Please CC me in your reply, i'm not a member of the list.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] asp to php

2001-07-27 Thread Willie Dresler Leiva

RedHat 7.1 (Linux) has a package that converts from ASP
to PHP pages. I didn't use it, so I don't know if it
is useful neither if it is available for Windows.

Kind regards,
Willie


_
Seja avisado de novas mensagens do Hotmail e use o comunique-se com seus 
amigos com o MSN Messenger em http://messenger.msn.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]




Re: [PHP] php and javascript

2001-07-27 Thread Sheridan Saint-Michel

I am not sure exactly what you are doing, but the thing
to remember is that your PHP script is writing your HTML
and JavaScript.  As long as you keep that in mind it is
fairly easy to see how to pass variables to JS.

Here is a very simple example





var foo = "";
document.writeln(foo);




If you need something more specific post some code.

Sheridan Saint-Michel
Website Administrator
FoxJet, an ITW Company
www.foxjet.com


- Original Message -
From: Karl Phillipson <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 27, 2001 6:08 AM
Subject: [PHP] php and javascript


>
> Does anyone know how to pass php variables to a javascript for processing.
>
> I have a DHTML menu system that requires variables be attached to the url
> contained within it. Using echo does not print the variable to the url.
>
> Is there another way?
>
> Thx in advance.
>
> Karl
> ==
> Karl Phillipson
> PHP SQL Programmer
>
> Saffron Hill Ventures
> 67 Clerkenwell Road
> London
> EC1R 5BL
> ==
>
>


-- 
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] session tracking problem

2001-07-27 Thread Khuram Latif

Hi Sir,
I have a problem in session tracking,

After checking User name and password from database, I register a

session as

session_register("User_name");

For next page authentication, at the top of every page i check

if ($HTTP_SESSION_VARS["User_name"] != "")
{
// Display Page Contents
}
else
{
echo "Invalid User";
}

This code run fine in different location but not any where,
Please fix the problem.

Regards,
khuram latif


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

2001-07-27 Thread Phil Spitler

I am wondering the best way to handle error trapping with PHP.  I am
farmiliar with languages, ColdFusion being one, that you can use TRY and
CATCH statements.  Any info would be appreciated.

THANKS!

-
Phil Spitler [Vice President]
Web Hut Design, Inc.
c 704-451-1324
mailto:[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] Re: session gc question

2001-07-27 Thread Jonas Delfs

"Greg Donald" <[EMAIL PROTECTED]> skrev i en meddelelse
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

> Is is possible to set session.gc_probability manually on a per script
> basis, similar to the way error reporting is capable of being set?

Yes.
PHP have a standard function for setting things like that, but of cause I
can't remember it's name. :)

--
Mvh./Best Regards
Jonas Delfs, http://delfs.dk

"Developers are being asked to do more with less, do it faster, and make it
fit with the existing systems and databases." - IDC



-- 
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] Re: naming conventions

2001-07-27 Thread Jeremy Maziarz

Matthew,

The convention I use goes as follows:

[ I am doing this without testing as I go so if something is wrong,
don't sue me :P ]

Lets say I have two tables...

PEOPLE
people_id (primary key)
people_namefirst
people_namelast
people_namemiddle
people_age
place_id (foreign key)

PLACE
place_id (primary key)
place_name
place_address
place_numberphone
place_numberfax

What I do is use [tablename]_[fieldname]. This convention makes SELECT
statements like this easy...

SELECT people.people_id,
people.people_namefirst,
place.place_id,
place.place_address
FROM people, place
WHERE people.place_id = place.place_id
AND place.place_name = 'IBM';

Otherwise, it would be difficult to differenciate between place_id (the
foreign key for the PEOPLE table) and place_id (the primary key for the
PLACE table).

-Jeremy
Email: [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] Re: Can mysql_fetch_*() work on the resultpointer only?

2001-07-27 Thread Jonas Delfs

"Jonas Delfs" <[EMAIL PROTECTED]> skrev i en meddelelse
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

> Can mysql_fetch_*() work on the resultpointer that mysql_query() returns,
> only, or does the rows have to be in the database when fetching?
> I know that mysql_query() finds the specified data, but I'm not totally
sure
> in my theori about that mysql_query() is taking the data-result out so
that
> we're not depending on the database anymore.

I've got my theory confirmed.
How come at lot more professionals hang out at the national newgroup in our
little Denmark, than here?
(Not saying that there isn't any at all, around here)

--
Mvh./Best Regards
Jonas Delfs, http://delfs.dk

"Developers are being asked to do more with less, do it faster, and make it
fit with the existing systems and databases." - IDC



-- 
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] Re: Destroying Session

2001-07-27 Thread Jonas Delfs

"Richard Baskett" <[EMAIL PROTECTED]> skrev i en meddelelse
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

> Ok having a problem.  If a person just surfs to a page outside of my site
or
> types in a different url etc.. then it leaves the session intact.  How can
I
> destroy that session?

The garbage-collector does it automaticly.

--
Mvh./Best Regards
Jonas Delfs, http://delfs.dk

"Developers are being asked to do more with less, do it faster, and make it
fit with the existing systems and databases." - IDC



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] 2D array

2001-07-27 Thread AJDIN BRANDIC


That works OK

Thank you

Ajdin


On Fri, 27 Jul 2001, Wagner Tomy wrote:

> $my2darray = Array();
> 
> while(list($myname, $myphone, $myemail) = mysql_fetch_row($result)) {
>   $my2darray[$myname] = array($myphone, $myemail);
> }
> 
> Wagner Tomy
> Editus S.A.
> - Original Message -
> From: "AJDIN BRANDIC" <[EMAIL PROTECTED]>
> To: "Wagner Tomy" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Friday, July 27, 2001 2:34 PM
> Subject: Re: [PHP] 2D array
> 
> 
> > Wag,
> >
> > I do not wish to push whole of the row into an array.
> > Also I need the id of the parent array to be $myname;
> >
> > Ajdin
> >
> > On Fri, 27 Jul 2001, Wagner Tomy wrote:
> >
> > > $my2darray = Array();
> > >
> > > while($row = mysql_fetch_row($result)) {
> > >   array_push($my2darray, $row);
> > > }
> > >
> > > OR:
> > >
> > > for($i = 0; $i < mysql_num_rows($result); $i++) {
> > >   $row = mysql_fetch_row($result);
> > > $my2darray[$i] = $row;
> > > }
> > >
> > > Wagner Tomy
> > > Editus S.A.
> > >
> > > - Original Message -
> > > From: "AJDIN BRANDIC" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Friday, July 27, 2001 2:18 PM
> > > Subject: [PHP] 2D array
> > >
> > >
> > > > Hi
> > > >
> > > > I have been trying to do this for hours now.
> > > > I have a while loop (rows from mysql db) and on each pass I want to
> pussh
> > > > a new element into a 2D array, bot always end up with the last element
> of
> > > > the while loop.  So:
> > > >
> > > > table mytable
> > > > myname myphone myemail
> > > > john   254688  [EMAIL PROTECTED]
> > > > tom789787  [EMAIL PROTECTED]
> > > >
> > > > $myquery="select * from mytable";
> > > >
> > > > while ($myrow = mysql_fetch_array($myrows)) {
> > > >   .. .. . .  .
> > > >
> > > >   $my2darray = array ($myname => array ($myphone,$myemail));
> > > >
> > > > }
> > > >
> > > > $mycount=count(my2darray);  // returns 1
> > > >
> > > > while (list($key,$value) = each ($my2darray)) {
> > > >   echo"$key,";
> > > >   echo"$value[0]";
> > > >   echo"$value[1]";
> > > >   // retuns only one row with tom,798779,[EMAIL PROTECTED]
> > > > }
> > > >
> > > > How do I push multiple entries into a 2d array?
> > > >
> > > > I tried $my2darray[]=array(...
> > > >
> > > > Regards
> > > >
> > > > Ajdin
> > > >
> > > > --
> > > > 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]




Re: [PHP] MySQL big table process

2001-07-27 Thread Daniel Rezny

Hello Plamen,

Friday, July 27, 2001, 2:04:15 PM, you wrote:

PS> Hi guys,
PS> I have a big MySQL table - about 300MB
PS> I want to get all the records from the table, make certain transformations and 
write them to a text file (i can not use "select into outfile...)
PS> the problem is when i type "select * from " the server hangs 
PS> is there a way that i can select 1 record at a time or something similar, which 
would not put so much pressure on the server, but i still will get every record from 
the table
PS> Thanks
PS> --
PS> Visit our site at http://eshop.bg

As I understood you you want to take all datas from table. For that is
very useful command
mysqldump --database > file.sql

I hope it helps to you
-- 
Best regards,
 Danielmailto:[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]




Re: [PHP] 2D array

2001-07-27 Thread Wagner Tomy

$my2darray = Array();

while(list($myname, $myphone, $myemail) = mysql_fetch_row($result)) {
  $my2darray[$myname] = array($myphone, $myemail);
}

Wagner Tomy
Editus S.A.
- Original Message -
From: "AJDIN BRANDIC" <[EMAIL PROTECTED]>
To: "Wagner Tomy" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, July 27, 2001 2:34 PM
Subject: Re: [PHP] 2D array


> Wag,
>
> I do not wish to push whole of the row into an array.
> Also I need the id of the parent array to be $myname;
>
> Ajdin
>
> On Fri, 27 Jul 2001, Wagner Tomy wrote:
>
> > $my2darray = Array();
> >
> > while($row = mysql_fetch_row($result)) {
> >   array_push($my2darray, $row);
> > }
> >
> > OR:
> >
> > for($i = 0; $i < mysql_num_rows($result); $i++) {
> >   $row = mysql_fetch_row($result);
> > $my2darray[$i] = $row;
> > }
> >
> > Wagner Tomy
> > Editus S.A.
> >
> > - Original Message -
> > From: "AJDIN BRANDIC" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, July 27, 2001 2:18 PM
> > Subject: [PHP] 2D array
> >
> >
> > > Hi
> > >
> > > I have been trying to do this for hours now.
> > > I have a while loop (rows from mysql db) and on each pass I want to
pussh
> > > a new element into a 2D array, bot always end up with the last element
of
> > > the while loop.  So:
> > >
> > > table mytable
> > > myname myphone myemail
> > > john   254688  [EMAIL PROTECTED]
> > > tom789787  [EMAIL PROTECTED]
> > >
> > > $myquery="select * from mytable";
> > >
> > > while ($myrow = mysql_fetch_array($myrows)) {
> > >   .. .. . .  .
> > >
> > >   $my2darray = array ($myname => array ($myphone,$myemail));
> > >
> > > }
> > >
> > > $mycount=count(my2darray);  // returns 1
> > >
> > > while (list($key,$value) = each ($my2darray)) {
> > >   echo"$key,";
> > >   echo"$value[0]";
> > >   echo"$value[1]";
> > >   // retuns only one row with tom,798779,[EMAIL PROTECTED]
> > > }
> > >
> > > How do I push multiple entries into a 2d array?
> > >
> > > I tried $my2darray[]=array(...
> > >
> > > Regards
> > >
> > > Ajdin
> > >
> > > --
> > > 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]




Re: [PHP] 2D array

2001-07-27 Thread AJDIN BRANDIC

Wag,

I do not wish to push whole of the row into an array.
Also I need the id of the parent array to be $myname;

Ajdin

On Fri, 27 Jul 2001, Wagner Tomy wrote:

> $my2darray = Array();
> 
> while($row = mysql_fetch_row($result)) {
>   array_push($my2darray, $row);
> }
> 
> OR:
> 
> for($i = 0; $i < mysql_num_rows($result); $i++) {
>   $row = mysql_fetch_row($result);
> $my2darray[$i] = $row;
> }
> 
> Wagner Tomy
> Editus S.A.
> 
> - Original Message -
> From: "AJDIN BRANDIC" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, July 27, 2001 2:18 PM
> Subject: [PHP] 2D array
> 
> 
> > Hi
> >
> > I have been trying to do this for hours now.
> > I have a while loop (rows from mysql db) and on each pass I want to pussh
> > a new element into a 2D array, bot always end up with the last element of
> > the while loop.  So:
> >
> > table mytable
> > myname myphone myemail
> > john   254688  [EMAIL PROTECTED]
> > tom789787  [EMAIL PROTECTED]
> >
> > $myquery="select * from mytable";
> >
> > while ($myrow = mysql_fetch_array($myrows)) {
> >   .. .. . .  .
> >
> >   $my2darray = array ($myname => array ($myphone,$myemail));
> >
> > }
> >
> > $mycount=count(my2darray);  // returns 1
> >
> > while (list($key,$value) = each ($my2darray)) {
> >   echo"$key,";
> >   echo"$value[0]";
> >   echo"$value[1]";
> >   // retuns only one row with tom,798779,[EMAIL PROTECTED]
> > }
> >
> > How do I push multiple entries into a 2d array?
> >
> > I tried $my2darray[]=array(...
> >
> > Regards
> >
> > Ajdin
> >
> > --
> > 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] Destroying Session

2001-07-27 Thread Richard Baskett

Ok having a problem.  If a person just surfs to a page outside of my site or
types in a different url etc.. then it leaves the session intact.  How can I
destroy that session?

Will I need to create some type of apache/linux script to delete the
directory with all the sessions in it that are a certain amount of days old?
There has got to be a better way...

Any help would be appreciated.. thanks!

Rick


P.S. Thanks to the person that helped me with the POST headers.. I still
havent been able to get it to work, but I just figured out a different way
of doing what I wanted :)


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] 2D array

2001-07-27 Thread Slavomir Slizik

or:

$my2darray[] = $row;

SSL


On Fri, 27 Jul 2001, Wagner Tomy wrote:

> $my2darray = Array();
>
> while($row = mysql_fetch_row($result)) {
>   array_push($my2darray, $row);
> }
>
> OR:
>
> for($i = 0; $i < mysql_num_rows($result); $i++) {
>   $row = mysql_fetch_row($result);
> $my2darray[$i] = $row;
> }
>
> Wagner Tomy
> Editus S.A.
>
> - Original Message -
> From: "AJDIN BRANDIC" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, July 27, 2001 2:18 PM
> Subject: [PHP] 2D array
>
>
> > Hi
> >
> > I have been trying to do this for hours now.
> > I have a while loop (rows from mysql db) and on each pass I want to pussh
> > a new element into a 2D array, bot always end up with the last element of
> > the while loop.  So:
> >
> > table mytable
> > myname myphone myemail
> > john   254688  [EMAIL PROTECTED]
> > tom789787  [EMAIL PROTECTED]
> >
> > $myquery="select * from mytable";
> >
> > while ($myrow = mysql_fetch_array($myrows)) {
> >   .. .. . .  .
> >
> >   $my2darray = array ($myname => array ($myphone,$myemail));
> >
> > }
> >
> > $mycount=count(my2darray);  // returns 1
> >
> > while (list($key,$value) = each ($my2darray)) {
> >   echo"$key,";
> >   echo"$value[0]";
> >   echo"$value[1]";
> >   // retuns only one row with tom,798779,[EMAIL PROTECTED]
> > }
> >
> > How do I push multiple entries into a 2d array?
> >
> > I tried $my2darray[]=array(...
> >
> > Regards
> >
> > Ajdin
> >
> > --
> > 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]




Re: [PHP] 2D array

2001-07-27 Thread Wagner Tomy

$my2darray = Array();

while($row = mysql_fetch_row($result)) {
  array_push($my2darray, $row);
}

OR:

for($i = 0; $i < mysql_num_rows($result); $i++) {
  $row = mysql_fetch_row($result);
$my2darray[$i] = $row;
}

Wagner Tomy
Editus S.A.

- Original Message -
From: "AJDIN BRANDIC" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 27, 2001 2:18 PM
Subject: [PHP] 2D array


> Hi
>
> I have been trying to do this for hours now.
> I have a while loop (rows from mysql db) and on each pass I want to pussh
> a new element into a 2D array, bot always end up with the last element of
> the while loop.  So:
>
> table mytable
> myname myphone myemail
> john   254688  [EMAIL PROTECTED]
> tom789787  [EMAIL PROTECTED]
>
> $myquery="select * from mytable";
>
> while ($myrow = mysql_fetch_array($myrows)) {
>   .. .. . .  .
>
>   $my2darray = array ($myname => array ($myphone,$myemail));
>
> }
>
> $mycount=count(my2darray);  // returns 1
>
> while (list($key,$value) = each ($my2darray)) {
>   echo"$key,";
>   echo"$value[0]";
>   echo"$value[1]";
>   // retuns only one row with tom,798779,[EMAIL PROTECTED]
> }
>
> How do I push multiple entries into a 2d array?
>
> I tried $my2darray[]=array(...
>
> Regards
>
> Ajdin
>
> --
> 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] 2D array

2001-07-27 Thread AJDIN BRANDIC

Hi

I have been trying to do this for hours now.
I have a while loop (rows from mysql db) and on each pass I want to pussh 
a new element into a 2D array, bot always end up with the last element of 
the while loop.  So:

table mytable
myname myphone myemail
john   254688  [EMAIL PROTECTED]
tom789787  [EMAIL PROTECTED]

$myquery="select * from mytable";

while ($myrow = mysql_fetch_array($myrows)) {
  .. .. . .  .

  $my2darray = array ($myname => array ($myphone,$myemail));
  
}

$mycount=count(my2darray);  // returns 1

while (list($key,$value) = each ($my2darray)) {
  echo"$key,";
  echo"$value[0]";
  echo"$value[1]";
  // retuns only one row with tom,798779,[EMAIL PROTECTED]
}

How do I push multiple entries into a 2d array?

I tried $my2darray[]=array(...

Regards

Ajdin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] execution time

2001-07-27 Thread Wagner Tomy

http://www.php.net/manual/en/function.set-time-limit.php

the set_time_limit allows you to reset the max execution time..

the manual says:

When called, set_time_limit() restarts the timeout counter from zero. In
other words, if the timeout is the default 30 seconds, and 25 seconds into
script execution a call such as set_time_limit(20) is made, the script will
run for a total of 45 seconds before timing out.

Wagner Tomy
Editus S.A.

- Original Message -
From: "Pétur Björn Thorsteinsson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 27, 2001 2:03 PM
Subject: [PHP] execution time


>
> I have a slight problem and was wondering if anyone could help.
>
> I have a php script that runs every 30 minutes. It takes the contents of a
> directory (which is constantly being updated) and dumps them into a mysql
> database. Recently this directory has become increasingly large and the
php
> script only updates a portion of it before it stops execution.
>
> To run the php script I use a lynx command in a crontab. I'm running suse
> linux and apache on both machines (the machine containting the directory
> and the other machine containing the database).
>
> I've tried changing the max execution time in php.ini file but it appears
> to have no affect. When I took the php script and divided it into portions
> and ran them one at a time it worked (except for one portion of the
> script). the execution time of the script doesn't matter to me, I just
need
> it to run.
>
> When I run the php script through a browser, and the script doesn't
> complete, I get a 'page cannot be displayed' message (while I am expecting
> a 'fatal error, exceeded max execution time' error message).
>
> Maybe it could be fixed by using something other than lynx to run the php
> script internally, but  I don't know of any alternatives.
>
> hope someone can help..
>
>
> -petur
>
>
>
> --
> 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]




  1   2   >