[PHP] I would like to get a script to display in a frame

2002-04-20 Thread Jeffrey D. Means

Does anyone have any experience with making script output display in a
frame??  I would like to get this to happen on an e-commerce site I am
designing and am stuck.  I have tried form method=POST
action=myscript.php target=main with no success.  Please help.
 

Jeff Means
CIO for PicoTech
http://www.picotech.net
 



[PHP] Is there any way to change the process user (logon user) for a running script??

2002-05-09 Thread Jeffrey D. Means

I have come across a situation where I need to temporarly change the user
profile in the middle of a script.  I would prefer to do this than to change
ownership of files to allow the script to be able to read them.  I don't
know whose files I will be reading when the script runs, however I need to
be able to read files from /home/*/Mail on a user by user basis.  Is this
possible??

Jeff Means
CIO for PicoTech.NET


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




[PHP] PHP and https no working recieving cookies and header info how to fix needed.

2002-09-27 Thread Jeffrey D. Means

I am using PHP 4.2.3 with Apache-SSL 1.3.26 and need some advice on how
to get my scripts to receive the cookies that I am setting along with
the POST and GET values from the preceding form.  How do I go about this
task?  My thanks in advance for any help offered as I am totally
stumped.
 
Jeff Means
[EMAIL PROTECTED]



Re: [PHP] using require

2005-07-08 Thread Jeffrey D. Means
On Sat, 2005-05-14 at 19:34 -0700, Richard Lynch wrote:
 On Fri, October 14, 2005 11:33 am, Cima said:
  i have my web site working something like this: in every php script i have
  require(auth.php). this auth.php has my connection to my postgresql server
  and database along with some other stuff i need for the user to be
  authenticated to my web site. when i log on, this auth.php connects to the
  dbserver and checks if my username and password are stored and then i go
  to a home page. my connection is stored in $dbh.
  what happens when i start moving through all these web pages (php
  scripts), each requires auth.php, with respect to the connection? is a new
  connection established for every web page i go into that uses my $dbh for
  querying purposes or is it the same connection i originally made when i
  first logged into the web site?
 
 You'll get a new connection on each page.
 
 Which is good, because database connections CANNOT be shared across page
 hits.
 
 If you use _pconnect, you can get a refurbished connection from the
 database instead of a truly new one.  But there are gotchas with that,
 and I wouldn't recommend you jump into that without a lot more
 research/experience.
 
 I would suggest, however, that you put the database connection in a
 totally separate file from the auth.php, and require them separately.
 
 You may find more uses for your database some day, maybe even for pages
 that do NOT require authentication, and you'll more easily do that if you
 can just do:
 ?php require 'db_connect.php';?
 
 For the pages that need authentication, you'd do:
 ?php
   require 'db_connect.php';
   require 'auth.php';
 ?
-- Better yet:
file auth.php:
require_once 'db_connect.php';

Ever since discovering the [require|include]_once I have wondered how I
managed before...

Hope this helps
-- Jeff
 You could also look into http://php.net/require_once, but I tend to find
 that people who start off with that end up being sloppy coders and end up
 having a whole rats' nest of includes with no real Plan behind them, which
 cause problems in the long run.  Just my opinion, and I'm bound to take
 flak for it.
 
 -- 
 Like Music?
 http://l-i-e.com/artists.htm
 
-- 
Jeffrey D. Means   [EMAIL PROTECTED]
Owner / CIO for MeansPC   http://www.meanspc.com/
Custom Web Development For Your Needs. (970)308-1298

- The stupidity of a stupid person is exercised in a restricted
field; the stupidity of an intelligent individual has a much broader
diffusion, and far greater effect, aided  as it is by the element
of surprise.

- WTO + WIPO = DMCA? http://www.anti-dmca.org
- Fight Internet Censorship! http://www.eff.org
= This is not about Napster or DVDs. It's about your Freedom.
http://www.anti-dmca.org

My Public PGP Key ID is: 0x81F00126
and available via:  
http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x81F00126



signature.asc
Description: This is a digitally signed message part


Re: [PHP] Very Basic question: What IDE/tools I need to begin using PHP?

2005-07-26 Thread Jeffrey D. Means
To expand a little: Zend Client is super for debugging on a localhost
but if you want a team of developers to have debug / profile tools then
Zend Studio Server is the tool.  I would suggest that you apply for the
Zend Small Business program if these tools meet your needs for one low
yearly price you get both plus the encoder and the server module to
handle deployments, or testing...  I hope this is helpful.

--Jeff
On Tue, 2005-07-26 at 18:32 +0100, André Medeiros wrote:
 You would actually only need Zend Studio Client.
 
 It's the best PHP IDE i've ever tried (and believe me, i've been around ;)
 
 On 7/26/05, Taksam [EMAIL PROTECTED] wrote:
  Hi everybody, I am learning PHP, and have this very basic question:
  
  What software/tools I need to begin?
  What is the best IDE I can use? (in windows) Please tell me about 
  FULL-IDEs, not just super text editors that can syntax-highlight PHP 
  code. I want to debug, deploy... ALL!
  I have just downloaded Zend Studio Client AND Zend Studio Server. Is that 
  all I need to begin?...
  
  Tak
  
  
  -
   Start your day with Yahoo! - make it your home page
 
 
-- 
Jeffrey D. Means [EMAIL PROTECTED]
MeansPC

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



[PHP] anyone have any idea as to how to display a message after a page has started loading??

2003-08-22 Thread Jeffrey D. Means
I am looking for a way to say please wait generating thumbnails... while
actually doing so.  I have tried calling the JavaScript alert() function
before starting the image processing but it waits for the page to
complete loading before displaying the alert box.  anyone have any ideas
on this??  BTW: at the time I am trying to display a message I have
already started output to the browser.
 
---
Jeffrey D. Means
CIO for MeansPC
[EMAIL PROTECTED]
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 8/19/2003
 


[PHP] RE: [users@httpd] RE: Can't POST over 500K

2003-08-24 Thread Jeffrey D. Means
This is not an apache proble it is a problem with your php.ini file.  In
this file there is a line that specifies how large of POST data can be
received, the default is 500k.  If you are running apache 2.0 there is
an additional place where this might be being defined.  You can find
this file in the conf.d directory where your config files for apache
live mine is /etc/httpd/conf.d/php.conf  I hope this helps.

-Original Message-
From: Caldwell Sgt Brandon L [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 22, 2003 1:17 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [EMAIL PROTECTED] RE: Can't POST over 500K


It really seems like apache isn't letting me post over 500kb. Here is
the sample code I used to test this problem independantly from the
bulletin board software:

form name=form1 method=post action=
enctype=multipart/form-data input type=file name=imagefile 
 
input type=submit name=Submit value=Submit 
  ?
if(isset( $Submit ))
{
copy ($_FILES['imagefile']['tmp_name'],$_FILES['imagefile']['name']) or
die (Could not copy);
echo ;
echo Name: .$_FILES['imagefile']['name'].;
echo Size: .$_FILES['imagefile']['size'].;
echo Type: .$_FILES['imagefile']['type'].;
echo Copy Done;//}
}
?/form

I may have to break down and send this in chunks, but it really seems
that shouldn't be required. As for my phpinfo() response, it list 20M
which is what is in php.ini. I've gone all the way up to 200M just to be
sure.

-Original Message-
From: Leif W [mailto:[EMAIL PROTECTED]
Sent: Friday, August 22, 2003 9:54 AM
To: [EMAIL PROTECTED]
Subject: Re: [EMAIL PROTECTED] RE: Can't POST over 500K


If it is in fact a timeout issue, you may want to consider either
breaking up the file into smaller chunks and reassembling on the server,
or have the script only read so much, then stop and alert the client
with a page with a refresh and some javascript to resubmit the file
again, and have the server seek to the right position and read another
chunk of data, and so on until the file is done.  Not sure how to do it
in PHP.  I think PHP doesn't let you get at the system reads for a file
upload, it just does it and sticks it in $_FILES.  But Perl will let you
do such a thing, as there's no built-in mechanism for file uploads, it
has to be coded, or use some module.

Leif

- Original Message - 
From: Mike [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 22, 2003 9:36 AM
Subject: Re: [EMAIL PROTECTED] RE: Can't POST over 500K


 At 06:30 AM 8/22/2003, you wrote:
 So no one else has anything suggestions on this?
 
 -Original Message-
 From: Caldwell Sgt Brandon L
 Sent: Wednesday, August 20, 2003 7:46 AM
 To: '[EMAIL PROTECTED]'
 Subject: Can't POST over 500K
 
 
  Not sure if this is Apache or PHP, but I'm leaning towards
Apache.
 I'm using Invision Power Board (also phpBB), and whenever I attempt 
 to upload a file, I am limited to 500KB files.  I've changed all the 
 setting
in
 php.ini as well as the settings in each of the respective BB
configurations.
 The error varies per browser: IE returns page not found; Mozzilla 
 return The document has no data.; Konqueror responds with a lost
connection.
  I'm using Apache 2.0.40 with PHP 4 on a RedHat 9.0 server.
Thanks

 Someone else would be better suited then me to point you were to 
 change it (whether Apache or PHP or the Bulletin Board software), but 
 I would check time-out settings.

 500kb files are pretty large, even for Cable, ISDN and DSL 
 connections. I just uploaded a 700+kb file to one of our servers (in 
 my case I used a
Miva
 applet I wrote some years ago to upload the file).

 I'm on business DSL (typically faster than residential DSL services) 
 and that 700+kb file took awhile to upload. I didn't time it (I should

 have - duh). While it didn't take minutes, it wasn't near 
 instantaneous either.

 So rather than checking for a size limit, it might be worth looking 
 into a potential low time-out setting somewhere in your configuration 
 or application(s).

 Hope that helps.
 -mike


 -
 The official User-To-User support forum of the Apache HTTP Server 
 Project. See URL:http://httpd.apache.org/userslist.html for more 
 info. To unsubscribe, e-mail: [EMAIL PROTECTED]
   from the digest: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]






-
The official User-To-User support forum of the Apache HTTP Server
Project. See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
The official User-To-User support forum of the Apache HTTP Server
Project. See URL:http://httpd.apache.org/userslist.html for more info.
To 

[PHP] imap_open() and courier-imap server

2003-06-25 Thread Jeffrey D. Means
This code does not work with my system.  Any ideas as for a work arround??

--code starts
$config[imap_server] = bast.picotech.net;
$config[imap_port] = 143;
$mailbox = INBOX;
$login[username] = myusername;
$login[password] = mypassword;
$servername = { . $config[imap_server] . : . $config[imap_port] .
} . $mailbox..;
$mbox = imap_open( $servername, $login[username], $login[password] );
--code ends

Jeff Means
CIO for Picotech
[EMAIL PROTECTED]


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



[PHP] does anyone know how to tell if a PHP scrip is being executed from the command line not a server HTTP request??

2003-07-06 Thread Jeffrey D. Means
I am trying to write a script but for security I need to verify that it is
not executed by a web server.  At this point I have just placed it outside
the htdocs tree but would like to build into the script a test to die if it
is being executed by a web server.

Thanks

Jeff Means
CIO for MeansPC
[EMAIL PROTECTED]


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