No, that will work fine. Just having ? at the end of the URL just means
an empty querystring - same as if you had nothing there.
Regards
Jasper Bryant-Greene
Cabbage Promotions
http://fatalnetwork.com/
[EMAIL PROTECTED]
Gerard Samuel wrote:
Im currently modifying templates to include the SID
On Monday 22 December 2003 01:20 am, Gerard Samuel wrote:
My question is, are there any known problems with just having '?' at the
end of urls/links?
Don't worry, I think I figured out another way...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hello all i need a little help with serialize and unserialize
here is my code
?php
session_start();
if(!isset($_COOKIE['data'])) { //Check to see if cookie is
there.
include(cookie_num.dat);
$y = $password;
//Assign a special number
Hi!
Andreas Magnusson wrote:
I'm writing a script to view/download an email-attachment. If the file
happens to be an MS Word document and the browser IE (only tried with
6.0), then the download fails.
If I choose to download (Content-Disposition: attachment;
filename=whatever.doc) then only
On Monday 22 December 2003 02:14 am, Jasper Bryant-Greene wrote:
No, that will work fine. Just having ? at the end of the URL just means
an empty querystring - same as if you had nothing there.
Regards
Thanks. My other idea didn't pan out, so Im going back to this idea.
Back to work for
Hello!
I have search for info in this group about this topic and found it but can't
get working my program.
These are the steps I have done:
1º Download and install latest php version (4.3.4)
2º Test that it works (IIS)
3º Change php.ini:
extension_dir = install_dir/extensions/
uncomment
Hi!
I'm new here. Where found I listarchive?
Otherwise I'm looking for mailing list develope with php (SMTP or...)
Regards,
Janos from HU
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
php-general Digest 22 Dec 2003 08:54:25 - Issue 2487
Topics (messages 173112 through 173138):
Re: [posibleOT] Forcing entering te site thru index.php
173112 by: Andreas Magnusson
173114 by: Eugene Lee
HTTP headers, IE and downloading
173113 by: Andreas Magnusson
Is there a way of modifying the include_path within a script, I want to add to it,
not completely change it. The sort of thing that I want to do is equivalent to
the following bit of shell code:
PATH=$HOME/bin:$PATH
ie add a user specific part to the path - so that a production/test
set_include_path(get_include_path().:/new/incude/path);
-Original Message-
From: Alain Williams [mailto:[EMAIL PROTECTED]
Sent: 22 December 2003 10:16
To: [EMAIL PROTECTED]
Subject: [PHP] include_path
Is there a way of modifying the include_path within a script,
I want to add
Hello,
I have a problem understanding following chunk of code. It seems that global
$rme does not remember an reference to $this, but instead it is remembering
null or something like that:
?PHP
class A {
function rememberMe() {
global $rme;
$rme = $this;
On Mon, Dec 22, 2003 at 11:57:58AM +0100, rush wrote:
Hello,
I have a problem understanding following chunk of code. It seems that global
$rme does not remember an reference to $this, but instead it is remembering
null or something like that:
?PHP
class A {
function
Hello!
I have search for info in this group about this topic and found it but can't
get working my program.
These are the steps I have done:
1º Download and install latest php version (4.3.4)
2º Test that it works (IIS)
3º Change php.ini:
extension_dir = install_dir/extensions/
uncomment
Messju Mohr [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
this creates a reference from $rme to $GLOBALS['rme']
$rme = $this;
this create a *new* reference from $rme to $this. so only a local $rme
is referencing $this now. change the line to
Janos --
...and then Kovy said...
%
% Hi!
Hi, and welcome to the list! We're glad to have you.
In the future, though, please don't just reply to any old list message
and start a new subject; it doesn't really separate your message from its
parents.
%
% I'm new here. Where found I
php 4.3.0 + apache + linux suse 8.2
I tried to install xdebug (http://www.xdebug.org/install.php) as an
precompiled module, but it seems not running when I did reload apache.
I mean, I can't see it in the module list in phpinfo() page.
Also, I don't know how to catch up events sent by debugger,
Alberto M. wrote:
php 4.3.0 + apache + linux suse 8.2
I tried to install xdebug (http://www.xdebug.org/install.php) as an
precompiled module, but it seems not running when I did reload apache.
I mean, I can't see it in the module list in phpinfo() page.
Also, I don't know how to catch up events
Hi All,
I am trying to sort a multi-dimensional array using a value in the second
dimension. I have looked at the usort examples but don't fully understand
what usort is actually doing so am struggling. I have tried the following:
if (! getmxrr($this-_Domain, $as_hosts, $ai_weights))
{
Ooops, forgot to specify the compare function with usort(); all working now.
Phil.
-Original Message-
From: Phil Ewington - 43 Plc [mailto:[EMAIL PROTECTED]
Sent: 22 December 2003 14:08
To: [EMAIL PROTECTED]
Subject: [PHP] sorting multi-dimensional arrays
Hi All,
I am trying to sort
I want to out put three bits of text...
I want my end page to look like this...
=
result 1
result 2
result 3
=
here's the code I've got...
===
?
$i = 1;
while ($i = 3) {
$options$i = result $i;
}
?
html
body
?=$option1 ?
?=$option2 ?
?=$option3 ?
Hola, PHP folk!
I hope this is an appropriate forum for this:
I am setting up a Redhat 9 webserver to serve as my testbed for a little
php/mysql app I want to develop. I installed RH9 without the
webserver/php/mysql so I could manually install the most current versions.
MySQL 4.0.16 installed
?
$i = 1;
while ($i = 3) {
$options$i = result $i;
}
?
You want this:
${$options{$i}} = result $i;
For the sake of clarity I typically do something like the following:
$i = 1;
while ($i = 3) {
$varName = $options . $i;
${$varName} = result $i;
}
Chris
--
PHP General Mailing
Hello. How can i build e-commerce site with php. Do you know any
source,documentation,e-book.
Please help me.
if you use msn messenger, please add me your contact list.
messenger : [EMAIL PROTECTED]
_
MSN 8 with e-mail virus
go and check out www.hotscripts.com - there's load of ecomerecce scripts
there.
regards
Pete
Pehepe Php wrote:
Hello. How can i build e-commerce site with php. Do you know any
source,documentation,e-book.
Please help me.
if you use msn messenger, please add me your contact list.
messenger :
Cheers...
Doesn't work for me though...?
What do the '{' mean when declaring the variable?
Chris Boget [EMAIL PROTECTED]
22/12/2003 14:16
To
[EMAIL PROTECTED], [EMAIL PROTECTED]
cc
Subject
Re: [PHP] combining two variables to make one???
?
$i = 1;
while ($i = 3) {
$options$i =
Doesn't work for me though...?
Which isn't working?
This:
${$options{$i}} = result $i;
or this:
$i = 1;
while ($i = 3) {
$varName = $options . $i;
${$varName} = result $i;
}
What do the '{' mean when declaring the variable?
I can't remember where it is in the documentation, but
I am a monkey...
I had me angle bracket the wrong way round... what a stoner...!
Chris Boget [EMAIL PROTECTED]
22/12/2003 15:04
To
[EMAIL PROTECTED]
cc
[EMAIL PROTECTED]
Subject
Re: [PHP] combining two variables to make one???
Doesn't work for me though...?
Which isn't working?
Hi,
I've got an Apache 2 setup with PHP 4.3.4 running many virtual hosts. Each
user has a virtual host of his own, and many use php. I've set
SuexecUserGroup to the username and group of the individual user, yet
running phpinfo() as that user reveals under section apache2handler that
it runs as
Can anyone pls tell me with an example on how to select distinct values from a
multi-dimensional array. Moving distinct values into another array is ok.
Thanks !
hello all i need help to enter one variable in a cookie and then retreive it back
later, i know this probably sounds dumb to most but this is really the first time ive
tried working with cookies so please bear with me, thanks for any help.
You should use stripslashes to get rid of escaped characters in
$_COOKIE['data']. Then remember to use addslashes when you want to use
$data or $chksum in sql queries.
[EMAIL PROTECTED] wrote:
Hello all i need a little help with serialize and unserialize
here is my code
?php
[snip]
hello all i need help to enter one variable in a cookie and then
retreive it back later, i know this probably sounds dumb to most but
this is really the first time ive tried working with cookies so please
bear with me, thanks for any help.
[/snip]
this should give you a good start
I've read through the archives and run through some of the suggestions
given for progress bars and pop ups with animated gifs and haven't had
much luck.
I've had the most luck using the pop-up window method. In the form
element I call onSubmit={open some window here} This works as the pop-up
Hi Ed,
Every time I see someone ask about an upload meter a hardcore programmer writes back
saying no one ever asks for it so why should anyone work on one? I have a demo up of
what you might be looking for, check it out here:
http://www.pfohlsolutions.com/projects/upload/
You will need to
[snip]
I've had the most luck using the pop-up window method. In the form
element I call onSubmit={open some window here} This works as the
pop-up
appears while the file is transferring. Here's where I run into
problems.
I've tried all kinds of examples found on google and can never get it
to
If I understand you correctly, when you call window.close on the next
page you want it to close the child window. I am not sure if this is
possible
with Javascript if you go to a new page, it might be. You would want
to not call window.close but something like myPopUp.close() on the next
Error:
Parse error: parse error, expecting `']'' in
/usr/local/apache/htdocs/UP/index.php on line 871
Line 871:
mysql_query(INSERT INTO domainregistrations (domain,type,years,price)
VALUES
Perhaps it doesn't like the fact that you don't have quotes around your
array keys?
--Sam
Tyler Longren wrote:
Error:
Parse error: parse error, expecting `']'' in
/usr/local/apache/htdocs/UP/index.php on line 871
Line 871:
mysql_query(INSERT INTO domainregistrations
Sorry, should have mentioned that I tried quoting them already. That
gives a T_VARIABLES parse error.
Thanks for the reply,
Tyler
On Mon, 2003-12-22 at 12:30, Sam Masiello wrote:
Perhaps it doesn't like the fact that you don't have quotes around your
array keys?
--Sam
Tyler Longren
Thanks for your reply!
Have a look at: http://pear.php.net/package/HTTP_Download
I looked at it and it's hard to see what it does differently from what I
do...
And the first comment of:
http://www.php.net/manual/en/function.session-cache-limiter.php
Thanks, I've read that and I'm not using
I was wondering a good place I could get started on reading excel
spreadsheets in PHP ive seen a couple of things out there that will take
data from the web and transform it into a .xls file. I was wondering if I
could take a XLS file with php and read it, and rip out certain data from it
:-) but
[snip]
Sorry, should have mentioned that I tried quoting them already. That
gives a T_VARIABLES parse error.
Thanks for the reply,
Tyler
[/snip]
What happens if you comment out the mysql statement and just echo the
variables?
echo $_POST[domainregister_domain$i]
[snip]
I was wondering a good place I could get started on reading excel
spreadsheets in PHP ive seen a couple of things out there that will
take
data from the web and transform it into a .xls file. I was wondering if
I
could take a XLS file with php and read it, and rip out certain data
from it
Tyler Longren wrote:
Error:
Parse error: parse error, expecting `']'' in
/usr/local/apache/htdocs/UP/index.php on line 871
('$_POST[domainregister_domain$i]',
If you're going to be creating array keys like that, break out of the
string to do it.
(' . $_POST['domainregister_domain' . $i] . ', ...
Andrew Kwiczola wrote:
I was wondering a good place I could get started on reading excel
spreadsheets in PHP ive seen a couple of things out there that will take
data from the web and transform it into a .xls file. I was wondering if I
could take a XLS file with php and read it, and rip out
Ed Curtis wrote:
If I understand you correctly, when you call window.close on the next
page you want it to close the child window. I am not sure if this is
possible
with Javascript if you go to a new page, it might be. You would want
to not call window.close but something like myPopUp.close()
Hi Matt,
I put this right above like 871:
print brbr$_POST[domainregister_domain$i]brbr;
So now that print line is 871. It produces the exact same error as
the mysql_query() line.
The reason I'm doin it like this is cuz I'm dynamically generating
forms, and lots of the fields are the same,
Doing this fixed it:
mysql_query(INSERT INTO domainregistrations (domain,type,years,price)
VALUES
('$_POST[domainregister_domain]$i','$_POST[domainregister_type]$i','$_POST[domainregister_years]$i','$_POST[domainregister_price]$i'));
I just moved the $i to the outside of the [] and it works now.
Ben,
I was trying the same thing, but I am not sure you are using the same
setup as me. My office runs a windows 2000 domain with a Exchange server
2000 box. All profile information is stored in the windows 2000 domain
controller, and the exchange server accesses the information from there.
[snip]
I put this right above like 871:
print brbr$_POST[domainregister_domain$i]brbr;
So now that print line is 871. It produces the exact same error as
the mysql_query() line.
[/snip]
I should have mentioned this in my last email. You should try a
print_r of the $_POST array.
print pre;
Steve, et al --
...and then Steve Murphy said...
%
% Every time I see someone ask about an upload meter a hardcore programmer writes
back saying no one ever asks for it so why should anyone work on one? I have a demo up
of what you might be looking for, check it out here:
Heh :-) I always
Tyler Longren wrote:
Hi Matt,
I put this right above like 871:
print brbr$_POST[domainregister_domain$i]brbr;
So now that print line is 871. It produces the exact same error as
the mysql_query() line.
The reason I'm doin it like this is cuz I'm dynamically generating
forms, and lots of the
Hey,
I have stored the name of a function as a variable. I have then passed the
variable to another function as follows:
//put function name in a variable
$contentfunction = newsadmincontent();
//pass variable to another function
Html_content($contentfunction);
//function is:
function
I have 2 list fields in a form. The second is populated basing on selection in field
1. Can anyone pls tell me how to do this in PHP ?
On Mon, 2003-12-22 at 12:36, Carey Baird wrote:
Hey,
I have stored the name of a function as a variable. I have then passed the
variable to another function as follows:
//put function name in a variable
$contentfunction = newsadmincontent();
//pass variable to another function
try eval($contentfunction);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have 2 list fields in a form. The second is populated basing on
selection in field 1. Can anyone pls tell me how to do this in PHP ?
You can't do this with PHP. PHP is server side which means it only
reacts after a request has been made to the server (by loading a Web
page or submitting a
David,
A window will popup with the progress meter. Obviously don't block popups and try
using a larger file if you have a high speed line, it takes a second for the meter to
start and if the upload is done it won't popup properly.
Steve
-Original Message-
From: David T-G
Eval ($contentfunction); gave me a parse error:
Parse error: parse error in /home/pickled/public_html/main/inc/html.php(145)
: eval()'d code on line 1
$$contentfunction didnt output anything
Any other ideas?
-Original Message-
From: Brad Pauly [mailto:[EMAIL PROTECTED]
Sent: 22
[snip]
I have 2 list fields in a form. The second is populated basing on
selection in field 1. Can anyone pls tell me how to do this in PHP ?
[/snip]
you can't, onchange is fired with javascript on the client. You have a
number of ways you can do it a few are.
1. have on change submit the form
Hey there...
Are you using a windows server? If so, I can provide you with code
examples as to how to select fields and write new excel docs using the
COM stuff built into windows.
For linux, things get a little bit more complicated -- really, you just
need some sort of external app to do the
[snip]
Eval ($contentfunction); gave me a parse error:
Parse error: parse error in
/home/pickled/public_html/main/inc/html.php(145)
: eval()'d code on line 1
[/snip]
try to add a semicolon to the end of the variable $contentfunction =
newsadmincontent();;
--
PHP General Mailing List
On Mon, 2003-12-22 at 12:43, Carey Baird wrote:
Eval ($contentfunction); gave me a parse error:
Parse error: parse error in /home/pickled/public_html/main/inc/html.php(145)
: eval()'d code on line 1
$$contentfunction didnt output anything
Any other ideas?
What are you trying to do
Did you try session_cache_limiter('private_no_expire')?
Andreas Magnusson wrote:
Thanks for your reply!
Have a look at: http://pear.php.net/package/HTTP_Download
I looked at it and it's hard to see what it does differently from what I
do...
And the first comment of:
Carey Baird wrote:
Hey,
I have stored the name of a function as a variable. I have then passed the
variable to another function as follows:
//put function name in a variable
$contentfunction = newsadmincontent();
Take off the parenthesis...
$contentfunction = 'newsadmincontent';
To call the
Steve --
...and then Steve Murphy said...
%
% David,
% A window will popup with the progress meter. Obviously don't block popups and try
using a larger file if you have a high speed line, it takes a second for the meter to
start and if the upload is done it won't popup properly.
Ah. Since I
On Mon, 2003-12-22 at 13:09, John W. Holmes wrote:
Carey Baird wrote:
Hey,
I have stored the name of a function as a variable. I have then passed the
variable to another function as follows:
//put function name in a variable
$contentfunction = newsadmincontent();
Take off the
I'm trying to write a class for abstracting some aspects
of database programming and am running into a problem:
http://hashphp.org/pastebin.php?pid=567
The code works fine for the first instantiation of the DbTable (Product)
class,
but not the second. It seems clear that the reason it works the
Well its actually a pure PHP upload meter it just uses JS to open the window. You
could make PHP open the window as well with a little tweaking.
-Original Message-
From: David T-G [mailto:[EMAIL PROTECTED]
Sent: Monday, December 22, 2003 3:16 PM
To: [EMAIL PROTECTED]
Cc: Steve Murphy
Steve, et al --
...and then Steve Murphy said...
%
% Well its actually a pure PHP upload meter it just uses JS to open the window. You
could make PHP open the window as well with a little tweaking.
Now that might interest me. So what has been added to the PHP codebase
that makes this work?
Your subject line raises a completely different question than your message.
Are you looking to sort a multi-dimensional array or select distinct
values from one?
--
Matt Grimm
Web Developer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Parkway
Anchorage, AK 99508
Thankyou, put me on the right track :)
Jasper Bryant-Greene [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi Eric
What you need to do is make another PHP page, maybe info.php, which will
fetch the info field from the DB and display it.
So for example, assuming the eventname
Steve Murphy mailto:[EMAIL PROTECTED]
on Monday, December 22, 2003 1:03 PM said:
Well its actually a pure PHP upload meter it just uses JS to open the
window. You could make PHP open the window as well with a little
tweaking.
Unless I'm missing something here this is incorrect. PHP does
Now that might interest me. So what has been added to the PHP codebase
that makes this work? And what tweaking would I need to do? [Can't I
just have it display in the current window? Why bother with a popup?]
From rumors I've heard on the list a future version of PHP may have a
progress
Not sure why it isn't checking my post vars correctly... any help is
appreciated.
Thanks in advance Jas
while($a = mysql_fetch_array($x)) {
list($_SESSION['id01'],$hn,$ma,$i,$v) = $a; }
$_SESSION['search'] = ...new form with listed vars...;
} elseif ((empty($_POST['hosts01']))
I'm wondering if anyone knows of a good file system script that allows some
one to do searches on files in a directory. For instance I'm storing resumes
in folder defined on upload dates and so forth and want to be able to do
searches through these files for keywords and would like to be able to
Cliff Wells wrote:
I'm trying to write a class for abstracting some aspects
of database programming and am running into a problem:
http://hashphp.org/pastebin.php?pid=567
Well, I kept hacking at it and changing the describe() method from this:
// get a description of a table
function
I am having a really unusual problem. In my database, I currently have
string such as:
I went to the store and bought some food. I then decided to go to the
movies and I saw
Bad Boy II.
When I extract the data out of the database, the data always seems to get
cutoff. In other words, I will only
I have written scripts to upload pdf files into mysql. I have the scripts
created to access those files and produce them for the user on the fly. All
well and good. Now I have a need to access one of those files and insert
its contents into a new pdf report. I have purchased the PDFlib+PDI and
Hi!
Andreas Magnusson wrote:
Have a look at: http://pear.php.net/package/HTTP_Download
I looked at it and it's hard to see what it does differently from
what I do...
Use Ethereal or your own tracer to find out! And compare to a direct request
to a real file!
AFAIK the headers sent here are:
Is your field too small? MySQL doesn't complain when you give it a string
longer than it can accept based on the field's size. It just cuts off what
doesn't fit :-)
-Original Message-
From: Dale Hersh [mailto:[EMAIL PROTECTED]
Sent: Monday, December 22, 2003 6:50 PM
To: [EMAIL
Larry Brown mailto:[EMAIL PROTECTED]
on Monday, December 22, 2003 3:59 PM said:
Is your field too small? MySQL doesn't complain when you give it a
string longer than it can accept based on the field's size. It just
cuts off what doesn't fit :-)
Uhh... he stated in his original email
My bad, didn't read far enough...
-Original Message-
From: Chris W. Parker [mailto:[EMAIL PROTECTED]
Sent: Monday, December 22, 2003 7:04 PM
To: Larry Brown; Dale Hersh; PHP List
Subject: RE: [PHP] PROBLEMS WHEN EXTRACING DATA FROM MSSQL DATABASE WITH
PHP
Larry Brown mailto:[EMAIL
In hopes that this may be of help to you...I had a hell of a time getting IE
to download pdfs that I create on the fly and finally with the help of a
couple people I got the magic code which was...
$len = strlen($buf); //buf was holding the pdf doc.
header(Pragma: public);
header(Expires: 0);
For some reason when I echo data from my database, I can't display anything
longer than 255 chars. As far as I can see, tt has nothing to do with my
database. Is there something in the php.ini that limits how many chars you
can write to the screen per variable.
--
PHP General Mailing List
I had a similar problem, but never found an answer. In my situation, the
browser hung when I uploaded a file greater than 800 records. I found a post
that said I should echo something to the browser on a regular basis during
the upload, but that didn't work.
This is still of interest to me to
I've got a situation where I want to upload a file to a server then enter
the data in that file into mysql. I have used this well documented upload
form
form enctype=multipart/form-data action=_URL_ method=POST
Send this file: input name=userfile type=file
input type=submit value=Send File
On Mon, 2003-12-22 at 20:34, Dale Hersh wrote:
For some reason when I echo data from my database, I can't display anything
longer than 255 chars. As far as I can see, tt has nothing to do with my
database. Is there something in the php.ini that limits how many chars you
can write to the screen
-Original Message-
From: Dale Hersh [mailto:[EMAIL PROTECTED]
Sent: Monday, December 22, 2003 8:34 PM
To: [EMAIL PROTECTED]
Subject: [PHP] UNUSUAL PROBLEM WHEN WRITING TO THE SCREEN
For some reason when I echo data from my database, I can't
display anything longer than 255
On Tuesday, December 23, 2003, at 12:34 PM, Dale Hersh wrote:
For some reason when I echo data from my database, I can't display
anything
longer than 255 chars. As far as I can see, tt has nothing to do with
my
database. Is there something in the php.ini that limits how many chars
you
can
Hi!
Andreas Magnusson wrote:
I'm writing a script to view/download an email-attachment. If the file
happens to be an MS Word document and the browser IE (only tried with
6.0), then the download fails.
If I choose to download (Content-Disposition: attachment;
filename=whatever.doc) then only a
Hello,
On 12/22/2003 05:26 AM, Homer wrote:
Notice: fopen(): Unable to find the wrapper https - did you forget to
enable it when you configured PHP? in
C:\Inetpub\PostNuke-0.726\mpValidar.php on line 62
The line above says it all. I think the right scheme name is ssl, not
https .
Alternatively
Can anyone pls tell me with an example on how to select distinct values from a
multi-dimensional array. Moving distinct values into another array is ok.
Thanks !
Hi everyone. Hopefully someone can help me out.
Here is what I have:
The user enters traveler names on page 1. blah blah on next couple.
Page 7 shows hotel information. I have the array of travelers names
being outputed into a select field on the page, all fine and dandy.
Where I'm having a
94 matches
Mail list logo