I'll have to test, but I think the $filename = "/tmp/".$userfile is what's
messing things up.
$userfile is a link to the temporary file the system creates when storing
the uploaded file. The link includes a full reference to the file name as
well as the system directory path to the file. Appen
On Tue, Jul 02, 2002 at 01:00:48PM -0500, Jay Blanchard wrote:
>
> This is the one that worked, not the other one with the variables. Now this
> one does not work and I don't insert any variables into it.
Let's do a quick test to isolate where the problem is.
Can you exec() some other simple st
Richard Lynch wrote:
>>>The problem is this redirection is being done with the GET method, so
>>>all query string will be shown. How can I make this redirection use the
>>>POST method?
>>>
>>>
>>>
>>You can't. This "redirection" is just a way of informing the browser
>>that it needs to t
On Tue, Jul 02, 2002 at 04:19:50PM -0600, Kevin Stone wrote:
> Oh man I hope you don't shoot yourself when you realize how easy this is..
>
> foreach ($_POST as $key => $val)
> {
> $str .= "&$key=$val";
> }
But, don't forget the post may contain spaces or other characters which
will trip up
On Tue, Jul 02, 2002 at 04:26:02PM -0700, David Busby wrote:
>
> How do you make you PHP scripts require explicit variable
> declaration? Like Java/SQL/C/C++ or 'use strict;' in PERL or 'Option
> Explicit' in VB/VBScript
I think the closest you're going to get is using E_ALL for you
B.C. Lance wrote:
> http://domainname.com/register.php
> display a user registration form having
> [form action="https://domainname.com/register.php"; method="post"]
>
> will the data from that page be encrypted when it is sent via https
> specified in the [form] action?
The answer is yes. The
Cord Schneider wrote:
>Here is an outline of the problem:
>1) client browser hits myPage.php
>2) myPage.php does a few checks & recognises that this is a first visit
>3) myPage.php sets a cookie using setCookie()
>4) myPage.php redirects to checkBrow.php which uses JavaScript to do some
>basic br
Michael Sweeney wrote:
>Your form action parameter has an absolute url specifying an https
>protocol. When the browser submits the form, it uses the url you specify
>which is https. So the request is going to be encrypted. You might
>consider serving the form page from https as well to kind of ti
Scott Fletcher wrote:
>This is a PHP newsgroup, it is for PHP discussion. This is not a PHP
>discussion, so it is a spam mail. Please refrain from using it.
>
>
Actually, I think it is pretty obvious that this guy is just trying to
subscribe. Your email (and consequently mine) are more easi
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
says...
> Just looking for a pointer or functions I can use to do this...
>
> I have a spreadsheet with a couple thousand entries that I'll be using for
> populating a MySQL database. The spreadsheet has names listed in "last,
> first" - the data
I get the following error when i try to install an app
called "PHPwebsite" ( http://phpwebsite.appstate.edu/ )
Warning: Cannot add header information - headers already sent by
(output started at C:\apache\htdocs\php\setup\index.php:9)
in C:\apache\htdocs\php\htmlheader.php on line 30
I also
On Tue, Jul 02, 2002 at 09:49:14PM -0400, admin wrote:
>
> Warning: Cannot add header information - headers already sent by
> (output started at C:\apache\htdocs\php\setup\index.php:9)
> in C:\apache\htdocs\php\htmlheader.php on line 30
The Manual at http://www.php.net/manual/en/function.heade
Okay, here's a stumper for the gurus:
Why does PDF just "stop" on some strings and not print them?
Samples:
http://uncommonground.com/events.pdf?date=7/1/2002
Look at the 19th, 21st, and 26th of July. Look at our on-line calendar:
http://uncommonground.com/events.htm?date=7/01/2002
Source co
I need to echo a string that contains both quotes and double
quotes.
I remember doing this once using a special construct where the
string started on a new line with a triple slash if I remember well. Or
it was a triple something...
I can't find the topic in the online PHP doc...
Anybody rem
>Send us a copy of your script so that we can help. Odds are that you didn't
>specify the proper field name in your upload form.
>
>-Original Message-
>Now I'm getting this error each time I upload a file...
>
>Warning: Unable to open 'none' for reading: No such file or directory
>in /ho
> I'm getting this error message...where does it come from?
>
>Warning: SQL error: [unixODBC][Driver Manager]Data source name not
>found, and no default driver specified, SQL state IM002 in SQLConnect in
>/var/www/html/index.php on line 4@
Microsoft. :-)
Microsoft defines possible database con
http://www.php.net/manual/en/function.fgetcsv.php
that will help you :)
-Original Message-
From: David Robley [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 3 July 2002 11:49 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Help and advice sought - search/replace
In article <[EMAIL PROTECTE
>hi,
>
>the above question has been puzzling me for a while. the situation is this.
>
>http://domainname.com/register.php
>display a user registration form having
>[form action="https://domainname.com/register.php"; method="post"]
>
>will the data from that page be encrypted when it is sent via ht
>Does anyone know what encryption is used on passwords in a .htpasswd file?
I *THINK*:
OS-dependent...
You can install whichever one you like if you work at it.
Sometimes they are even mixed-and-matched over time.
Old entries will be one form, new will be another.
You can just "cat .htpasswd
>I have a problem with pdf_show_boxed(), it doesn't output anything.
>Everything else shows up just fine. Is there something that I have
>overlooked in this code?
>pdf_set_font($pdf, "Times-Roman", 10, "host");
>pdf_show_boxed (
> $pdf,//Object
> $issuedesc, //text
> 70,//left
> 700,
>I have a problem with content data. Currently I do store images inside a
>data folder.
>/data
>
>This is causing a problem, because everytime I installan update of the
>application on the server I have to move this folder around to the new
>version of my application. I am worried that during this
>Has anyone her got any idea how I could access the User Env Vars so I can
>get processor type, speed, ram etc. Is there any way to do this? Or would be
>be something other than PHP. Also I need to do this over the web and not on
>their machine.
For security reasons, you are forbidden that inform
>Here is a piece of my code...
>Could someone tell me what I did wrong? I get the following errors;
>
>Warning: Undefined offset: 1 in c:/www/htdocs/demos/download/inx_news.php on
>line 33
>Warning: Undefined offset: 1 in c:/www/htdocs/demos/download/inx_news.php on
>line 34
>
>(obviously, the li
>a few weeks ago there was discussion on how to force open the dialogue save
>on mac ie using header()
>
>was that issue resolved? is there a solution?
header("Content-type: application/octet-stream");
If that doesn't work, your browser is broken. End of story.
Now, getting the filename you *
>Hi,
>I upgraded to 4.2 and now I get those errormessages
>"Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting
>T_STRING or T_VARIABLE or T_NUM_STRING in ..."
>
>when doing sth like:
>$name = "My $row['name']";
>
>Why?
My Best Guess:
The $row['name'] part should be $row[na
>I am slowly coming up with a solution to my cURL problem and have narrowed
>down the possibilities. One of these being that the cURL command written out
>with variables and such breaks into more than one line. This is not allowed
>in cURL. So, I had decided to write out a file as follows; ($curli
>enctype=multipart/form-data>
>
>
>the rest of the form is there too. And $PHP_SELF is set to $PHP_SELF =
>$_SERVER[PHP_SELF] at the top of the page.
>
>When I select a passcodeFile file to upload and click the "upload"
>button, I am presented with this on the next page:
>"You need to specify a f
>3) myPage.php sets a cookie using setCookie()
>4) myPage.php redirects to checkBrow.php which uses JavaScript to do some
>basic browser detection
>the cookie back to the client browser first, and *then* performs a redirect.
That's nice...
But different browsers handle the headers in different
>getting added to the database (mysql) have a $1$ in front of them. These
I'm pretty sure that's the way the other encryption scheme works.
You've convinced your computer to switch to YYY instead of XXX for
encryption routines...
So now you are using the one with the 18-character salt, instea
>PS. I cannot compile as a binary etc. This configuration is the confi of the
>shared server I am using which is hosted by a third part.
>
>Henry
>
>
Get them to do the exact same command, without the apxs part, and put the
resulting php binary in /usr/bin or somewhere handy...
They *PROBABLY* a
>
>Hi friend,
>
> I am using the SMTP server which needs authentication.
And where did you put the username/password in that will authenticate
PHP?... :-)
I dunno where you have to put it, and maybe you just can't do that, but you
can't expect PHP to just magically "know" your password...
--
>Given I have some content embedded on my page by calling a remote JS and
>occasionally the URL for the remote script is down causing my page to be
>slow or fail, can I use the following example as a means to test and timeout
>the remote server and skip the embedded JS, if the remote server isn't
>Or just fopen() would work fine.
Except you can't set the "timeout" for fopen() and it's incredibly long,
isn't it?...
--
Like Music? http://l-i-e.com/artists.htm
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
>Hello,
> I have a PHP script which gets data from a MySQL database and
>returns an image. So returns the image of
>id 3 from the database. What I really want is to state width is 100 and
>height is 100 for example so I do not have to downlaod the entire
>picture and specify the width and height
>Does anyone know anyway to synchronize calls to php functions.
>I was thinking of writting a hack that uses a lock file on the server put
>if there is a proper way to do it then I would
>rather use that.
>Any suggestions would be good.
Shared memory may be faster than lock files...
*WHY* you t
>What load are you talking about? This is just an issue of telling the web
>browser the image's dimensions. It's not like the image is being processed
>to convert it to that image size.
Au contraire.
If you have an image named 'huge.jpg' at 1 x 1, and you ask a 386
computer to:
Then
> How can I regex to compare the last three chars of a string to "php"?
if (substr($foo, -3) == 'php'){
}
Oh, wait, you wanted to use RegEx. Sorry, can't help you there. :-)
Don't use a cannon to swat a fly.
--
Like Music? http://l-i-e.com/artists.htm
--
PHP General Mailing List (http://
>I forgot to point out another disadvantage of turning on register_globals
>apart from that of security is that when you are sending a page with a
>form to the same page, e.g:
>
>
>
>there is a tendency to lose info.. E.g.
>If you are sending text separated by spaces you only manage to
>send the
>Hi everyone...
>
>I have a php page that return rows from a database. I then have an href
>link to the individual thread as such:
>
>".
>
>
>This works, it opens a new window which has the detailed information needed.
>However, how would I write java code into this to force it to open the
>windo
>> > tecnically whats the diffrance if I do:
>> >
>> > require("http://localhost/image.gif";);
>> > or
>> > require("http://www.domain.com/image.gif";); ?
>>
>> The first one requires the file at "localhost/image.gif", and the
>second
>> one requires the file at "www.domain.com/image.gif".
In
>I have been trying to figure out how to execute
>commands on a win 98 system with php and apache.
>
>exec(), system(), and shell_exec() seem to work when i
>try to execute a command (such as "netstat -n" or
>"dir") because I can see the ms-dos window open on the
>system, run the command, and then
> How do you make you PHP scripts require explicit variable declaration?
>Like Java/SQL/C/C++ or 'use strict;' in PERL or 'Option Explicit' in
>VB/VBScript
The closest you can come is:
This can also be set in php.ini and/or .htaccess
Note that PHP simply does not *have* variable declaration
>I've created the following file (see HTML/JavaScript code below) which
>allows end-users to dynamically (on the client-side) move items from one
>form select list (called "list_managers" to another (called simply
>"managers[]"). When, however, I attempt to access the end-user created
>"managers[
>>Your form action parameter has an absolute url specifying an https
>>protocol. When the browser submits the form, it uses the url you specify
>>which is https. So the request is going to be encrypted. You might
>>consider serving the form page from https as well to kind of tighten
>>things up a
>If you don't mind, I'm interested in learning more about what exactly
>ASP does differently. Are there two HTTP responses sent?
No, it just happens to have sent them in the order his browser liked.
ASP can't do anything "different" from PHP.
I used to laugh when ASPers asked why PHP had to do
Hello,
I got this example of sessions: www.net.co.cr/test/test.php ,
however, as you can see in the code at /test/text.txt , isnt $_SESSION
['tree'] suppose to contain a value and not be NULL?
Thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/
Just something to note, but the form, when displayed, won't have the
"lock" or "key" or whatever, signifying a secure connection to the user.
Depending on what kind of data you are collecting, this could be an
issue. Most people probably won't notice, but if you're serving a
smarter crowd, they ma
On Wednesday 03 July 2002 09:54, C. Cormier - Ormetal Inc. wrote:
> I need to echo a string that contains both quotes and double
> quotes.
>
> I remember doing this once using a special construct where the
> string started on a new line with a triple slash if I remember well. Or
> it was a triple
Richard Lynch wrote:
>>http://domainname.com/register.php
>>display a user registration form having
>>[form action="https://domainname.com/register.php"; method="post"]
>>
>>will the data from that page be encrypted when it is sent via https
>>specified in the [form] action?
>>
>>note: the regist
Richard Lynch wrote:
>>>Your form action parameter has an absolute url specifying an https
>>>protocol. When the browser submits the form, it uses the url you specify
>>>which is https. So the request is going to be encrypted. You might
>>>consider serving the form page from https as well to kind
Hello,
Could someone offer some insight on eval(); I am fairly new at this.
I would like to evaluate numerous variables from a form submission with a
loop, but I can;t even get on to work:
I.e.
He are the variables from my form
wins_1=7
losses_1=0
sort_1=1
wins_2=7
losses_2=4
sort_2=2
wins_3=
If you output the right headers, then output the file (by either passing
thru an existing file or "building" a file), then it should work
although I have no experience with exactly what you want -- only with MP3s,
images, etc.
Justin French
on 01/07/02 7:52 PM, Herve le Martret ([EMAIL PROT
On Tue, Jul 02, 2002 at 10:19:59PM -0400, Greg Wineman wrote:
>
> He are the variables from my form
>
> wins_1=7
> losses_1=0
> sort_1=1
> wins_2=7
> losses_2=4
> sort_2=2
> wins_3=7
> losses_3=4
> sort_3=3
>
> $counter=1;
> $wins=eval("\$wins_".$counter);
eval() is overkill and can be dangero
In your config file (or at the top of each page) you should establish what
your document root is:
$docroot = "/usr/home/sitename/";# or whatever
Then do something like include("{$docroot}inc_dir/file.inc");
Or maybe you specify an include directory in your config:
$incdir = "/usr/home/sit
"David E. Weekly" <[EMAIL PROTECTED]> wrote in message
000701c221d7$656f8d90$[EMAIL PROTECTED]">news:000701c221d7$656f8d90$[EMAIL PROTECTED]...
> I had to retool all of my scripts. =/
This is probably too late but one can use extract($_POST) or similar at
the beginning of a script to create t
on 03/07/02 11:54 AM, Richard Lynch ([EMAIL PROTECTED]) wrote:
> Rule of Thumb:
> If you have to do header("Location: ...") you have a
> design/engineering/organizational problem in your code/pages/site.
>
> I'm sure a zillion people will disagree with this "rule"
I agree, except there's one e
On Tue, Jul 02, 2002 at 10:45:27PM -0400, Analysis & Solutions wrote:
>$var = "$wins_$counter";
Oops. Forgot to escape the $:
$var = "\$wins_$counter";
--Dan
--
PHP classes that make web design easier
SQL Solution | Layout Solution | Form Solution
sq
This doesn't seem to work. Here's my demo.
This returns 000, it should return 743
"Analysis & Solutions" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Tue, Jul 02, 2002 at 10:19:59PM -0400, Greg Wineman wrote:
> >
> > He are the variables from my for
Justin French wrote:
>on 03/07/02 11:54 AM, Richard Lynch ([EMAIL PROTECTED]) wrote:
>
>
>
>>Rule of Thumb:
>>If you have to do header("Location: ...") you have a
>>design/engineering/organizational problem in your code/pages/site.
>>
>>I'm sure a zillion people will disagree with this "rule"
hmm... I must be doing something wrong. This is still returning 000
"Analysis & Solutions" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Tue, Jul 02, 2002 at 10:45:27PM -0400, Analysis & Solutions wrote:
>
> >$var = "$wins_$counter";
>
> Oops. F
On Tue, Jul 02, 2002 at 11:19:22PM -0400, Analysis & Solutions wrote:
>
> Oops. Forgot to escape the $:
>
> $var = "\$wins_$counter";
Oops. Forgot my promise to myself to always test things before posting.
I had a sinking feeling my initial posting would come back to haunt me,
but I JU
You da man. Thanks
"Analysis & Solutions" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Tue, Jul 02, 2002 at 11:19:22PM -0400, Analysis & Solutions wrote:
> >
> > Oops. Forgot to escape the $:
> >
> > $var = "\$wins_$counter";
>
> Oops. Forgot my pr
>>>
>>ServerName www.example.com
>>DocumentRoot /home/example/htdocs
>>php_value decryptionkey "123456789"
>>>
>>
>>encode your secret data using the decryptionkey
>>before hand, and then decode it on the fly using
>>the environment variable present in only in your
>>vhost.
>>
>>I'm hoping that
Hi friend,
Will mail()function work for SMTP servers which needs authentication?
If so how can pass the username and password to my SMTP server.
Any help would be greatly appreciated.
Thanks in advance
Balaji
**Disclaimer
Inform
>> Just looking for a pointer or functions I can use to do this...
>>
>> I have a spreadsheet with a couple thousand entries that I'll be using for
>> populating a MySQL database. The spreadsheet has names listed in "last,
>> first" - the database I'll be populating has separate fields for first
>I need to echo a string that contains both quotes and double
>quotes.
>
>I remember doing this once using a special construct where the
>string started on a new line with a triple slash if I remember well. Or
>it was a triple something...
>
>I can't find the topic in the online PHP doc...
>
>A
>www.net.co.cr/test/test.php
frame session test
'; }
if ($QUERY_STRING == "1.html")
{ echo "This is just a dummy frame."; }
if ($QUERY_STRING == "2.html")
{
echo "";
echo "The value of \$_SESSION['tree'] is:";
echo gettype($_SESSION['tree']);
echo "";
}
?>
--
Like Music?
>> If you have to do header("Location: ...") you have a
>> design/engineering/organizational problem in your code/pages/site.
>>
>> I'm sure a zillion people will disagree with this "rule"
>
>I agree, except there's one exception to this that I can't see a way around.
>
>When dealing with form s
>I don't agree with the general rule of thumb that the use of the
>"Location" header is bad, but I have reviewed plenty of code where
>people misuse it terribly, as a lazy goto-style operation. In most
>cases, you do want to design your application to:
>1) receive data
>2) analyze data
>3) resp
On Wednesday 03 July 2002 11:57, Balaji Ankem wrote:
> Hi friend,
> Will mail()function work for SMTP servers which needs authentication?
> If so how can pass the username and password to my SMTP server.
>
> Any help would be greatly appreciated.
Did you check on google like I suggested in an e
Yes Jason, I have checked and still checking..but I couuldn't get
proper information.
Thanks and Regards
Balaji
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 03, 2002 9:45 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Will mail() function work
On Wednesday 03 July 2002 12:17, Balaji Ankem wrote:
> Yes Jason, I have checked and still checking..but I couuldn't get
> proper information.
The first page of results I got from google included a reference to Pear,
check that out. I'm sure there are others that'll be useful to you.
--
Ja
Hello,
On 07/03/2002 12:57 AM, Balaji Ankem wrote:
>
> Hi friend,
> Will mail()function work for SMTP servers which needs authentication?
> If so how can pass the username and password to my SMTP server.
No, you need to communicate directly with the SMTP server to
authenticate. mail() has no
TEST-PLEASE IGNORE
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Dear All,
I was reading the post Re: [PHP] Setting a cookie and redirecting started 03
July 2002 02:54 in this news group.
If one is providing a redirection service (the likes of domain name only
hosting with redirection support), but you have no access to facilities
other than php. (An odd sena
Hi,
I searched through the archives and found the following snippit of code
from Tim Converse from late 2000. This is great, but does anyone know
how I can adapt this so I can return all values from a multidimensional
array? I have an id number which corresponds to a record which I need
to rev
I get the following error when i try to install an app
called "PHPwebsite" ( http://phpwebsite.appstate.edu/ )
Warning: Cannot add header information - headers already sent by
(output started at C:\apache\htdocs\php\setup\index.php:9)
in C:\apache\htdocs\php\htmlheader.php on line 30
I also i
On Tue, 02 Jul 2002 14:33:35 -0700, [EMAIL PROTECTED] (Clay Loveless) wrote:
> I haven't tried this myself yet, but will soon be facing a similar need.
>
> http://www.php.net/iconv
>
> That's probably the way I'll start off on tackling this problem ... Grab
> your XML document, check to see if i
On Tue, 2 Jul 2002 15:23:38 -0600, [EMAIL PROTECTED] (Ray Hunter) wrote:
> Check here:
> http://www.chilkatsoft.com/ChilkatXml.asp
Doesn't look as if it'll run under Unix?
> Google search:
> http://www.google.com/search?sourceid=navclient&q=convert+xml+charset
I've been googling ont he topic fo
The way I would tackle this is in several steps (and maybe combine them
later?)
Here goes - in pseudo code/point form
1. Find max
2. Find all array elements who's number in less than max
2a. create a temp array that holds these indexes
3. Do the ol' nPr (or is it nCr?) thingo on the temp array,
201 - 280 of 280 matches
Mail list logo