Errr... it from ASP (shoot)
are you 100% sure?
-Original Message-
From: Owen Rudge [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 01, 2001 1:12 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Download file
> What I need to do, is specify the default directory for this file to be
> saved
$len");
header ("Content-Disposition: attachment; filename=download.tar");
readfile($filename);
===end code snippet=
What I need to do, is specify the default directory for this file to be
saved to. Does anyone know how to do this?
Thanks.
Karl J. Stubsjo
GlacierHello,
I'm reading a file into memory and I'd like to split each of the individual
lines into an array. How would I do this?
Thanks,
Karl J. Stubsjoen
www.iexcelinlife.com
[EMAIL PROTECTED]
Phone: 602.447
--
PHP General Mailing List (http://www.php.net/)
To unsubscri
GlacierHello,
I need to zip multiple files into 1 zip file for download. Which function
do I use to accomplish this?
Thanks!
Karl J. Stubsjoen
www.iexcelinlife.com
[EMAIL PROTECTED]
Phone: 602.447
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
GlacierI need to do a few things with files... 1 of them being to iterate
through a directory and display each file. How do you do this?
Karl J. Stubsjoen
www.iexcelinlife.com
[EMAIL PROTECTED]
Phone: 602.447
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail
Hey Guys,
Anyone have any good starting points for delivering charts on the web?
Thanks a bunch.
Karl J. Stubsjoen
www.iexcelinlife.com
[EMAIL PROTECTED]
Phone: 602.447
BlankHello,
I need to look up in the PHP online reference other variables similar to
$DOCUMENT_ROOT. I can't find them. Anyone know where to find them at?
Thank you,
Karl J. Stubsjoen
www.excelir.com/worldshop
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e
Originally posted at an HTML newsgroup, but no response : (
Anyone here have any suggestions on the following problem?
> Hello All,
>
> Anyone have any ideas why Netscape 4.0 would be double refreshing my
pages?
> This also occurs, this double refresh, when the page loads for the first
> time. I
Hello,
Has anyone written a nifty little function to add commas to big numbers
like:
119 so--> 1,188,889
If so, please share!
Karl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact th
never mind... 'or - i fixed my own problem! i enabled cacheing on both PHP
pages, the page with the image who's source calls the PHP page that creates
the image.
- Original Message -----
From: "Karl J. Stubsjoen" <[EMAIL PROTECTED]>
To: "PHP Mailing List"
I'm using the SetTimeOut function of JavaScript to refresh an image every 3
seconds. The SRC for the image is a PHP page which constructs a valid image
with some text added to the image and returns the image to the colling
Image. This works fine, however the information should be changing every
Hello,
I'm interested in the technology "Remote Scripting". Basically, I would
like to deliver "real-time" information to a browser without having to
reload the page.
Is anyone familiar with this?
Thanks,
Karl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
Is there a way to set the timeout value for an ODBC connection, lets say for
script trying to query a table which is locked? Right now, the default
timeout value is well over1 minute, and I don't think I can change it
anywhere else (meaning: I don't the the Network Administrator is going to
chan
Hello,
I'm trying to to Image manipulation using PHP. It faild at the first Image
Call (imagefontheight)! So I guess I need to compile my PHP server to
support the extendid list of image functions. What are the steps to doing
this?
Thanks!
--
PHP General Mailing List (http://www.php.net/)
Hello,
this:
prints this:
Resource id #1
I'm trying to print the image as binary or as an image. Have I missed a
step? Hope i'm not being too confusing.
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EM
Hello,
I'd like the source of an image tag to point to PHP code. I'd like that PHP
code to generate an image (accordingly) and print/output the results back to
the calling image. So:
Where, myphpcode.php returns a valid image.
I've done this before, but it is not fresh in my brain.
Any help
Does anyone know how to stream information to a browser (without the client
having to hit refresh)? What do I need to get started? We want to have 2
numbers we want to display on the browser, we want these numbers to change
as the data changes in the table, but done "streaming".
* I am coding t
Hello,
I need a little help getting started with my project (i'm new to PHP). I
need to enumerate all of the files in a folder, their name mostly. How
would I do that?
Thank you!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional com
Okay,
To insert data into an AS400 system (proven on Ver 4.4) you must first:
Begin Journaling for the the file to insert into
This is done by issuing the following command at the command prompt:
STRJRNPF FILE(lib/file) JRN(jrnllib/jrnlfile)
(where test is your libs and files)
Let me know ho
Hello All,
Sometime later today, I will share with all of you how to perform inserts
from PHP using the DB2 Universal Connection into an AS400 Table. Yes, we
figured it out!
Look for my post by end of day (Friday).
Karl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mai
I have 2 functions on my page, RegisterUser, IsValidUser.
RegisterUser looks in the querystring to see if you've passed a certain key
& value. If you have it populates a session variable called "ValidUser"
with a 1.
All that IsValidUser does, is check to see if the session variable
"ValidUser" i
Okay, last one for the day! How do you query the clients IP address? We
have a site in development, and I want to restrict access to people coming
in from certain IP addresses.
Really, all I need to do is query the IP address, I can code the rest of it.
Thanks!
Karl
--
PHP General Mailing L
I am making ODBC connections and MySQL connections, and want to make sure
I'm closing my connection properly. Someone once replied that you do not
need to worry about terminating the query set (for MySQL), that PHP takes
care of this for you, is this true for the ODBC connection as well?
So what
When you @ "at" a command (supress error messaging) within a function, is
the scope of the @ within the function?
Example:
CloseODBC(1);
# is error message supressed here too?
function CloseODBC($connection_id)
{
# error messaging supressed
@odbc_close($connection_id);
}
--
PHP G
Hello, I need to work with files on my web server. I need to be able move
them, delete them, rename them etc...
Is there a section in the documentation devoted to this?
- How do I list files in a directory?
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMA
Is there a way to return the results of a query straight into an array?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Richard,
> If that doesn't help, just start throwing out columns. Or throw them all
> out and build it up 1 column at a time) until you find out which one it
> doesn't like.
I have gone as far as creating a single table with a single alpa field. No
luck there either. It gives me the exact same
Help! (if you can).
I'm having troubles inserting records into our AS400. I've tried just about
every combination I can think of when trying to insert a record, but nothing
is working. Here is the most recent error I keep getting:
Warning: SQL error: [IBM][CLI Driver][AS] SQL7008N REXX variab
Hello,
I'd like to give the user an option to "Save to Disk" the contents of a text
area. Any ideas how to do this?
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list adm
If you don't prefix a global variable with $ then how can you interpit a
global variable within a string? AS IN:
define ("MY_PATH", "/home/me/");
print("This is My Path: MY_PATH or is it?");
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addi
Hello,
I reallize that the SQL syntax should be similar among all DB's which allow
SQL, but there are slight differences amongst them. With that said, I have
written an SQL statement to the AS400 and am getting errors back. So, and I
don't have ANY, I need a site to visit where I can reference
When I do this:
$link = @mysql_pconnect("localhost", $this->db_user_id, $this->db_passwd);
And I do this:
if(!($result = mysql_query($querystr))) { ...
Then I do this:
$result = DoQuery($q);
What objects are there to close? In ASP we issue code like this to close
these objects:
rs.close
set r
What is the purpose of the SPRINTF in this instance?
SPRINTF("SELECT
equence,prodnum,childdesc,onhand,openorders,avlallocate,bakorder,webpricing
FROM prodaval");
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
When I perform thi function:
$new = htmlspecialchars("Test", ENT_QUOTES);
I get the following error:
Warning: Wrong parameter count for htmlspecialchars() in
utility/HTMLFormObjects1-1.php on line 135
Anyone know why?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
Hello,
I'm trying to pass back a link to the user in a textbox (so they can copy
and paste it elsewhere), however my textbox is being parsed incorrectly by
the browser because of the " quotes which happen in the link I'm passing -
basically the HTML for the text box is getting parsed together wit
Is this a tab character \t
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Sprintf formats strings and numbers to a specific format (correct?) then why
is this
$q = SPRINTF("SELECT prodnum, childdesc FROM prodaval");
like that? Why SPRINTF in this case? We are calling a MySQL table, is it
specific to calling a MySQL table or is this required for all calls to a
DB...
What is the way to exit a function? For example:
function FooBar() {
if ($foo = $bar)
Exit_this_Function;
## otherwise execute the rest of this function
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-m
We are running AS400 4.4 and PHP4, not sure what version of Linux we are
running.
- Original Message -
From: "Antonio S. Martins Jr." <[EMAIL PROTECTED]>
To: "Karl J. Stubsjoen" <[EMAIL PROTECTED]>
Cc: "PHP Mailing List" <[EMAIL PROTECTE
Hello,
I'm performing a readfile, and am expecting that if the file isn't found and
error will return unless you add the @ symbol before the readfile function
as in:
$retrn = @readfile ($FileName);
My page only errors, and doesn't return false. I don't want my page to
error, I would like to di
Hello,
We have succesfully installed the IBM DB2 RDMS on our Linux box and have
successfully made a connection to our AS400. All through command line
though.
I am new to PHP, and am wondering:
How do I instantiate the IBM DB2 in PHP, call commands, run queries, etc...?
I'm not looking for all th
I haven't received mail from the PHP list since the 27th. Is it down?
Please respond to:
[EMAIL PROTECTED]
Thank you.
Karl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list admin
Is this a never expiring cookie, or a "per" session cookie? I want to
create a never expiring cooky.
SetCookie ("MyNeverExpiringCookie", "This cookie should never expire");
Thanks!
Karl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additiona
How can I check if Headers have been written to the browser?
Thank You!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
How could I:
How could I check to make sure a page exists before I redirect to it (a page
within my own server, but page name passed in querystring - therefore it
could be changed by client)?
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
F
> > >Does Version 4 support either { } "squiglees" or [ ] "brackets" in this
> > >code:
> > >
> > >if($retrn{strlen($retrn)-1} == '&')
> > >-or-
> > >if($retrn[strlen($retrn)-1] == '&')
> >
> > Yes. This is a 4.x feature only. The idea is that in the long run, []
> > will no longer be supported
Hello,
Does Version 4 support either { } "squiglees" or [ ] "brackets" in this
code:
if($retrn{strlen($retrn)-1} == '&')
-or-
if($retrn[strlen($retrn)-1] == '&')
I am developing on ver 3.0 and the { } don't work in the above, but the
brackets do.
Karl
--
PHP General Mailing List (http://www
Hello,
I want to *read* a file into a page and not process any PHP. I'm just
reading an HTML file. I though it was simple, I thought I had it figured
out, but now when I try, I get the following error:
Fatal error: Call to unsupported or undefined function read() in
/var/www/wherever.com/betas
Hello, So I think I've found 3 ways to describe the HTML Doc as "HTML".
Which one is the best?
1) Via MetTag (this was generated in Dreamweaver):
2) Print Statement at top of page:
print "Content-type: text/html\n\n";
3) Using the PHP Header command:
Should this correctly find '&' or is & and special searching character?
# looking for an & at the end
$retrn = AASIDFIFJ&
if($str{strlen($retrn)-1}=='&')
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAI
Freak'n Duhh! My eyes are still blury to PHP *obviously*.
Thanks!
So $QUERY_STRING eh? I'll look that one up.
Karl
- Original Message -
From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
To: "Karl J. Stubsjoen" <[EMAIL PROTECTED]>
Cc: "PHP Ma
I've tried and tried to figure out what is wrong with this function, but I
can't. Could you please have a look. This function reconstructs the
querystring values passed in the querystring:
function PassOnGetVars() {
global $HTTP_GET_VARS;
#initialize retrn value
$retrn = "?";
#loop th
Hello, I'd like to check for a character at the end of a string, if it
exists remove it, example:
Looking for - Z
In string - StringZ
Result would be - String
-or-
Looking for - Z
In string - StringZzz
Result would be - StringZzz (no change)
Thanks! Karl
BTW: You guys are great!
--
PHP Gen
What is the simplest way to set up a procedure to loop through all passed
querystring values and/or form values?
I'm very new to PHP, and don't know how to set up loops at all.
Thanks! Karl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additi
So my Point is:
What if you require "stored cookies" - cookies written to the users disk?
Hmmm, this cookie test would return true if "per-session" cookies was
enabled and "stored cookies" was disabled.
Karl
- Original Message -
From: "Karl J. Stubsjo
What is wrong with this redirect:
http://www.dogpile.com";
header ("Location: " . $rdrct);
exit;
?>
Thanks! Karl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators,
uot;
And what about NS?
Karl
- Original Message -----
From: "Brian V Bonini" <[EMAIL PROTECTED]>
To: "Karl J. Stubsjoen" <[EMAIL PROTECTED]>; "PHP Mailing List"
<[EMAIL PROTECTED]>
Sent: Wednesday, January 24, 2001 12:56 PM
Subject: RE: [PHP] Test
p!
Karl
- Original Message -
From: "Cal Evans" <[EMAIL PROTECTED]>
To: "Karl J. Stubsjoen" <[EMAIL PROTECTED]>; "PHP Mailing List"
<[EMAIL PROTECTED]>
Sent: Wednesday, January 24, 2001 12:08 PM
Subject: RE: [PHP] ->
> It's means th
What does -> do?
As in:
$Something->then_something_over_here
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
> By trying to set a cookie and read it back.
Okayhere is the scenario:
User originates from STATIC Html page,
Links to my PHP Cookie Test Page
I set a cookie in my PHP Cookie Test Page
Can I then check (safely) for cookies right away in my PHP Cookie Test Page
without involving a 3rd page?
> Karl J. Stubsjoen [[EMAIL PROTECTED]] wrote:
> > Hi,
> >
> > I need to test for cookies. What is the simplest way to do this?
>
> Be a little more specific - do you want to know if there
> are cookies at all, or if there are specific cookies?
>
> Depends
Hi,
I need to test for cookies. What is the simplest way to do this?
Thanks - Karl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
How do I obtain the path of the local script? Or do I have to build it from
the $DOCUMENT_ROOT?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROT
What if I want the function to be processed within the " " quotes? Same as
a variable might be interopelated? IOW, can I call a function without
concantenating the function together with the string?
*being a little stubborn*
- Original Message -----
From: "Karl J. Stu
Okay, what is wrong with this:
echo "...are you logged in: $LoggedIn()";
// outputs:...are you logged in: ()
Function is:
function LoggedIn(){
global $HTTP_POST_VARS
if ($HTTP_POST_VARS["Login"] == "PHPIsCool")
{return "YES";}
else
{return "NO";}
}
I'm having troubles : (
I can't seem to figure out how to retrieve the posted data. I'm trying
this:
$HTTP_POST_VARS["Login"]
! WAIT ! as I write this, I'm guesing that maybe my problem is *scope* (and
not the mouthwash). I'm going to try that right now, set the above var to
global within that
Hello,
What is the equivalent command to Select Case as in:
Select case 10 + 2
case 10
'nope
case 11
'nope
case 12
'yep
case > 13
'yep - but case 12 comes first!
end select
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail
Hello,
Looking through the PHP Site (someone needs to improve the search features),
and can't find information about querying form field values etc...
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PR
Hello,
I am trying to do this:
$myVal = "
*trying to accomplish putting " qotes around my string values*
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators,
I'm a bit troubled with the fact that variables declared at the top of your
script are not then global to functions within that script. That in order
to see that variable within a function you'd have to declare it as global in
the function (understanding that the variable could have been set at t
What is the basic difference between print and echo? As I am understanding
it, Echo allows you to define a multi-line area to output text without
having to repeat quoting for each line but then what is the advantage of
print?
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubs
So what editor is recommended? I'm a little familiar with Emacs (kinda
cool, but I'm use to keywords and such being colored - as in Interdev).
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Are includes supported in ver 3.0?
I'm having troubles with my includes. Here is the include (after this
evening we will ver 4.0):
include ($DOCUMENT_ROOT . "/gophp/Main.php");
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additiona
Is PHP the implied script, so that it is okay to begin PHP code like this http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
What about the security issue mentioned? Is it then possible (using the
include and/or readfile) to grab anything found on the server?
1 More thing: what if I wanted to place the contents of a file into a
variable. How do you achieve that?
Karl *also a newbie, and this is a great group*
--
Is there such thing as program that will convert ASP code to PHP code? I
have built some nice libraries with ASP and am interested in converting
those over to PHP, rather than rewriting them!
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
F
Okay,
There aren't Sub Routines, just Functions? I've been to the manual
recommended by Augusto *thank you*, that is helping!
I created a function called Foo with a single argument (and I set it up as
optional, that is way cool, I can't do that in ASP) ... and my question is:
I can call foo like
Hello,
I'm an ASP guy gone PHP. So, be patient with me as I struggle my way with
PHP. I have a some experience with writing C like syntax, as with
JavaScript and TCL. I hope to pick up PHP quickly.
2 Questions:
How to declare function and sub routines.
How to call functions and sub routines.
78 matches
Mail list logo