[PHP] Who's having a good hosting experience these days?

2002-05-06 Thread The_RadiX

Um Justin..

Hi..

or should I say.. Hi fellow Aussie mate .. :)


Yeah I am in oz too and asked some hosting questions a while back..

Your host has only 2GB downloads on the UNIX plan and also that's at US$15
p/m.. isnt that a tad pricey?


I was looking into powweb.com or aletia.com at much cheaper pricing and
larger services (200mb storage, 10/12Gb p/m,etc)



What do you think of these..



Thanks...
:::
:  Julien Bonastre [The-Spectrum.org CEO]
:  A.K.A. The_RadiX
:  [EMAIL PROTECTED]
:  ABN: 64 235 749 494
:  QUT Student #: 04475739
:::
- Original Message -
From: "Justin French" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 06, 2002 10:22 AM
Subject: Re: [PHP] Who's having a good hosting experience these days?


> Cheap?
> I've been with experthost.com for around 8 months, with very little to
> complain about... I've got a reseller account with about 12 domains, so
i'm
> paying around US$6each, and I think the standard is US$15each for one,
$10ea
> for two, and then a sliding scale up to 25 domains @ $5ea or something.
>
> It *shouldn't* be about the money, but I'm currently making a healthy
profit
> out of hosting some client domains under my account.
>
>
> Reliable?
> They have intelligent support staff on 24/7, and they've had one service
> fallout in this time.  It was a biggie, and I had to reload some data from
> my local copy, but I'd like to believe this was a one-off.
>
>
> Fast?
> The service seems fast (although I'm in Australia, so pings times are
> affected by sheer distance).
>
>
> Feature Rich?
> 50meg, 20POPs, redirects, groups, auto-responders, 2GB bandwidth, MySQL,
> webmail, recent versions of Apache/MySQL/PHP, intelligent support staff,
etc
> etc.
>
>
> I'm pretty happy.  Better still, they offer a free 1 month test account,
so
> you can try them for yourself.
>
>
> Justin French
> 
> Creative Director
> http://Indent.com.au
> 
>
>
>
>
>
> on 06/05/02 9:19 AM, David Freeman ([EMAIL PROTECTED]) wrote:
>
> >
> >> My hosting service which WAS cool about 2 years ago has
> >> grown into a bloated mess of zero logic.
> >
> > Fast, Reliable, Cheap, Feature-Rich
> >
> > Now pick any three.
> >
> > In the end I guess you get what you pay for.  If you can only afford a
> > lower price host then you only get lower value.
> >
> > CYA, Dave
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


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




Re: [PHP] Secure user authentication

2002-05-06 Thread Pedro Pontes

I wasn't in fact aware of that domain test thingie. So my main worry is no
more.

Thank you guys.

--


Pedro Alberto Pontes

"The_radix" <[EMAIL PROTECTED]> wrote in message
004c01c1f348$2db81c40$3200a8c0@oracle">news:004c01c1f348$2db81c40$3200a8c0@oracle...
> Pedro Pontes wrote:
> > with a SIMPLE "equals" test. So if a user happens to get that crypted
> value
> > of the password (from a temporary file on the server, for example), then
> all
> > the little devil has to do is to create a dummy session user object, or
in
> > your case, array, set its password value to the stolen crypted hash and
> then
> > link freely to any of your pages.
>
>
> well simply put? no..
>
> If a user can get the crypted value off your server, AND also figure how
to
> trick the PHP engine into accepting a session cookie that wasn't created
on
> your domain, then that would be either:
> a) you have dangerous and volatile PHP scripts that allow users to perform
> such nasty tricks
> b) your server security should be greatly improved..
>
>
> Jon Haworth wrote:
> > Why are you passing the password around, hashed or not, in the first
> place?
> > Just have a yes/no flag for whether the session is an authenticated user
> or
> > not.
>
> > Is there any particular reason why you'd need to reauthenticate on every
> > page?
>
> yes.. too true.. and simply put.. I could just pass the key or something
> around instead and then in my PHP header that runs on each and every page
> just reload a array with all the details anyway.. instead of passing
around
> the array..
>
> oh and as for "reauthenticating" well that's done because.. well stupid
> really when you think of it.. Unless they breach PHP as mentioned above,
and
> trick the session system, then there is little need to keep auth'ing
them..
>
>
> Haha.. Actually I just looked at my code.. Sorry I was mistaken.. due to
the
> complexity of my site. it doesn't actually "reauth" as such.. instead it
> checks to see the "status" of the user and does some log updates.. (to
keep
> track of user's still online etc..) ... when I say status.. I mean if I
> ban/block users while logged in.. the changes happen AS SOON as they view
> another page on the site and they get a lovely page telling them of their
> predicament :)
>
>
>
> Anywayz.. very interesting topic.. I will keep an eye on this..
>
>
> Miguel says:
> > This would only work if some other user is able to create files that the
> > web server thinks are part of your domain (since the session cookies are
> > domain-specific). Sounds to me like your problem here is severe server
> > misconfiguration. If your server environment is that insecure, then
> > worrying about anything else is sort of a waste of time.
>
> Yes.. Too true..
>
>
> Michael Kismal says:
> > What I can't figure out is why you're allowing people to just randomly
> > put pages on your server.  If someone was to randomly register a similar
> > user object, etc - why bother?  If I can put pages on your server and
> > execute them, I'd do some something far more malicious than just pretend
> > I'm "user X".
>
>
> Precisely what I am getting at too..
>
>
> Yes the general opinion seems to be: "If someone can get the session
handler
> of the PHP engine tricked so easily, or gain access so easily to your
> site... Then you'd better look into that WAY before you start picking on
> authentication schemes"..
>
>
> No harm intended ok.. Just pointing out some facts..
>
>
> Hope I can help.. Would love to demonstate some ideas/etc.. about how I do
> security stuff..
>
>
>
> Bye
> :::
> :  Julien Bonastre [The-Spectrum.org CEO]
> :  A.K.A. The_RadiX
> :  [EMAIL PROTECTED]
> :  ABN: 64 235 749 494
> :  QUT Student :: 04475739
> :::
> - Original Message -
> From: "Pedro Pontes" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, May 04, 2002 12:33 AM
> Subject: Re: [PHP] Secure user authentication
>
>
> > First of all, thank you for your devote answer.
> >
> > The method I was thinking about before was to pass the md5 hash of the
> > password around, as the passwords are already md5'ed in the DB. Your
> method
> > seems more secure as you use a totally spiced-up and personalized
> encryption
> > engine.
> >
> > But, the main question remains, I think. If you pass your crypted
password
> > around, then, in each page, you must check it agains't the database
entry
> > with a SIMPLE "equals" test. So if a user happens to get that crypted
> value
> > of the password (from a temporary file on the server, for example), then
> all
> > the little devil has to do is to create a dummy session user object, or
in
> > your case, array, set its password value to the stolen crypted hash and
> then
> > link freely to any of your pages.
> >
> > Am I right? Thanks again.
> >
> > --
> >
> >
> > Pedro Alberto Pontes
> >
> > "The_radix" <[EMAIL PROTECTED]> wrote in message
> > 003601c1f2aa$6120dbb0$f86086c

Re: [PHP] Newbie needs compile

2002-05-06 Thread Miguel Cruz

On Mon, 6 May 2002, Julian wrote:
> I didn't think that PHP could run w/o one though, so my idea was to use a
> text browser, have it run the script, then exit out.  As I said, I was
> probably wrong ;)

Build the CGI version of PHP and you can run it from the command line like 
any other interpreter.

miguel


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




[PHP] Zend - Studio, Encoder, Optimiser...

2002-05-06 Thread Brian McGarvie

I am writing several php applications wich demand speed & security.

I'm just looking for some reassurances from some ppl that might be using
the ZEND products to deliver this.

Is the speed increase using the optimiser noticable?

How well does the Encoder work?

I will be trying them out today (the encoder neway), and Studio.

Any comments would be appreciated by ppl who use it on any medium to
large-scale deployment...

Cheers,

   Brian...

===
  Brian M McGarvie,
Web Appications Co-ordinator/Consultant
===
[ www.mcgarvie.net | www.lennox-mckinlay.co.uk]
===

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




[PHP] Constructing a tree with recursion

2002-05-06 Thread Sasa Velickovic

Hi all,

ok, here is my problem.

I have a table in my db which is like this:

id  nameparent_id
1   menu1   0
2   menu2   0
3   menu3   0
4   menu4   0
5   sub11
6   sub22
7   sub33
8   sub46
9   sub57
10  sub69


which would be a tree like this (well, not actually a tree, more like a couple 
of linear linear lists starting from a point where parent_id == 0):

menu1 -> sub1
menu2 -> sub2 -> sub4
menu3 -> sub3 -> sub5 -> sub6
menu4

or something like this :)

The table always has less than 200 rows, so I just go right ahead an read all 
values into my array $categories. So now everything is let's say in:
$categories['id']
$categories['name'] and
$categories['parent_id']

I now make my $tree array and push every array from categories on it if it 
meets $categories['parent_id'] == 0 to start with


for ($i=0; $i < count($categories); $i++)
{
  if ($categories['parent_id'] == 0)
$tree[] = $categories[$i];
}

Now comes the hard part where help would be appreciated. How do I recursively 
run through $categories and add all the subs to the right $tree?

If you have any ideas I would be very glad.

Sasa Velickovic
http://www.hexatex.de

PS: I don't look for a nested sets algo to recursively select the right 
datasets from the database ...



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




RE: [PHP] Newbie needs compile

2002-05-06 Thread John Holmes

> > He did say he did /not/ want to invoke it from a browser :)
> I didn't think that PHP could run w/o one though, so my idea was to
use a
> text browser, have it run the script, then exit out.  As I said, I was
> probably wrong ;)

Actually, that's exactly how it's typically done, using wget or lynx.
Yes, you can compile a standalone version of PHP and use it directly,
but most hosts do not have that. So, you add a line to your cron file
that calls up your PHP script through lynx. Your script shouldn't return
anything, just do what it has to do, or it should redirect output to a
file or email. You can use the -dump switch for lynx to dump any output
that does occur.

I know he said he did not want to invoke it from a browser, but I think
he meant that he didn't want to have to physically go to and load up the
page himself.

---John Holmes...


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




Re: [PHP] Newbie needs compile

2002-05-06 Thread Sogno Kahlenberg

Hi Miguel,

It IS the CGI version. You mean I can

~~/php4/php /cgi-bin/cmanage/reindex.php

to run it? Any other key points? Thanx.


"Miguel Cruz" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Mon, 6 May 2002, Julian wrote:
> > I didn't think that PHP could run w/o one though, so my idea was to use
a
> > text browser, have it run the script, then exit out.  As I said, I was
> > probably wrong ;)
>
> Build the CGI version of PHP and you can run it from the command line like
> any other interpreter.
>
> miguel
>



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




[PHP] Question about fsockopen

2002-05-06 Thread Luc Saint-Elie

Hello

I use a class to parse a RSS feed, my problem is that when the distant site 
is down my own site is stuck (because my class waits for an answer that 
doesn't come..)
The logical answer is to use a fsockopen before to control the connection.
Reading the doc I see :
int fsockopen ( string hostname, int port [, int errno [, string errstr [, 
float timeout]]])

fsockopen allows to control if the hostname is up and running

My problem is that hostname returns the home page that is in HTML, the page 
that I want is a php page.

HTML page are not often down (only when all the server is down) php pages 
are often down (because mySQL problem or PHP problems)

So I'd like to be able to control if a specific url is OK and not only the 
hostname.

How can I do that ?

Thanks in advance

Luc


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




[PHP] Re: Zend - Studio, Encoder, Optimiser...

2002-05-06 Thread Henrik Hansen

[EMAIL PROTECTED] (Brian McGarvie) wrote:

 > I am writing several php applications wich demand speed & security.
>
 > I'm just looking for some reassurances from some ppl that might be using
 > the ZEND products to deliver this.
>
 > Is the speed increase using the optimiser noticable?
>
 > How well does the Encoder work?

for this part I can say it works very well, you just encode your code
with the command line encoder, upload it to wherever and it runs
(if the zend optimizer is running) and the code is very unreadable.

-- 
Henrik Hansen

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




[PHP] phpMyAdmin Question

2002-05-06 Thread Scott Reismanis

Hey all,
 
This question is mainly mySQL related however I believe the problem
maybe caused by phpMyAdmin which is why I am posting it here. Anyhow
does mySQL tables allow for a mix of char / varchar columns? Because if
I try to create a table in phpMyAdmin for example:
 
CREATE TABLE generic (
  title char(20) NOT NULL,
  title_alternate varchar(40) NOT NULL
) TYPE=MyISAM;
 
it will always be stored as:
 
CREATE TABLE generic (
  title varchar(20) NOT NULL,
  title_alternate varchar(40) NOT NULL
) TYPE=MyISAM;
 
and I am unable to force it to char. The only reason why this is a
problem is char columns are quicker to process thus it would be ideal to
mix such columns rather than be forced to create another table for
example,
 
Thanks for your time,
 
Scott Reismanis
 
 
 



[PHP] Confirm Remote File exists !

2002-05-06 Thread John Fishworld

I've got a form where people can enter a link into !

What's the best and quickest way of confirming if the link exists !
Just use fpassthru and see if you get an error ?
Or has anyone got any better suggestions ??



Regards
John



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




[PHP] Defining PHP varibles from URL

2002-05-06 Thread webmaster



I don't mean to be a pain but could someone send me 
a working example?
 
I am what you would probably call a 
'newbie'
 
For those who don't know here is my previous 
message
 
 can't seem to define a varible from the url 
entered into a browser.
 
I wish to use the following code or something like 
it.

="php">

$file = "";
//the above is defined from the url

include "$file";

It could be what I was typing in the url bar. file.php?file=foobar.inc   Thanks, JJ Harrison[EMAIL PROTECTED]www.tececo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] phpMyAdmin Question


http://www.mysql.com/documentation/mysql/bychapter/manual_Reference.html#Sil
ent_column_changes

---John Holmes...

- Original Message -
From: "Scott Reismanis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 06, 2002 4:58 AM
Subject: [PHP] phpMyAdmin Question


> Hey all,
>
> This question is mainly mySQL related however I believe the problem
> maybe caused by phpMyAdmin which is why I am posting it here. Anyhow
> does mySQL tables allow for a mix of char / varchar columns? Because if
> I try to create a table in phpMyAdmin for example:
>
> CREATE TABLE generic (
>   title char(20) NOT NULL,
>   title_alternate varchar(40) NOT NULL
> ) TYPE=MyISAM;
>
> it will always be stored as:
>
> CREATE TABLE generic (
>   title varchar(20) NOT NULL,
>   title_alternate varchar(40) NOT NULL
> ) TYPE=MyISAM;
>
> and I am unable to force it to char. The only reason why this is a
> problem is char columns are quicker to process thus it would be ideal to
> mix such columns rather than be forced to create another table for
> example,
>
> Thanks for your time,
>
> Scott Reismanis
>
>
>
>


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




Re: [PHP] Defining PHP varibles from URL


The way you're doing it now, you're first ERASING whatever value passed from
the URL, with

$file="";

and then trying to use it...

If this ' $file="" '  is some declaration attempt, just drop it, you don't
need to declare variables in PHP. Just check if $file has a value and then
use it.

For example,

if ($file != "")
include($file);

Hope it helps.


--


Pedro Alberto Pontes
<[EMAIL PROTECTED]> wrote in message
009501c1f4e0$636d3e80$0100a8c0@JohnH">news:009501c1f4e0$636d3e80$0100a8c0@JohnH...
I don't mean to be a pain but could someone send me a working example?

I am what you would probably call a 'newbie'

For those who don't know here is my previous message

 can't seem to define a varible from the url entered into a browser.

I wish to use the following code or something like it.

$file = "";
//the above is defined from the url
include "$file";

It could be what I was typing in the url bar.
file.php?file=foobar.inc

Thanks,
JJ Harrison
[EMAIL PROTECTED]
www.tececo.com



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




Re: [PHP] Defining PHP varibles from URL


I would advise against doing that unless you really know what your doing. Doing it 
that way will allow anyone to type in any file on your server that PHP has access to 
and load it, or possibly load a file off of another server.

That said, if you have a url like page.php?file=foo.inc

Then that value will be present in $_GET["file"] (PHP 4.1+) or $HTTP_GET_VARS["file"] 
(PHP <4.1)

include($_GET["file"]);
include($HTTP_GET_VARS["file"]);

---John Holmes...
  - Original Message - 
  From: [EMAIL PROTECTED] 
  To: 
[EMAIL PROTECTED] 
  Sent: Monday, May 06, 2002 5:28 AM
  Subject: [PHP] Defining PHP varibles from URL


  I don't mean to be a pain but could someone send me a working example?

  I am what you would probably call a 'newbie'

  For those who don't know here is my previous message

   can't seem to define a varible from the url entered into a browser. 

  I wish to use the following code or something like it.
  

  $file = "";
  //the above is defined from the url


  include "$file";



  

  It could be what I was typing in the url bar.

  file.php?file=foobar.inc



  Thanks,

  JJ Harrison
  [EMAIL PROTECTED]
  www.tececo.com



--


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



Re: [PHP] Defining PHP varibles from URL


On Monday 06 May 2002 17:28, [EMAIL PROTECTED] wrote:
> I don't mean to be a pain but could someone send me a working example?
>
> I am what you would probably call a 'newbie'
>
> For those who don't know here is my previous message

Didn't you read the numerous replies to your first posting?

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
Paranoid Club meeting this Friday.  Now ... just try to find out where!
*/

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




[PHP] Re: mail function


You can add further variables to the end of your current mail() function to
specify the name of who its from, and the email address that they will send
the message to when they use the reply function on their email program, like
this:

mail("[EMAIL PROTECTED]", "My Subject", "Line 1\nLine 2\nLine 3",
"From:Your Name\nReply-To: [EMAIL PROTECTED]");

"Diana Castillo" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi, if I use the mail function, as in :
> mail("[EMAIL PROTECTED]", "My Subject", "Line 1\nLine 2\nLine 3");
> The mail comes from "Webserver"  How can I change the from ?
>
>
>
>



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




Re: [PHP] Re: mail function


On Monday 06 May 2002 06:31, Matthew Ward wrote:
> You can add further variables to the end of your current mail() function to
> specify the name of who its from, and the email address that they will send
> the message to when they use the reply function on their email program,
> like this:
>
> mail("[EMAIL PROTECTED]", "My Subject", "Line 1\nLine 2\nLine 3",
> "From:Your Name\nReply-To: [EMAIL PROTECTED]");

Mail headers should be separated by "\r\n".

  http://cr.yp.to/immhf/header.html

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
How many "coming men" has one known!  Where on earth do they all go to?
-- Sir Arthur Wing Pinero
*/

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




Re: [PHP] Re: PHP and SOAP


[EMAIL PROTECTED] (Cédric veilleux) wrote in
[EMAIL PROTECTED]:">news:[EMAIL PROTECTED]: 

> Udo,
> 
> Could you point us to the SOAP classes you've come accross? I
> am in  the same 
> situation as you are but haven't found much yet. There is indeed a
> SOAP server class from Manuel available at phpclasses.org, this is the
> first one I've seen. I haven't found a SOAP client class yet.

Some links I've found:

http://dietrich.ganx4.com/nusoap/
http://www.phpclasses.org/browse.html/package/251
http://sourceforge.net/projects/phpxmlp/
http://pear.php.net/
http://aspn.activestate.com/ASPN/WebServices/SWSAPI/phptut

http://www.gigaideas.com.cn/phpsoap/
  or, since the server is currently down, try:
http://web.archive.org/http://www.gigaideas.com.cn/phpsoap/

It's a bit difficult for me choosing the right one to start with. In Delphi 
it's easy to create a SOAP server but with PHP it seems a lot of hand work. 
What I need is like declaring the published functions and the SOAP 
implementation creates the WSDL and everything for me or vice-vers: create 
the needed PHP code from a WSDL.


> 
> The lack of SOAP implementations in PHP made me think that I'd
> better 
> use 
> XMLRPC instead, which is a similar protocol that has been around
> longer. There is a PHP extension available for XMLRPC
> 
> http://www.php.net/manual/en/ref.xmlrpc.php
 
What are the differences to SOAP?


-- 
Udo Giacomozzi - [EMAIL PROTECTED]
www.nova-sys.net - www.guweb.com
The disadvantage of intelligence is that one 
is constantly obliged to go on learning.

Posted by ELKNews 1.0.4-B
Empower your News Reader! http://www.atozedsoftware.com

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




RE: [PHP] Defining PHP varibles from URL



-Original Message-
I don't mean to be a pain but could someone send me a working example?
-Original Message-

This was replied to already by me and others.  Didn't you read the
replies?

In any event, here's what I wrote last time...


-Original Message-

$file = "";
//the above is defined from the url
include "$file";

It could be what I was typing in the url bar. file.php?file=foobar.inc
-Original Message-

Hmm, so you define $file in your url as "foobar.inc" and then, in the
page itself you take change $file to be "".

At least, that's how I'd read it.  I'd suggest, it's not an overly good
idea to include a file like this as someone else has already mentioned.

In any event, your fix would have to be something like this:



If (!isset($file) || empty($file))
{
  $file = "some file";
}
Include "$file" ;



That way you're only going to over-write the contents of $file if it's
already either unset or empty.

CYA, Dave


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




[PHP] No takers?



Please HELP!

PROBLEM

When a php script uses mail() and sendmail, if the e-mail address is not 
right, the e-mail is returned to the envelope sender (the hosting 
provider), NOT to the "From", "Reply-To", "Return-Path", or any other 
additional headers included in mail().

Apparently, this problem is faced by any user who utilizes a hosting provider.

SOLUTION

I've found 2 php classes (developed by Manuel Lemo) that address this problem.

The first, email_message.php was built to send MIME-encoded messages.

The second, sendmail_message.php extends the first by addressing the 
return-path problem.

Unfortunately, the first parses the message to allow sending MIME-encoded 
messages. For many who are only sending plain text messages, this is 
unnecessary processing.

HELP NEEDED

I would like to consolidate these 2 classes and eliminate the parsing. 
Unfortunately, I'm a newbie and need help from the pros.

If anyone is interested in participating in this project, please e-mail me 
directly at [EMAIL PROTECTED]

After completion this "new" class would be submitted to www.phpclasses.org 
for everyone to use.

Thanks!

Anthony F. Rodriguez
([EMAIL PROTECTED])


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




RE: [PHP] Defining PHP varibles from URL


A simple example might be (unoptimised for clarity):

http://www.myserver.com/someurl/page.php?file=home

 v4.1.x 
  $file = $_GET("file");

  // Remove case sensitivity
  $file = strtolower($file);

  // To stop people including just ANY old file, we are going to use a
switch
  // to validate the page they are after. All include files have been
appended
  // with .page in order to stop /etc/passwd being outputed (for
instance).
  switch ($file) {
case "main" : case "home" : case "elephant" : case "..." : {
  include "pages/".$file.".page";
}
default : {
  // "unknown.page" could be an error message giving out a 404.
  include "unknown.page";
}
  }
  
  exit;

?>

Switch is one way of doing it, you could also do it through array's
(using in_array) if you wish all to have the same action. Switch's allow
you to specify different actions for different pages (when you move onto
session validated pages you'll find that ability invaluble) ... Also
comes in useful when your variable parsing script is in the same php
file as your display script. [Id give examples but Im too tired to be
bothered heh]

- Dan


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




[PHP] Defining PHP varibles from URL Solved!




Sorry I did read all your replies etc. They were 
helpful.
 
I have now solved the 'problem' and thank you 
all.
 
I have less than week of experiance in PHP and am 
still learning.
 
JJ Harrison[EMAIL PROTECTED]www.tececo.com

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


[PHP] MYSQL ERROR CONNECT


Hi,
I have been using this code for while:

//1. CONNECT TO DATABASE
mysql_connect("localhost");

//2. SELECT A DATABASE
mysql_select_db("smpk2");

to connect to MYSQL database.

but I get this error:

Warning: Access denied for user: 'nobody@localhost' (Using password: NO)
in /www/host/doms/com/smpk2/create_tables.php on line 15

Warning: MySQL Connection Failed: Access denied for user:
'nobody@localhost' (Using password: NO) in
/www/host/doms/com/smpk2/create_tables.php on line 15

could someone help me, please???

thanks



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




[PHP] mcrypt...


I have uncommented the .dll extension in my php.ini however the
functions are still unavailable? What am I doing wrong?

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




[PHP] Session Problem


Hi

I ve a Problem when i try to use sessions. I can do destroy_session() and at
the next time there is session without starting session_start(). I closed
the browser and startet a site which only does: 
and he shows me a session id without having a anything in my
session.save_path :(

when i upload the sites to tripod everything workes fine. Seem's so that
there is a misconfiguration at my php.ini but i don't know what the failure
is. I hope someone of you has an idea.

tnx

mySTYX



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




Re: [PHP] MYSQL ERROR CONNECT


Ha.. Aussie person too eh?


Ok.. Have you recently updated your php system?


Reason I ask is the way you are using the functions mysql_connect and
mysql_select_db are quite ... "bad" to say the least


You should have permissions setup for a root account or something in your
mysql.user table and then you can do this:

$DB=mysql_connect("localhost","root","password");

notice I now have a user/pass arg and also I am assigning the handle of the
connection to a var ($DB)


then use:

mysql_select_db("smpk2",$DB);




and that should work fine as long as user and pass are right and db exists..
(and server has mysql running of course :P )



if not.. let us know..

If you want to know how to setup users and permissions for MySQL.. give us a
yell.. be glad to help out..




:::
:  Julien Bonastre [The-Spectrum.org CEO]
:  A.K.A. The_RadiX
:  [EMAIL PROTECTED]
:  ABN: 64 235 749 494
:  QUT Student #: 04475739
:::
- Original Message -
From: "Dani" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 06, 2002 11:49 PM
Subject: [PHP] MYSQL ERROR CONNECT


> Hi,
> I have been using this code for while:
>
> //1. CONNECT TO DATABASE
> mysql_connect("localhost");
>
> //2. SELECT A DATABASE
> mysql_select_db("smpk2");
>
> to connect to MYSQL database.
>
> but I get this error:
>
> Warning: Access denied for user: 'nobody@localhost' (Using password: NO)
> in /www/host/doms/com/smpk2/create_tables.php on line 15
>
> Warning: MySQL Connection Failed: Access denied for user:
> 'nobody@localhost' (Using password: NO) in
> /www/host/doms/com/smpk2/create_tables.php on line 15
>
> could someone help me, please???
>
> thanks
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


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




Re: [PHP] MYSQL ERROR CONNECT


Thanks radix!

I'm new to PHP that's why..

so, what should I do to fix this?

please advise..

thanks again.

Dani

The_RadiX wrote:

> Ha.. Aussie person too eh?
>
> Ok.. Have you recently updated your php system?
>
> Reason I ask is the way you are using the functions mysql_connect and
> mysql_select_db are quite ... "bad" to say the least
>
> You should have permissions setup for a root account or something in your
> mysql.user table and then you can do this:
>
> $DB=mysql_connect("localhost","root","password");
>
> notice I now have a user/pass arg and also I am assigning the handle of the
> connection to a var ($DB)
>
> then use:
>
> mysql_select_db("smpk2",$DB);
>
> and that should work fine as long as user and pass are right and db exists..
> (and server has mysql running of course :P )
>
> if not.. let us know..
>
> If you want to know how to setup users and permissions for MySQL.. give us a
> yell.. be glad to help out..
>
> :::
> :  Julien Bonastre [The-Spectrum.org CEO]
> :  A.K.A. The_RadiX
> :  [EMAIL PROTECTED]
> :  ABN: 64 235 749 494
> :  QUT Student #: 04475739
> :::
> - Original Message -
> From: "Dani" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, May 06, 2002 11:49 PM
> Subject: [PHP] MYSQL ERROR CONNECT
>
> > Hi,
> > I have been using this code for while:
> >
> > //1. CONNECT TO DATABASE
> > mysql_connect("localhost");
> >
> > //2. SELECT A DATABASE
> > mysql_select_db("smpk2");
> >
> > to connect to MYSQL database.
> >
> > but I get this error:
> >
> > Warning: Access denied for user: 'nobody@localhost' (Using password: NO)
> > in /www/host/doms/com/smpk2/create_tables.php on line 15
> >
> > Warning: MySQL Connection Failed: Access denied for user:
> > 'nobody@localhost' (Using password: NO) in
> > /www/host/doms/com/smpk2/create_tables.php on line 15
> >
> > could someone help me, please???
> >
> > thanks
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >


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




[PHP] Access denied errors


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi everyone, 
not sure if this is a php or mysql problem: I seem to be able to connect
in my script to mysql at the beginning but by the time I make the third
or fourth call I get 'Access denied' errors? 

Here is the function I use to connect: *Any* insight would be welcome
:-)

function _db_connect() {
if(!$this->link_id) {
$this->link_id=mysql_connect($this->host, $this->user, 
$this->pass);
}

if(!$this->link_id) {
return FALSE;
} 

$db=mysql_select_db($this->db) or die ("can't select db");
return TRUE;
}


Many thanks

- -- 
Nick Wilson //  www.explodingnet.com



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE81mmWHpvrrTa6L5oRAm9pAJ9aV2giDsyj4VZzK5fOWBHjfg1BpQCgn0g/
Xc8fs+7jFDMxJO3lbfoz7e4=
=+xJc
-END PGP SIGNATURE-

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




[PHP] highlighting Search Results


Hi all,

I have a mySQL database running with PHP4. I have constructed a search form
($searchSite) which returns results in a results page & now I want to have
the word that was entered in the search form highlight in the results page.

eg User enters a search for products using the word " gardening"

Results page might return:

"this shovel is a great gardening tool" and  "to be a expert in gardening,
you will need"...I want the word gardening to be bold wherever
it is displayed.

My results page has the following code to display search results: BTW it
works like a dream...I just want to jazz it up a bit.

");
echo("" . $row["Description"] . "");
echo("" . $row["ProductName"] . "");
echo("\$" . $row["RetailPrice"] . "");

?>

How do I do this to highlight my search words?

Thanks, any ideas much appreciated by this PHP newbie.

DC



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




RE: [PHP] Access denied errors


sounds like the username/password are not being accepted...

-Original Message-
From: Nick Wilson [mailto:[EMAIL PROTECTED]]
Sent: 06 May 2002 12:32
To: php-general
Subject: [PHP] Access denied errors


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi everyone, 
not sure if this is a php or mysql problem: I seem to be able to connect
in my script to mysql at the beginning but by the time I make the third
or fourth call I get 'Access denied' errors? 

Here is the function I use to connect: *Any* insight would be welcome
:-)

function _db_connect() {
if(!$this->link_id) {
$this->link_id=mysql_connect($this->host, $this->user, 
$this->pass);
}

if(!$this->link_id) {
return FALSE;
} 

$db=mysql_select_db($this->db) or die ("can't select db");
return TRUE;
}


Many thanks

- -- 
Nick Wilson //  www.explodingnet.com



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE81mmWHpvrrTa6L5oRAm9pAJ9aV2giDsyj4VZzK5fOWBHjfg1BpQCgn0g/
Xc8fs+7jFDMxJO3lbfoz7e4=
=+xJc
-END PGP SIGNATURE-

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


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




[PHP] mcrypt...


has ne1 got php_mcrypt.dll or the source code for it? the website for it
seems to be unavailable.

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




Re: [PHP] highlighting Search Results


If you want to highlight the EXACT search string, do a str_replace() on
$row["Description"], $row["ProductName"], etc etc, replacing the search
phrase with $searchSite.  Pretty simple.

$siteSearch",
$row["Description"]);

$productName = str_replace($siteSearch, "$siteSearch",
$row["ProductName"]);

?>


But, I'm guessing the search word is possibly more than one word???  If
that's the case, you may wish to highlight each word individually:

If that's the case, split the words in $searchSite into an array, and loop
through through the array, replacing each word with word.

Something like (untested):

 $word)
{
$row["Description"] = str_replace($word, "$word",
$row["Description"]);
$row["ProductTitle"] = str_replace($word, "$word",
$row["ProductTitle"]);
}

echo $row["ProductTitle"]."";
echo $row["Description"]."";
?>

Although this will need further tweaking, because it's case sensitive
(searching for "dog" and "Dog" will produce different results, it doesn't
account for dog* (doggies, dogs, etc), and is perhaps a little limited in
other ways, but should get you started).

A well constructed reg exp instead of the str_replace will cover most of
this, but i'm no good at them, and str_replace is quicker, IF it's all you
need.


Justin French

Creative Director
http://Indent.com.au





on 06/05/02 9:26 PM, DC ([EMAIL PROTECTED]) wrote:

> Hi all,
> 
> I have a mySQL database running with PHP4. I have constructed a search form
> ($searchSite) which returns results in a results page & now I want to have
> the word that was entered in the search form highlight in the results page.
> 
> eg User enters a search for products using the word " gardening"
> 
> Results page might return:
> 
> "this shovel is a great gardening tool" and  "to be a expert in gardening,
> you will need"...I want the word gardening to be bold wherever
> it is displayed.
> 
> My results page has the following code to display search results: BTW it
> works like a dream...I just want to jazz it up a bit.
> 
>  
> $result = mysql_query("SELECT * FROM products WHERE Description LIKE
> '%$searchSite%' OR Keywords LIKE '%$searchSite%' OR CatName LIKE
> '%$searchSite%' ");
> 
> blah blah blah
> 
> while ( $row = mysql_fetch_array($result) )  {
> echo("");
> echo(" 'Arial,Helvetica,Sans serif'>" . $row["Description"] . "");
> echo(" 'Arial,Helvetica,Sans serif'>" . $row["ProductName"] . "");
> echo(" 'Arial,Helvetica,Sans serif'>\$" . $row["RetailPrice"] . "");
> 
> ?>
> 
> How do I do this to highlight my search words?
> 
> Thanks, any ideas much appreciated by this PHP newbie.
> 
> DC
> 
> 


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




[PHP] Very Large MySQL Query String


I can't seem to figure out the following.

I use the http upload functions a lot, works great!!..
For some months now I have been using a small PHP program
which I use to upload PDF files of scanned documents and
insert them into a Mysql table..

Normally these files are small (<250 kb), but I now have a
PDF of 1 MB... When uploading files I run the
function: chunk_split(base64_encode($binaryfile));
to encode it, this to transform the binary file to text.. (Works great!!!)

When the query was called to insert the data, nothing happens,
also no error from mysql...  Only think I can think of is that the mysql
query string is to long.. ??  (The data when encoded is about 1.3 MB of
text)..

This is the source code..

if (!($userfile_size == 0))
   {$fd = fopen ($userfile, "r");
$contents = fread ($fd, filesize ($userfile));
fclose ($fd);
unlink ($userfile);
echo "Eerste RAW: ".strlen($contents);
$encodes_data = chunk_split(base64_encode($contents));
$userfile_name = str_replace(" ", "", "$userfile_name");
echo strlen($encodes_data)." - Displays text size ";  //Works right!
mysql ($databasename_boekhoud, "insert mubo_boekhoud_images (data,
originalname, groep, type)
values '$encodes_data', '$userfile_name', '$groep', '$userfile_type')"); //
mysql_error(); //No error given..?
  }

Any suggestions are very much appreciated...

With kind regards,
David Bouw



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




RE: [PHP] MYSQL ERROR CONNECT


> Warning: Access denied for user: 'nobody@localhost' (Using password:
NO)
> in /www/host/doms/com/smpk2/create_tables.php on line 15

Hmm...let me see if I can decrypt that message. Apparently you were
denied access with user nobody and you were not using a password.

Read the manual page on mysql_connect(), you're missing some arguments.

---John Holmes...


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




RE: [PHP] mcrypt...


Did you restart your server and read the manual pages on mcrypt to see
if you need any other files? Some extensions can only be enabled at
compile time.

---John Holmes...

> -Original Message-
> From: Brian McGarvie [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 06, 2002 3:57 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] mcrypt...
> 
> I have uncommented the .dll extension in my php.ini however the
> functions are still unavailable? What am I doing wrong?
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php



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




[PHP] SID is missing in 4.2.0


I am so far unable to use the var SID.  I have determined the the script thinks it is 
defing but empty.

";
echo defind("SID");
echo "";
echo session_id();
?>

Try this script.  SID is empty but defined.  I can alternately call session_id but I 
have many sites that use SID.

Charles Killmer
Windows 2000 Server IIS 5.0 upgrading PHP 4.1.2 -> 4.2.0

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




[PHP] Formatting Information in header? Gridlines in Excel


G' morning!

Can someone tell me where to find the various options for the Header
function as it relates to M$ Excel? Last week, thanks to this list, we found
a way to open a worksheet in the browser and display data retrieved from a
database. The worksheet opens with no gridlines, I would like to see
gridlines. Are there options that can be placed in the header function. I
have looked at MSDN and did a Google search that did not reveal much of
anything.

Here is the header info being used...

header("Content-Type:  application/x-excel");
header("Content-Disposition: inline; filename=\"excel.xls\"");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");

Thanks!

Jay Blanchard



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




[PHP] Re: No takers?


Hello,

Anthony Rodriguez wrote:
> 
> Please HELP!
> 
> PROBLEM
> 
> When a php script uses mail() and sendmail, if the e-mail address is not 
> right, the e-mail is returned to the envelope sender (the hosting 
> provider), NOT to the "From", "Reply-To", "Return-Path", or any other 
> additional headers included in mail().
> 
> Apparently, this problem is faced by any user who utilizes a hosting 
> provider.
> 
> SOLUTION
> 
> I've found 2 php classes (developed by Manuel Lemo) that address this 
> problem.
> 
> The first, email_message.php was built to send MIME-encoded messages.
> 
> The second, sendmail_message.php extends the first by addressing the 
> return-path problem.
> 
> Unfortunately, the first parses the message to allow sending 
> MIME-encoded messages. For many who are only sending plain text 
> messages, this is unnecessary processing.

I am not sure what you mean, but the class does not parse the message, 
but rather encodes it in a way that it will not be refused by some mail 
servers.



> HELP NEEDED
> 
> I would like to consolidate these 2 classes and eliminate the parsing. 
> Unfortunately, I'm a newbie and need help from the pros.
> 
> If anyone is interested in participating in this project, please e-mail 
> me directly at [EMAIL PROTECTED]
> 
> After completion this "new" class would be submitted to 
> www.phpclasses.org for everyone to use.

Encoding in MIME is generally a requirement for sending messages, but 
even if it were not usually required, what would be the importance of 
not doing it?

You can always send your messages directly to the recipients SMTP server 
with this class:

http://www.phpclasses.org/browse.html/package/14.html

But if you do not format the message according to the MIME standards, 
chances are that your message is refused, bounced or even discarded by 
some SPAM filter.

Regards,
Manuel Lemos


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




Re: [PHP] Formatting Information in header? Gridlines in Excel


Are you actually sending an excell file, or just data that you expect excell
to format? If your sending a file, then you have to create the grid lines
there. These are HTTP headers that you are talking about, they wouldn't have
any control over excell data.

---John Holmes...

- Original Message -
From: "Jay Blanchard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 06, 2002 9:16 AM
Subject: [PHP] Formatting Information in header? Gridlines in Excel


> G' morning!
>
> Can someone tell me where to find the various options for the Header
> function as it relates to M$ Excel? Last week, thanks to this list, we
found
> a way to open a worksheet in the browser and display data retrieved from a
> database. The worksheet opens with no gridlines, I would like to see
> gridlines. Are there options that can be placed in the header function. I
> have looked at MSDN and did a Google search that did not reveal much of
> anything.
>
> Here is the header info being used...
>
> header("Content-Type:  application/x-excel");
> header("Content-Disposition: inline; filename=\"excel.xls\"");
> header("Expires: 0");
> header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
>
> Thanks!
>
> Jay Blanchard
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


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




[PHP] Redirect after submit


Hi,

I have a page that contains multi If ElseIf statements.  I want to redirect
right after a user submits gets a message (echo "Entry Added to Database.
\n"; )  would you like to add another. then prompts for an alert.  Would
you like another ???  and redirects to a page based on selection.





I have this jscript but not sure how to implement after the (echo entry
added to database) line ?


any suggestions. would be greately appreciated.


Thank You

<><><><><><><><><><><><><><><><>

Daniel Negrón
Lotus Notes Administrator / Developer
KB Electronics, Inc.
954.346.4900x122
http://www.kbelectronics.com

<><><><><><><><><><><><><><><><>


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




[PHP] Re: Very Large MySQL Query String


  Instead of uploading to Mysql, why don't you store the file at a directory
and on Mysql only the path to it?

  Retrieving files from the hard drive is much faster than doing the same on
Mysql, and also access to manipulation (insert, update, delete, etc...)

--

Julio Nobrega.

Um dia eu chego lá:
http://sourceforge.net/projects/toca

Ajudei? Salvei? Que tal um presentinho?
http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884


"David Bouw" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I can't seem to figure out the following.
>
> I use the http upload functions a lot, works great!!..
> For some months now I have been using a small PHP program
> which I use to upload PDF files of scanned documents and
> insert them into a Mysql table..
>
> Normally these files are small (<250 kb), but I now have a
> PDF of 1 MB... When uploading files I run the
> function: chunk_split(base64_encode($binaryfile));
> to encode it, this to transform the binary file to text.. (Works great!!!)
>
> When the query was called to insert the data, nothing happens,
> also no error from mysql...  Only think I can think of is that the mysql
> query string is to long.. ??  (The data when encoded is about 1.3 MB of
> text)..
>
> This is the source code..
>
> if (!($userfile_size == 0))
>{$fd = fopen ($userfile, "r");
> $contents = fread ($fd, filesize ($userfile));
> fclose ($fd);
> unlink ($userfile);
> echo "Eerste RAW: ".strlen($contents);
> $encodes_data = chunk_split(base64_encode($contents));
> $userfile_name = str_replace(" ", "", "$userfile_name");
> echo strlen($encodes_data)." - Displays text size ";  //Works
right!
> mysql ($databasename_boekhoud, "insert mubo_boekhoud_images (data,
> originalname, groep, type)
> values '$encodes_data', '$userfile_name', '$groep', '$userfile_type')");
//
> mysql_error(); //No error given..?
>   }
>
> Any suggestions are very much appreciated...
>
> With kind regards,
> David Bouw
>
>



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




RE: [PHP] Formatting Information in header? Gridlines in Excel


[snip]
Are you actually sending an excell file, or just data that you expect excell
to format? If your sending a file, then you have to create the grid lines
there. These are HTTP headers that you are talking about, they wouldn't have
any control over excell data.
[/snip]

Nope, it's not an Excel file. It is a PHP file imitating an Excel file,
calling data from the DB and generating the worksheet on-the-fly. I want the
gridlines to display and was hoping that there was something I could put in
the PHP page to make sure that this happens.  I am delivering HTML table(s)
to Excel for parsing, which it does just fineuh oh...I feel an idea
coming onlet me try adding a border="1" to the table tagthat works!

Thanks for wording it differently, I saw it in a different light and the
answer cam upon me like a Monday morning lightning strike.

Jay Blanchard



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




[PHP] Re: Very Large MySQL Query String


If I use the link to the file, i.e.

file//C:\filedir\file.pdf or .txt or whatever

how do I  insert/update/delete the file since MySQL is holding only the
link?

BTW David, what are the properties of the field you are inserting to?  Could
that be the problem?

-Kirk

"Julio Nobrega Trabalhando" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>   Instead of uploading to Mysql, why don't you store the file at a
directory
> and on Mysql only the path to it?
>
>   Retrieving files from the hard drive is much faster than doing the same
on
> Mysql, and also access to manipulation (insert, update, delete, etc...)
>
> --
>
> Julio Nobrega.
>
> Um dia eu chego lá:
> http://sourceforge.net/projects/toca
>
> Ajudei? Salvei? Que tal um presentinho?
> http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884
>
>
> "David Bouw" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I can't seem to figure out the following.
> >
> > I use the http upload functions a lot, works great!!..
> > For some months now I have been using a small PHP program
> > which I use to upload PDF files of scanned documents and
> > insert them into a Mysql table..
> >
> > Normally these files are small (<250 kb), but I now have a
> > PDF of 1 MB... When uploading files I run the
> > function: chunk_split(base64_encode($binaryfile));
> > to encode it, this to transform the binary file to text.. (Works
great!!!)
> >
> > When the query was called to insert the data, nothing happens,
> > also no error from mysql...  Only think I can think of is that the mysql
> > query string is to long.. ??  (The data when encoded is about 1.3 MB of
> > text)..
> >
> > This is the source code..
> >
> > if (!($userfile_size == 0))
> >{$fd = fopen ($userfile, "r");
> > $contents = fread ($fd, filesize ($userfile));
> > fclose ($fd);
> > unlink ($userfile);
> > echo "Eerste RAW: ".strlen($contents);
> > $encodes_data = chunk_split(base64_encode($contents));
> > $userfile_name = str_replace(" ", "", "$userfile_name");
> > echo strlen($encodes_data)." - Displays text size ";  //Works
> right!
> > mysql ($databasename_boekhoud, "insert mubo_boekhoud_images (data,
> > originalname, groep, type)
> > values '$encodes_data', '$userfile_name', '$groep', '$userfile_type')");
> //
> > mysql_error(); //No error given..?
> >   }
> >
> > Any suggestions are very much appreciated...
> >
> > With kind regards,
> > David Bouw
> >
> >
>
>



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




Re: [PHP] Formatting Information in header? Gridlines in Excel


> coming onlet me try adding a border="1" to the table tagthat
works!

Yeah, I was going to say that. How ever you format the HTML is how it's
going to show up in Excel. Excel is just going to translate the HTML tables
into it's own. Same goes for colors, bold, underline, center, etc.

---John Holmes...


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




Re: [PHP] Redirect after submit


Where exactly do you see PHP fitting into this. It looks like it's all
Javascript, and that's client-side nonsense...

---John Holmes...

- Original Message -
From: "Daniel Negron/KBE" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 06, 2002 9:27 AM
Subject: [PHP] Redirect after submit


Hi,

I have a page that contains multi If ElseIf statements.  I want to redirect
right after a user submits gets a message (echo "Entry Added to Database.
\n"; )  would you like to add another. then prompts for an alert.  Would
you like another ???  and redirects to a page based on selection.





I have this jscript but not sure how to implement after the (echo entry
added to database) line ?


any suggestions. would be greately appreciated.


Thank You

<><><><><><><><><><><><><><><><>

Daniel Negrón
Lotus Notes Administrator / Developer
KB Electronics, Inc.
954.346.4900x122
http://www.kbelectronics.com

<><><><><><><><><><><><><><><><>


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



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




RE: [PHP] Formatting Information in header? Gridlines in Excel


This is intriguing me, are you opening up excel in a browser window or just
printing out html tables?? I am confused.

Thanks,
Steve.

-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 06, 2002 9:54 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Formatting Information in header? Gridlines in Excel


[snip]
Are you actually sending an excell file, or just data that you expect excell
to format? If your sending a file, then you have to create the grid lines
there. These are HTTP headers that you are talking about, they wouldn't have
any control over excell data.
[/snip]

Nope, it's not an Excel file. It is a PHP file imitating an Excel file,
calling data from the DB and generating the worksheet on-the-fly. I want the
gridlines to display and was hoping that there was something I could put in
the PHP page to make sure that this happens.  I am delivering HTML table(s)
to Excel for parsing, which it does just fineuh oh...I feel an idea
coming onlet me try adding a border="1" to the table tagthat works!

Thanks for wording it differently, I saw it in a different light and the
answer cam upon me like a Monday morning lightning strike.

Jay Blanchard



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

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




Re: [PHP] Formatting Information in header? Gridlines in Excel


Both...If you send an HTML file with Excel headers, Excel will open up and
"translate" the HTML tables into the grid of the Excel spreadsheet.

---John Holmes...

- Original Message -
From: "Steve Bradwell" <[EMAIL PROTECTED]>
To: "'Jay Blanchard'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Monday, May 06, 2002 10:05 AM
Subject: RE: [PHP] Formatting Information in header? Gridlines in Excel


> This is intriguing me, are you opening up excel in a browser window or
just
> printing out html tables?? I am confused.
>
> Thanks,
> Steve.
>
> -Original Message-
> From: Jay Blanchard [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 06, 2002 9:54 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP] Formatting Information in header? Gridlines in Excel
>
>
> [snip]
> Are you actually sending an excell file, or just data that you expect
excell
> to format? If your sending a file, then you have to create the grid lines
> there. These are HTTP headers that you are talking about, they wouldn't
have
> any control over excell data.
> [/snip]
>
> Nope, it's not an Excel file. It is a PHP file imitating an Excel file,
> calling data from the DB and generating the worksheet on-the-fly. I want
the
> gridlines to display and was hoping that there was something I could put
in
> the PHP page to make sure that this happens.  I am delivering HTML
table(s)
> to Excel for parsing, which it does just fineuh oh...I feel an idea
> coming onlet me try adding a border="1" to the table tagthat
works!
>
> Thanks for wording it differently, I saw it in a different light and the
> answer cam upon me like a Monday morning lightning strike.
>
> Jay Blanchard
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


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




[PHP] Re: Forum with PHP, without using mySQL..


www.yabbforum.com



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




[PHP] Capturing dynamic data and storing it into a variable


I have stored the contents of a web page using:

  $src = implode("", file($url));

In the source contains:

  Random title here

What method can I use to store the title of the page into a variable?
Keep in mind that the above string is part of an entire html document.




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




Re: [PHP] PHP compared to JSP


I find caching to be extremely helpful. I have a complex property layer for
my php based web engine/library. These properies have several levels of dependency
and inheritance which can take as many as 15 queries to build. Then I cache
the tree and it is reduced to a single query on subsequent page requests. Also
I found a 30% load time improvement when I installed the PHPAccelerator compile
cache which is excellent considering the amount of optimizations I have in my
code. Thus to close I must say there are different types of caching to suit
different needs and whether one or the other is suitable depends on what you want
whether it makes sense to cache the data.

Cheers,
Rob.

Manuel Lemos wrote:
> 
> Hello,
> 
> Sp wrote:
> > Does anyone think caching should be built into php for it to edge out the 
>competition?
> > (like what smarty is doing)
> >
> > I mean a static page will always serve up faster then a dynamic one.  Also even if 
>you are
> > getting 100 pages/sec on your database, you could cache it for 5 seconds and you 
>save 500
> > accesses to your database.  Yeah the page would be at most 5 seconds old but no 
>one would
> > know.
> 
> I have been doing that for quite some time and I can tell that it is not
> worthy to cache just database query results but rather the pages that
> are generated with the data that is returned with such queries.
> 
> For that I have developed of a robust class that caches pages in files
> while it prevents that concurrent accesses update the cache files
> simultaneously to prevent corrupting the cached data.
> 
> You may want to try getting it here:
> 
> http://www.phpclasses.org/browse.html/package/313.html
> 
> Regards,
> Manuel Lemos
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
.-.
| Robert Cummings |
:-`.
| Webdeployer - Chief PHP and Java Programmer  |
:--:
| Mail  : mailto:[EMAIL PROTECTED] |
| Phone : (613) 731-4046 x.109 |
:--:
| Website : http://www.webmotion.com   |
| Fax : (613) 260-9545 |
`--'

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




RE: [PHP] Formatting Information in header? Gridlines in Excel


[snip]
This is intriguing me, are you opening up excel in a browser window or just
printing out html tables?? I am confused.
[/snip]

I am using PHP to query a database and create an HTML table based on the
information in the database (in this case it it a large crosstab query).
This is set up to open Excel in a broswer window (inline) and display the
data in a worksheet. All normal Excel functions can be performed on the
worksheet without changing the data in the database. These worksheets then
can be saved to the user's local disk. They can always run the original
query again by requesting the worksheet/page again.

Link pointed to php page that will send to browser  Stupid IE trick, the .xls file does not 'exist',
but will fake out Excel to open the .php 'page' in a worksheet. Also, make
sure to include header information listed in previous e-mail at the top of
the PHP page.

The steps are;
1. Create a PHP file with the header info
2. Do a PHP request to the database.
3. Use the results to create an HTML table within the PHP
4. Open this table in a spreadsheet

HTH!

Jay Blanchard



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




Re: [PHP] replace question


(This is more info on the question I asked before)

Here's the text file (text.txt):
   This is a test of the templating program.
   Here's hoping it's working!
   John Smith

Here's one line from the CSV file (new_data.csv):
John,Smith,"4770 Rosepetal Ct., Richmond, VA 22032 USA",(703) 
978-4472,0/0/00,


And here's the code I have (merge.php):

  1 ".$fullname."";
 16 $newfilecontents = 
str_replace($fullname,$newfullname,$filecontents);
 17
 18 fwrite($merged,$newfilecontents);
 19 }
 20 }
 21 echo nl2br($newfilecontents);
 22 // fwrite($merged,$newfilecontents);
 23 fclose ($fp);
 24 fclose ($merged);
 25 fclose ($text);
 26 ?>


Josh



Miguel Cruz wrote:

>On Sun, 5 May 2002, Josh & Valerie McCormack wrote:
>
>>I'm iterating through a CSV file pulling in rows as arrays with fgetcsv 
>>and I'd like to search for patterns made up of the first two array items 
>>of each row with a space between them in a text file, and make them into 
>>links. I can't figure out how to do this, could someone help?
>>
>
>How about posting a sample row or two along with how you want the data to
>appear after the transformation?
>
>miguel
>




Re: [PHP] Re: Forum with PHP, without using mySQL..


Why bother posting a perl forum here !

YaBB is a leading FREE, downloadable Perl forum that allows you to provide a
real-time chat and support system for your visitors. While chat programs
allow people to talk directly, you have to be on them 24/7 to please
everyone. With forum software like YaBB, you can talk any time, and everyone
can join or read the conversation. So get visitors coming back, for
interesting discussions, fun chit chat, or needed support without having to
spend thousands of dollars.



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



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




Re: [PHP] Re: Forum with PHP, without using mySQL..


Actually... the version of YaBB at yabbforum.com is strictly a Perl based board.  It 
doesn't use mySQL either.  The PHP version of YaBB is at http://www.yabb.info but it 
relies on mySQL.

There is Easy Forum http://www.hotscripts.com/Detailed/15435.html
There is Eboard http://www.hotscripts.com/Detailed/14778.html

And more, check out: 
http://www.hotscripts.com/PHP/Scripts_and_Programs/Discussion_Boards/

Jeff



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



Re: [PHP] Redirect after submit (solved)



I see a PHP page that adds an entry to the database then goes to a page
that says Your entry has been entered from the PHP page.  what I am looking
for is how to redirect after that page has been submitted and the entry is
added to the database and the page tells me that I have entered the
information into the database IF I would like to add another entry in to
the database, again using php.  I dont think I submitted this to the wrong
group.  I thought for a moment that I might get hammered for asking a mixed
javascript, php, mysql question, but I thought that someone would actually
see what I was trying to do.  But just to let you know I just worked around
the problem by closing out that php tags entering some jscript and and html
and then re-opening the php tags.  So thank you any hoo.



Thank You

<><><><><><><><><><><><><><><><>

Daniel Negrón
Lotus Notes Administrator / Developer
KB Electronics, Inc.
954.346.4900x122
http://www.kbelectronics.com

<><><><><><><><><><><><><><><><>


|+-->
||  "1LT John W.|
||  Holmes" |
|||
||  |
||  05/06/02 10:08  |
||  AM  |
||  Please respond  |
||  to "1LT John W. |
||  Holmes" |
||  |
|+-->
  
>-|
  |
 |
  |  To: <[EMAIL PROTECTED]>, "Daniel Negron/KBE" 
<[EMAIL PROTECTED]>  |
  |  cc:   
 |
  |  Subject: Re: [PHP] Redirect after submit  
 |
  
>-|




Where exactly do you see PHP fitting into this. It looks like it's all
Javascript, and that's client-side nonsense...

---John Holmes...

- Original Message -
From: "Daniel Negron/KBE" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 06, 2002 9:27 AM
Subject: [PHP] Redirect after submit


Hi,

I have a page that contains multi If ElseIf statements.  I want to redirect
right after a user submits gets a message (echo "Entry Added to Database.
\n"; )  would you like to add another. then prompts for an alert.  Would
you like another ???  and redirects to a page based on selection.





I have this jscript but not sure how to implement after the (echo entry
added to database) line ?


any suggestions. would be greately appreciated.


Thank You

<><><><><><><><><><><><><><><><>

Daniel Negrón
Lotus Notes Administrator / Developer
KB Electronics, Inc.
954.346.4900x122
http://www.kbelectronics.com

<><><><><><><><><><><><><><><><>


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



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






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




RE: [PHP] Formatting Information in header? Gridlines in Excel


Wow! I am impressed, thats too cool. And man is that ever going to be
helpful.

Thanks,
Steve

-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 06, 2002 10:25 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Formatting Information in header? Gridlines in Excel


[snip]
This is intriguing me, are you opening up excel in a browser window or just
printing out html tables?? I am confused.
[/snip]

I am using PHP to query a database and create an HTML table based on the
information in the database (in this case it it a large crosstab query).
This is set up to open Excel in a broswer window (inline) and display the
data in a worksheet. All normal Excel functions can be performed on the
worksheet without changing the data in the database. These worksheets then
can be saved to the user's local disk. They can always run the original
query again by requesting the worksheet/page again.

Link pointed to php page that will send to browser  Stupid IE trick, the .xls file does not 'exist',
but will fake out Excel to open the .php 'page' in a worksheet. Also, make
sure to include header information listed in previous e-mail at the top of
the PHP page.

The steps are;
1. Create a PHP file with the header info
2. Do a PHP request to the database.
3. Use the results to create an HTML table within the PHP
4. Open this table in a spreadsheet

HTH!

Jay Blanchard



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

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




Re: [PHP] Capturing dynamic data and storing it into a variable


On Monday 06 May 2002 08:34, Mizery De Aria wrote:
> I have stored the contents of a web page using:
>
>   $src = implode("", file($url));
>
> In the source contains:
>
>   Random title here
>
> What method can I use to store the title of the page into a variable?
> Keep in mind that the above string is part of an entire html document.

Write a regular expression to extract it. See manual -> Regular Expression 
Functions (Perl-Compatible) for an example which you can use as a starting 
point.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
The rose of yore is but a name, mere names are left to us.
*/

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




Re: [PHP] Re: Forum with PHP, without using mySQL..


he MAY have been thinking of the PHP version which is at www.yabb.info and
also in use over at http://www.phptalk.com

Jeff
- Original Message -
From: "John Fishworld" <[EMAIL PROTECTED]>
To: "Mizery De Aria" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, May 06, 2002 10:29 AM
Subject: Re: [PHP] Re: Forum with PHP, without using mySQL..


> Why bother posting a perl forum here !
>
> YaBB is a leading FREE, downloadable Perl forum that allows you to provide
a
> real-time chat and support system for your visitors. While chat programs
> allow people to talk directly, you have to be on them 24/7 to please
> everyone. With forum software like YaBB, you can talk any time, and
everyone
> can join or read the conversation. So get visitors coming back, for
> interesting discussions, fun chit chat, or needed support without having
to
> spend thousands of dollars.
>
>
>
> > www.yabbforum.com
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>


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




[PHP] File upload problem


Hi All,

I have a script that uploads files via my browser.  Works fine under RedHat
7.0 but on a RH 7.2 server it crashes on files over at least 10MB.  Files
under 3MB work fine.

Any suggestions?  I've looked around for a php config file that might
specify the max file size but so far have found nothing.  Could this be an
imcompatibility on RH 7.2?

Thanks in advance,
Linn

--
Please remove the number two from domain name for email.



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




[PHP] Install Question - Missing php.ini


I compiled php 4.2 with the following command (Linux Server)

./configure --with-mysql --with-apxs --enable-dbase --with-xml
--enable-ftp --with-curl --enable-cli

Where is my php.ini file?  I cannot find it on my system.

David McInnis


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




Re: [PHP] File upload problem


   I can remember there is an option on the php config file to set the max file size 
when uploading...

   I think you can also limit the size with a hidden input on the form... like this:

 
the value corresponds to the number of bytes. so this would be for 2 MB.. 

--
Francesc Leveque
Lavinia TC
Passatge Permanyer, 12
08009 Barcelona
Tel: 93 272 34 10
[EMAIL PROTECTED]
  - Original Message - 
  From: Linn Kubler 
  To: [EMAIL PROTECTED] 
  Sent: Monday, May 06, 2002 5:29 PM
  Subject: [PHP] File upload problem


  Hi All,

  I have a script that uploads files via my browser.  Works fine under RedHat
  7.0 but on a RH 7.2 server it crashes on files over at least 10MB.  Files
  under 3MB work fine.

  Any suggestions?  I've looked around for a php config file that might
  specify the max file size but so far have found nothing.  Could this be an
  imcompatibility on RH 7.2?

  Thanks in advance,
  Linn

  --
  Please remove the number two from domain name for email.



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




RE: [PHP] Install Question - Missing php.ini


Try doing "locate php.ini". Your likely to have to copy php.ini.dist to
php.ini if this is your first installation.

Usually you'll find it in /usr/local/etc/ or /usr/local/lib/ depending
on your distro.

- Dan

-Original Message-
From: David McInnis [mailto:[EMAIL PROTECTED]] 
Sent: 06 May 2002 16:28
To: [EMAIL PROTECTED]
Subject: [PHP] Install Question - Missing php.ini


I compiled php 4.2 with the following command (Linux Server)

./configure --with-mysql --with-apxs --enable-dbase --with-xml
--enable-ftp --with-curl --enable-cli

Where is my php.ini file?  I cannot find it on my system.

David McInnis


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



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




Re: [PHP] File upload problem


D'oh!  You're right, I went back and checked php.ini and found
upload_max_filesize but it's already set to 200M, I'm assuming that means
200 MegaBytes.  So I don't think that's the problem.  I don't have the
hidden tag set in the page code so that shouldn't be a factor either, right?
I'm a real rooky at php programming.

Thanks for your tip, can you think of anything else to look at?
Linn

"Francesc Leveque" <[EMAIL PROTECTED]> wrote in message
00dd01c1f513$e20fbaf0$3b00a8c0@fleveque">news:00dd01c1f513$e20fbaf0$3b00a8c0@fleveque...
   I can remember there is an option on the php config file to set the max
file size when uploading...

   I think you can also limit the size with a hidden input on the form...
like this:


the value corresponds to the number of bytes. so this would be for 2 MB..

--
Francesc Leveque
Lavinia TC
Passatge Permanyer, 12
08009 Barcelona
Tel: 93 272 34 10
[EMAIL PROTECTED]
  - Original Message -
  From: Linn Kubler
  To: [EMAIL PROTECTED]
  Sent: Monday, May 06, 2002 5:29 PM
  Subject: [PHP] File upload problem


  Hi All,

  I have a script that uploads files via my browser.  Works fine under
RedHat
  7.0 but on a RH 7.2 server it crashes on files over at least 10MB.  Files
  under 3MB work fine.

  Any suggestions?  I've looked around for a php config file that might
  specify the max file size but so far have found nothing.  Could this be an
  imcompatibility on RH 7.2?

  Thanks in advance,
  Linn

  --
  Please remove the number two from domain name for email.



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




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




[PHP] PHP Training Course announcement


Good afternoon,

We are currently taking sign-ups for our June 17th-21st 2002 week long
PHP training course.  If you feel you can make this course or if you
would like to register for this session please register on our web site
at:

http://tapinternet.com/index.php/html/main/php-training-register.html

The course is held in Ypsilanti, Michigan at the Eagle Crest Resort
(http://www.eaglecrestresort.com).  Pricing for the course is $2500
(discounts available to non-profit, government and educational
institutions).  Currently this is the only place we offer training but
we do offer corporate on-site training for companies wishing to train
more than one employee.  More about our corporate training can be found
here:

http://tapinternet.com/index.php/html/main/php-training-corporate.html

Thank you and I look forward to hearing from you if you can attend this
session or require further information.


--
Michael Kimsal
Tap Internet, Inc.
(734) 482-1371
Toll Free 1-866-745-3660
http://www.logicreate.com/


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




Re: [PHP] Who's having a good hosting experience these days? {!?}


Free web hoting for PHP developers

MySQL database (more if you need more)
Subdomain, or I can host your domain
Apache /w all the bits and pieces
Slackware Linux OS
512/512 Cable connection in Brisbane, Australia

Only catch is, I've got a 3 GIG monthly transfer limit, so no big
uploads/downloads please (such as MP3s)


Email me if you're interested.


- Original Message -
From: "The_RadiX" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Justin French" <[EMAIL PROTECTED]>
Sent: Monday, May 06, 2002 5:31 PM
Subject: [PHP] Who's having a good hosting experience these days?


Um Justin..

Hi..

or should I say.. Hi fellow Aussie mate .. :)


Yeah I am in oz too and asked some hosting questions a while back..

Your host has only 2GB downloads on the UNIX plan and also that's at US$15
p/m.. isnt that a tad pricey?


I was looking into powweb.com or aletia.com at much cheaper pricing and
larger services (200mb storage, 10/12Gb p/m,etc)



What do you think of these..



Thanks...
:::
:  Julien Bonastre [The-Spectrum.org CEO]
:  A.K.A. The_RadiX
:  [EMAIL PROTECTED]
:  ABN: 64 235 749 494
:  QUT Student #: 04475739
:::
- Original Message -
From: "Justin French" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 06, 2002 10:22 AM
Subject: Re: [PHP] Who's having a good hosting experience these days?


> Cheap?
> I've been with experthost.com for around 8 months, with very little to
> complain about... I've got a reseller account with about 12 domains, so
i'm
> paying around US$6each, and I think the standard is US$15each for one,
$10ea
> for two, and then a sliding scale up to 25 domains @ $5ea or something.
>
> It *shouldn't* be about the money, but I'm currently making a healthy
profit
> out of hosting some client domains under my account.
>
>
> Reliable?
> They have intelligent support staff on 24/7, and they've had one service
> fallout in this time.  It was a biggie, and I had to reload some data from
> my local copy, but I'd like to believe this was a one-off.
>
>
> Fast?
> The service seems fast (although I'm in Australia, so pings times are
> affected by sheer distance).
>
>
> Feature Rich?
> 50meg, 20POPs, redirects, groups, auto-responders, 2GB bandwidth, MySQL,
> webmail, recent versions of Apache/MySQL/PHP, intelligent support staff,
etc
> etc.
>
>
> I'm pretty happy.  Better still, they offer a free 1 month test account,
so
> you can try them for yourself.
>
>
> Justin French
> 
> Creative Director
> http://Indent.com.au
> 
>
>
>
>
>
> on 06/05/02 9:19 AM, David Freeman ([EMAIL PROTECTED]) wrote:
>
> >
> >> My hosting service which WAS cool about 2 years ago has
> >> grown into a bloated mess of zero logic.
> >
> > Fast, Reliable, Cheap, Feature-Rich
> >
> > Now pick any three.
> >
> > In the end I guess you get what you pay for.  If you can only afford a
> > lower price host then you only get lower value.
> >
> > CYA, Dave
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


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






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




[PHP] function over loading?


Can you practice function over-loading in php?
 
Kris



Re: [PHP] Re: PHP and SOAP


Hello Cedric,

I've played around a bit with SOAP and PHP now and i can suggest you the 
following SOAP implementation:

http://dietrich.ganx4.com/nusoap/index.php

This work is being developed further for PEAR but they have no stabe 
version yet:

http://pear.php.net/


With very few code lines (applies to PHP and Delphi) I was able to 
- create a tiny web service that responses with a greeting to a given name   
and that contains some functions that return the current average server 
load, memory usage etc.
- made a tiny application in delphi (had about 10 lines to write) that can 
call each of these functions and display them in a dialog box.

it worked from scratch! :-))
I'll have a more in-depth look when I have time but the current 
implementation seems quite good and is easy to use. (need a way to create 
the WSDL file however).

Cheers,
Udo

Posted by ELKNews 1.0.4-B
Empower your News Reader! http://www.atozedsoftware.com

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




[PHP] pass. vars. betn. javascript and php


Is it possible to pass variables from a php page to a page using
javascript, and vice versa,
I've the variable - an array passed in the url of the page.

-Pushkar S. Pradhan


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




[PHP] sum


I am using the mysql sum() function to return the "sum" of a bunch of dolor
amounts stored  "float" values. But what I get back it something like this
"98.18855591" it is to precise. All I want is the dolor amounts added up
and rounded up to the closest penny. Is there a better value type to use or
a function that will return the information properly formatted. 
 
Mike Fifield
Charles Schwab & Co, Inc.
WARNING: All e-mail sent to or from this address will be received by the
Charles Schwab corporate e-mail system and is subject to archival and review
by someone other than the recipient.
 



Re: [PHP] sum


On Mon, May 06, 2002 at 10:01:00AM -0700, Fifield, Mike wrote:
> amounts stored  "float" values. But what I get back it something like this
> "98.18855591" it is to precise. All I want is the dolor amounts added up
> and rounded up to the closest penny. Is there a better value type to use or

http://www.mysql.com/doc/M/a/Mathematical_functions.html
or
http://www.php.net/manual/en/function.round.php

--Dan

-- 
   PHP classes that make web design easier
SQL Solution  |   Layout Solution   |  Form Solution
sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

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




[PHP] Re: pass. vars. betn. javascript and php


Pushkar Pradhan wrote:
> Is it possible to pass variables from a php page to a page using
> javascript, and vice versa,
> I've the variable - an array passed in the url of the page.
> 
> -Pushkar S. Pradhan
> 

Yes and no. You can pass variables to a php script with the normal HTTP 
POST ang GET methods, however it's done with javascript.


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




[PHP] Making a Client-side HTTPS Request


I would like to be able to make a client side HTTPS request from
one of my pages.  From searching around, I see that I can do
everything I want using the CURL library.  But the ISP I am using
does not have the CURL library installed.

I'll ask them if they'll install this library.  But, assuming
they don't, do I have any other options for doing what I want?

--
JR


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




[PHP] Re: sum


Mike Fifield wrote:
> I am using the mysql sum() function to return the "sum" of a bunch of dolor
> amounts stored  "float" values. But what I get back it something like this
> "98.18855591" it is to precise. All I want is the dolor amounts added up
> and rounded up to the closest penny. Is there a better value type to use or
> a function that will return the information properly formatted. 
>  
> Mike Fifield
> Charles Schwab & Co, Inc.
> WARNING: All e-mail sent to or from this address will be received by the
> Charles Schwab corporate e-mail system and is subject to archival and review
> by someone other than the recipient.
>  
> 

MySQL has a decimal column type which allows you to specify to how many 
decimal points the number is stored. 
http://www.mysql.com/doc/C/o/Column_types.html

If you want to do it via PHP, you can format the number via 
number_format() and that will give you the 2 decimal points as well as 
the commas where needed.

Also, both PHP and MySLQ have round() functions to format the numbers.


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




[PHP] Re: Making a Client-side HTTPS Request


Jonathan Rosenberg wrote:
> I would like to be able to make a client side HTTPS request from
> one of my pages.  From searching around, I see that I can do
> everything I want using the CURL library.  But the ISP I am using
> does not have the CURL library installed.
> 
> I'll ask them if they'll install this library.  But, assuming
> they don't, do I have any other options for doing what I want?
> 
> --
> JR
> 

Even if they don't have it compiled into PHP, they might have curl 
installed and available from the command line.


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




RE: [PHP] Re: Making a Client-side HTTPS Request


I'm quite new to PHP (though I have lots of programming
experience, web & otherwise).

Where can I learn more about what "installed and available from
the command line" means?

> -Original Message-
> From: Austin Marshall [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 06, 2002 1:19 PM
> To: Jonathan Rosenberg
> Cc: [EMAIL PROTECTED]
> Subject: [PHP] Re: Making a Client-side HTTPS Request
>
>
> Jonathan Rosenberg wrote:
> > I would like to be able to make a client side HTTPS
> request from
> > one of my pages.  From searching around, I see that I can do
> > everything I want using the CURL library.  But the
> ISP I am using
> > does not have the CURL library installed.
> >
> > I'll ask them if they'll install this library.  But, assuming
> > they don't, do I have any other options for doing
> what I want?
> >
> > --
> > JR
> >
>
> Even if they don't have it compiled into PHP, they
> might have curl
> installed and available from the command line.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


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




Re: [PHP] Re: Making a Client-side HTTPS Request


What i meant was the actual curl application is installed on the server. 
  Accessible from the command line at, for example, /usr/local/bin/curl

With PHP you can execute commands via the command line via system(), 
exec() or via the backtick (for example $output=`/usr/local/bin/curl 
`;) operator.

You also might be able to load the extension via dl() and compile it on 
your own, but i wouldn't recommend that.

First try the command line option, then ask your ISP to install then 
extension.

Jonathan Rosenberg wrote:
> I'm quite new to PHP (though I have lots of programming
> experience, web & otherwise).
> 
> Where can I learn more about what "installed and available from
> the command line" means?
> 
> 
>>-Original Message-
>>From: Austin Marshall [mailto:[EMAIL PROTECTED]]
>>Sent: Monday, May 06, 2002 1:19 PM
>>To: Jonathan Rosenberg
>>Cc: [EMAIL PROTECTED]
>>Subject: [PHP] Re: Making a Client-side HTTPS Request
>>
>>
>>Jonathan Rosenberg wrote:
>>
>>>I would like to be able to make a client side HTTPS
>>
>>request from
>>
>>>one of my pages.  From searching around, I see that I can do
>>>everything I want using the CURL library.  But the
>>
>>ISP I am using
>>
>>>does not have the CURL library installed.
>>>
>>>I'll ask them if they'll install this library.  But, assuming
>>>they don't, do I have any other options for doing
>>
>>what I want?
>>
>>>--
>>>JR
>>>
>>
>>Even if they don't have it compiled into PHP, they
>>might have curl
>>installed and available from the command line.
>>
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
> 
> 




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




RE: [PHP] Re: Making a Client-side HTTPS Request


AHhh ... got it.  If my ISP won't install CURL & they don't have
the application, can I download binaries to my directory &
execute it from there using PHP?  or, does the executable have to
run with special permissions?

> -Original Message-
> From: Austin Marshall [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 06, 2002 1:35 PM
> To: Jonathan Rosenberg
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Re: Making a Client-side HTTPS Request
>
>
> What i meant was the actual curl application is
> installed on the server.
>   Accessible from the command line at, for example,
> /usr/local/bin/curl
>
> With PHP you can execute commands via the command line
> via system(),
> exec() or via the backtick (for example
> $output=`/usr/local/bin/curl
> `;) operator.
>
> You also might be able to load the extension via dl()
> and compile it on
> your own, but i wouldn't recommend that.
>
> First try the command line option, then ask your ISP
> to install then
> extension.
>
> Jonathan Rosenberg wrote:
> > I'm quite new to PHP (though I have lots of programming
> > experience, web & otherwise).
> >
> > Where can I learn more about what "installed and
> available from
> > the command line" means?
> >
> >
> >>-Original Message-
> >>From: Austin Marshall [mailto:[EMAIL PROTECTED]]
> >>Sent: Monday, May 06, 2002 1:19 PM
> >>To: Jonathan Rosenberg
> >>Cc: [EMAIL PROTECTED]
> >>Subject: [PHP] Re: Making a Client-side HTTPS Request
> >>
> >>
> >>Jonathan Rosenberg wrote:
> >>
> >>>I would like to be able to make a client side HTTPS
> >>
> >>request from
> >>
> >>>one of my pages.  From searching around, I see that I can do
> >>>everything I want using the CURL library.  But the
> >>
> >>ISP I am using
> >>
> >>>does not have the CURL library installed.
> >>>
> >>>I'll ask them if they'll install this library.
> But, assuming
> >>>they don't, do I have any other options for doing
> >>
> >>what I want?
> >>
> >>>--
> >>>JR
> >>>
> >>
> >>Even if they don't have it compiled into PHP, they
> >>might have curl
> >>installed and available from the command line.
> >>
> >>
> >>--
> >>PHP General Mailing List (http://www.php.net/)
> >>To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >>
> >
> >
>
>
>
>


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




Re: [PHP] Re: Making a Client-side HTTPS Request


Yeah, you can download and install it within your home directory and 
call it from there.  As far as permissions go, "chmod a+x curl" should 
do it.

Jonathan Rosenberg wrote:
> AHhh ... got it.  If my ISP won't install CURL & they don't have
> the application, can I download binaries to my directory &
> execute it from there using PHP?  or, does the executable have to
> run with special permissions?
> 
> 
>>-Original Message-
>>From: Austin Marshall [mailto:[EMAIL PROTECTED]]
>>Sent: Monday, May 06, 2002 1:35 PM
>>To: Jonathan Rosenberg
>>Cc: [EMAIL PROTECTED]
>>Subject: Re: [PHP] Re: Making a Client-side HTTPS Request
>>
>>
>>What i meant was the actual curl application is
>>installed on the server.
>>  Accessible from the command line at, for example,
>>/usr/local/bin/curl
>>
>>With PHP you can execute commands via the command line
>>via system(),
>>exec() or via the backtick (for example
>>$output=`/usr/local/bin/curl
>>`;) operator.
>>
>>You also might be able to load the extension via dl()
>>and compile it on
>>your own, but i wouldn't recommend that.
>>
>>First try the command line option, then ask your ISP
>>to install then
>>extension.
>>
>>Jonathan Rosenberg wrote:
>>
>>>I'm quite new to PHP (though I have lots of programming
>>>experience, web & otherwise).
>>>
>>>Where can I learn more about what "installed and
>>
>>available from
>>
>>>the command line" means?
>>>
>>>
>>>
-Original Message-
From: Austin Marshall [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 06, 2002 1:19 PM
To: Jonathan Rosenberg
Cc: [EMAIL PROTECTED]
Subject: [PHP] Re: Making a Client-side HTTPS Request


Jonathan Rosenberg wrote:


>I would like to be able to make a client side HTTPS

request from


>one of my pages.  From searching around, I see that I can do
>everything I want using the CURL library.  But the

ISP I am using


>does not have the CURL library installed.
>
>I'll ask them if they'll install this library.

>>But, assuming
>>
>they don't, do I have any other options for doing

what I want?


>--
>JR
>

Even if they don't have it compiled into PHP, they
might have curl
installed and available from the command line.


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


>>>
>>>
>>
>>
>>
> 




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




Re: [PHP] Newbie needs compile


Yes, that works fine. Make it ~/php4/php -q if you don't 
want to get the Content-Type: header.

miguel

On Mon, 6 May 2002, Sogno Kahlenberg wrote:
> It IS the CGI version. You mean I can
> 
> ~~/php4/php /cgi-bin/cmanage/reindex.php
> 
> to run it? Any other key points? Thanx.
> 
> 
> "Miguel Cruz" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > On Mon, 6 May 2002, Julian wrote:
> > > I didn't think that PHP could run w/o one though, so my idea was to use
> a
> > > text browser, have it run the script, then exit out.  As I said, I was
> > > probably wrong ;)
> >
> > Build the CGI version of PHP and you can run it from the command line like
> > any other interpreter.
> >
> > miguel
> >
> 
> 
> 
> 


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




Re: [PHP] Question about fsockopen


On Mon, 6 May 2002, Luc Saint-Elie wrote:
> I use a class to parse a RSS feed, my problem is that when the distant
> site is down my own site is stuck (because my class waits for an answer
> that doesn't come..) The logical answer is to use a fsockopen before to
> control the connection. Reading the doc I see : int fsockopen ( string
> hostname, int port [, int errno [, string errstr [, float timeout]]])
> 
> fsockopen allows to control if the hostname is up and running
> 
> My problem is that hostname returns the home page that is in HTML, the page 
> that I want is a php page.
> 
> HTML page are not often down (only when all the server is down) php pages 
> are often down (because mySQL problem or PHP problems)
> 
> So I'd like to be able to control if a specific url is OK and not only the 
> hostname.
> 
> How can I do that ?

Does the class already use fsockopen() to make the connection? If not, 
then throwing in a call to that function won't do anything. It's a 
fundamentally different way of having PHP get the data, and the class 
would have to be rewritte.

I'm also not clear on what you're really asking. You want to set a timeout 
but you only want it to apply to pages that you are guessing were 
generated by PHP, because you don't think that pages you guess are static 
will need it? Why would it hurt to use the timeout there too?

miguel


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




Re: [PHP] pass. vars. betn. javascript and php


> Is it possible to pass variables from a php page to a page using
> javascript, and vice versa,
> I've the variable - an array passed in the url of the page.

You can use PHP to write HTML or Javascript. You can submit data to PHP
through GET, POST, COOKIE, values. Those are your options.

So, if you have a PHP variable, that you want to pass to Javascript, then
you do this.



my_js_var = '';


Now, to get your JS variable back to PHP, you have to include it in a form,
or tack it on to a URL. You can put it in a form as a hidden element.

Hope that helps,

---John Holmes...


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




[PHP] Anyone use frames and PHP solution?


I've looked through the archive and seen that people have attempted it but I
am wondering if anyone has actually gone forward with using PHP and frames
together.

I ask as I am using a very simple frame interface.  Left side contains a
menu system with all content etc on right.  I have a login box on the left
but when pressing submit it logs in ok but in the menu.

So wondering if anyone has managed to find a good solution for the two
combined...

Jeff


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




[PHP] --enabel-pnctl / php sockets


I have recently discovered php's binary capabilities, and am using it to
write a virtual isp management system, so that a php binary will listen
to a port, and spit out an interface, such as webmin,
etc...(http://vispman.org)

This interface will be able to add virtual domains, restart dns, qmail,
etc...

I have seen a couple of other php binary projects(using php sockets),
such as phserv, where an entire web server (like apache) has been
written in nothing but php.

I tried to install these, and they wouldn't run without php compiled
with 
--enable-pcntl


Now, it is my understanding that --enable-pcntl  is for process control,
and it only works if you are compiling php as a cgi module, and not as
an apache add-on. 
(at least that is the error I got , when taking a redhat php rpm, and
editing the spec file to include the --enable-pcntl)
 

Is there any way to get that to compile, while maintaining all original
functionality in the redhat php rpm?


What I am really looking for here, is a php binary, that will spit out a
web control interface(standard web page, with forms on the client side)
That will listen on a non-apache port, and if a connections is detected,
lock it in securely...

But...still allow other connections, (like apache listens to
minservers/maxserversmultiple sessions on one port)

The idea being that one isp might have multiple admins/staff entering in
domain information.

Any help on this is much appreciated.
Barry Smoke
Project Leader
Vispman.org



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




Re: [PHP] Anyone use frames and PHP solution?


On Mon, 6 May 2002, Jeff Lewis wrote:
> I've looked through the archive and seen that people have attempted it but I
> am wondering if anyone has actually gone forward with using PHP and frames
> together.
> 
> I ask as I am using a very simple frame interface.  Left side contains a
> menu system with all content etc on right.  I have a login box on the left
> but when pressing submit it logs in ok but in the menu.
> 
> So wondering if anyone has managed to find a good solution for the two
> combined...

There is nothing special about using PHP with or without frames. Your 
question strikes me as similar to asking whether anyone has managed to use 
PHP to output images that are predominantly red in color.

Perhaps you could explain in a little more depth exactly where you are 
having trouble and what the specific symptoms of the trouble are.

miguel


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




Re: [PHP] Anyone use frames and PHP solution?


On Mon, 6 May 2002, Jeff Lewis wrote:

>I've looked through the archive and seen that people have attempted it but I
>am wondering if anyone has actually gone forward with using PHP and frames
>together.
>
>I ask as I am using a very simple frame interface.  Left side contains a
>menu system with all content etc on right.  I have a login box on the left
>but when pressing submit it logs in ok but in the menu.
>
>So wondering if anyone has managed to find a good solution for the two
>combined...

PHP has nothing to do with frames.  You can have a .php file as the frame 
source for any given frame, just like if it were an .htm or .html page.

-- 
---
Greg Donald - http://destiney.com/
http://phprated.com/ | http://phplinks.org/ | http://phptopsites.com/
---



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




[PHP] function over loading?


Can you practice function over-loading in php?
 
Kris



Re: [PHP] pass. vars. betn. javascript and php


Unless you're doing HTML as a halfway between Javascript and PHP, you cannot
do a POST method (obviously).  But you can always pass values in the URL
string.

Access the URL string in Javascript with "document.location.search".  Access
the URL string in PHP with "$HTTP_GET_VARS" or "$_GET".  You can generate a
URL with variables then do a Header redirect to automate the switch.  Use
"document.location.href" in Javascript and "header('Location:') in PHP".

Read up on these methods and you should be all set.

-Kevin

- Original Message -
From: "Pushkar Pradhan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 06, 2002 11:01 AM
Subject: [PHP] pass. vars. betn. javascript and php


> Is it possible to pass variables from a php page to a page using
> javascript, and vice versa,
> I've the variable - an array passed in the url of the page.
>
> -Pushkar S. Pradhan
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



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




[PHP] Variables from XML Documents


Hello,

I have recently been trying to use templates with XML documents. My problem
however is that I cannot get the values between XML tags into variables. For
example

Example XML Document:


Foo-Bar



What would I need to do, so that I can get the contents of the  tag
(Foo-Bar) into a variable?


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




RE: [PHP] --enabel-pnctl / php sockets


Check out phpserv.

-Original Message-
From: Barry Smoke [mailto:[EMAIL PROTECTED]] 
Sent: 06 May 2002 19:07
To: [EMAIL PROTECTED]
Subject: [PHP] --enabel-pnctl / php sockets


I have recently discovered php's binary capabilities, and am using it to
write a virtual isp management system, so that a php binary will listen
to a port, and spit out an interface, such as webmin,
etc...(http://vispman.org)

This interface will be able to add virtual domains, restart dns, qmail,
etc...

I have seen a couple of other php binary projects(using php sockets),
such as phserv, where an entire web server (like apache) has been
written in nothing but php.

I tried to install these, and they wouldn't run without php compiled
with 
--enable-pcntl


Now, it is my understanding that --enable-pcntl  is for process control,
and it only works if you are compiling php as a cgi module, and not as
an apache add-on. 
(at least that is the error I got , when taking a redhat php rpm, and
editing the spec file to include the --enable-pcntl)
 

Is there any way to get that to compile, while maintaining all original
functionality in the redhat php rpm?


What I am really looking for here, is a php binary, that will spit out a
web control interface(standard web page, with forms on the client side)
That will listen on a non-apache port, and if a connections is detected,
lock it in securely...

But...still allow other connections, (like apache listens to
minservers/maxserversmultiple sessions on one port)

The idea being that one isp might have multiple admins/staff entering in
domain information.

Any help on this is much appreciated.
Barry Smoke
Project Leader
Vispman.org



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



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




Re: [PHP] Variables from XML Documents


On Mon, May 06, 2002 at 08:20:46PM +0200, Sebastian A. wrote:
> 
>   
>   Foo-Bar
>   
> 
> 
> What would I need to do, so that I can get the contents of the  tag
> (Foo-Bar) into a variable?

Check out my "PHP XML Parsing Basics" at 
http://www.analysisandsolutions.com/code/phpxml.htm

--Dan

-- 
   PHP classes that make web design easier
SQL Solution  |   Layout Solution   |  Form Solution
sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

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




RE: [PHP] function over loading?


We did actually hear you the first time, but I'll just assume your not
all that bright.

As far as Im aware you cannot over load functions in php - although
there may be some new functions available ... I suggest you check the
manual.

-Original Message-
From: Kris Vose [mailto:[EMAIL PROTECTED]] 
Sent: 06 May 2002 19:10
To: [EMAIL PROTECTED]
Subject: [PHP] function over loading?


Can you practice function over-loading in php?
 
Kris


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




Re: [PHP] Anyone use frames and PHP solution?


Greg Donald wrote:
> 
> On Mon, 6 May 2002, Jeff Lewis wrote:
> 
> >I've looked through the archive and seen that people have attempted it but I
> >am wondering if anyone has actually gone forward with using PHP and frames
> >together.
> >
> >I ask as I am using a very simple frame interface.  Left side contains a
> >menu system with all content etc on right.  I have a login box on the left
> >but when pressing submit it logs in ok but in the menu.
> >
> >So wondering if anyone has managed to find a good solution for the two
> >combined...
> 
> PHP has nothing to do with frames.  You can have a .php file as the frame
> source for any given frame, just like if it were an .htm or .html page.

My guess is that he's looking for a library that will provide an
abstracted layer to delegating the frames.

Cheers,
Rob.
-- 
.-.
| Robert Cummings |
:-`.
| Webdeployer - Chief PHP and Java Programmer  |
:--:
| Mail  : mailto:[EMAIL PROTECTED] |
| Phone : (613) 731-4046 x.109 |
:--:
| Website : http://www.webmotion.com   |
| Fax : (613) 260-9545 |
`--'

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




[PHP] Grabbing ALL $_POST var at once.


The code below works (but its ugly), but I know there has to be a why to 
grab all the $_POST[] at once and then parse them out?

Isn't there a why for me to access them directory without reassigning them?

TIH,
David


$From";print "\n";
echo $Two;print "\n";
echo $Subject;print"\n";
echo $Comments;print "\n";
?>



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




Re: [PHP] Grabbing ALL $_POST var at once.


See either extract() or import_request_variables() in the manual.

-Rasmus

On Mon, 6 May 2002, David J Jackson wrote:

> The code below works (but its ugly), but I know there has to be a why to
> grab all the $_POST[] at once and then parse them out?
>
> Isn't there a why for me to access them directory without reassigning them?
>
> TIH,
> David
>
>
>  $From = $_POST['from'];
> $Two = $_POST['two'];
> $Subject = $_POST['sub_ject'];
> $Comments = $_POST['comments'];
> echo "$From";print "\n";
> echo $Two;print "\n";
> echo $Subject;print"\n";
> echo $Comments;print "\n";
> ?>
> 
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


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




Re: [PHP] Grabbing ALL $_POST var at once.


On Mon, 6 May 2002, David J Jackson wrote:
> The code below works (but its ugly), but I know there has to be a why to 
> grab all the $_POST[] at once and then parse them out?
> 
> Isn't there a why for me to access them directory without reassigning them?

They're just variables. You can print them or use them as function 
arguments...



miguel

>  $From = $_POST['from'];
> $Two = $_POST['two'];
> $Subject = $_POST['sub_ject'];
> $Comments = $_POST['comments'];
> echo "$From";print "\n";
> echo $Two;print "\n";
> echo $Subject;print"\n";
> echo $Comments;print "\n";
> ?>
> 
> 
> 
> 


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




[PHP] Re: function over loading?



Sort of. Look at the extension "overload" in the ext directory of the PHP 
source. Enable it and check out the docs:

http://www.php.net/manual/en/ref.overload.php

J



Kris Vose wrote:

> Can you practice function over-loading in php?
>  
> Kris


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




Re: [PHP] Grabbing ALL $_POST var at once.


>  $From = $_POST['from'];
> $Two = $_POST['two'];
> $Subject = $_POST['sub_ject'];
> $Comments = $_POST['comments'];
> echo "$From";print "\n";
> echo $Two;print "\n";
> echo $Subject;print"\n";
> echo $Comments;print "\n";
> ?>
> 

Why do you waste time assigning a variable to a variable...Is it really that
hard to just use the $_POST array?

" . $_POST["from"] . "\n";
echo $_POST["two"] . "\n";
echo $_POST["sub_ject"] . "\n";
echo $_POST["comments"] . "\n";
mail($_POST["two"],$_POST["sub_ject"],$_POST["comments"]);
?>

If that's too hard to understand, use extract().

---John Holmes...


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




Re: [PHP] Grabbing ALL $_POST var at once.


Rasmus Lerdorf wrote:
> See either extract() or import_request_variables() in the manual.

Rasmus --
I appreciate you taking the time to reply to my posting.

David


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




Re: [PHP] Grabbing ALL $_POST var at once.


John ---
Thanks for your reply, but let me rephase the question.
Let say I have a form with 50 fields on it do I have to:

echo $_POST['one']

.
.
echo $POST['fifty']


Or should I, could I use extract()?

Thanks in advance,
David

p.s I said it was UGLY :)


> ?>
> 
> If that's too hard to understand, use extract().
> 
> ---John Holmes...
> 




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




  1   2   >