Kal Amry <[EMAIL PROTECTED]> wrote:
> If I have a form in named formName1 such as:
>
>
>
> How can I get the name "formName1" from within file.php
you can't. but you can add a hidden form field to each form to pass
along a value. for example:
...
(then you can just access $form in file.p
It doesn't appear that the name attribute is passed (ref:
http://www.blooberry.com/indexdot/html/tagpages/f/form.htm). Instead,
try including the following in each of your forms:
Then you can check $formname in file.php for the value.
Hope this helps!
Kal Amry wrote:
> I have posted this q
> ImagePNG($image);
> imagedestroy($image);
I tried adding headers, but am missing something. Can anyone help?
--
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-
At 12:03 10/11/01 -0800, Rasmus Lerdorf wrote:
>Perhaps because you keep asking non-PHP related questions on the PHP
>lists. I see a bunch of questions about Apache and .htaccess from you
>which you yourself admitted has nothing to do with PHP. So, yes, your
>history of lame questions work again
Thanks guy, well I have to edit a lot of forms then :)
"Chris Hobbs" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> It doesn't appear that the name attribute is passed (ref:
> http://www.blooberry.com/indexdot/html/tagpages/f/form.htm). Instead,
> try includin
Hi,
I just tried to write a simple class for opening a MySQL-database with PHP.
The database get's opened, but the handle isn't transfered back. I can then
use the database, but only if I don't specify the handle in mysql_query.
Any ideas?
Code:
db.php:
$connect = mySQL_connect("host","user","p
In follow-up to my bug report, here is the compiler output:
>gmake[3]: Entering directory `/usr/local/src/php-4.0.6/ext/gd'
>/bin/sh /usr/local/src/php-4.0.6/libtool --silent --mode=compile gcc -I.
>-I/usr/local/src/php-4.0.6/ext/gd -I/usr/local/src/php-4.0.6/main
>-I/usr/local/src/php-4.0.6 -
Where can I find a routine or PHP prog that will evaluate the distances
between zip codes or "find within X miles of a zip code"
Any ideas?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To conta
Hello.
I'm looking for sample code on how I can solve this problem:
- I have a webpage.
- On the webpage I have a map. (gif image)
- I have two points on the map: a and b, with coordinates ax,ay and bx,by
- Now... I want to create a straight line that is drawn from a to b, and I
want this li
what does SetCookie() returns???
I did a var_dump() on it and it gave me 'bool(true)' when in fact the
cookie was not set...
_
. Christian Dechery
. . Gaita-L Owner / Web Developer
. . http://www.webstyle.com.br
. . http://www.tanamesa.com.br
--
PHP General Mailin
SetCookie() cannot know whether the client accepts the cookie or not. It
can only send it. You will need to check in a subsequent request if the
client decided to accept it or not.
-Rasmus
On Sat, 10 Nov 2001, Christian Dechery wrote:
> what does SetCookie() returns???
>
> I did a var_dump
Grab an old version of GD (one with GIF support), and simply use
ImageCreateFromGif() followed by ImageLine() and ImageGif() and you are
done.
-Rasmus
On Sun, 11 Nov 2001, Torkil Johnsen wrote:
> Hello.
>
> I'm looking for sample code on how I can solve this problem:
>
> - I have a webpage
Any handy function to convert a string such as
$string1 = '55.32'
To A Number such as
55.32
--
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
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Kal Amry) wrote:
> Any handy function to convert a string such as
>
> $string1 = '55.32'
>
> To A Number such as
>
> 55.32
http://www.php.net/manual/en/language.types.type-juggling.php
--
CC
--
PHP General Mailing List (http://www.php.ne
try floatval()
At 21:13 10/11/01 -0500, Kal Amry wrote:
>Any handy function to convert a string such as
>
>$string1 = '55.32'
>
>To A Number such as
>
>55.32
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EM
Name the form element without the brackets ... just "whatdo" instead of
"whatdo[]". When $whatdo[] makes it to your formhandler, it's an array.
(You _could_ access $whatdo[0] ... but that may or may not be more
confusing.)
~Chris /"\
I've written a class that reads a database into an array. This works fine,
but when I try to copy the array outside the class using a function that
only does a return $this->$data, I only get one sub-array of the whole one.
Any ideas?
Thanks
Alexander
Code:
class Adressen {
var $connect; //
Hi
This works (save as whatdo.php)
Whatdo
";
$row++;
endwhile;
else:
?>
Row Options
Load
Delete
Change Category
Can somebody PLEASE help me with this problem I'm having.
This is a script to search the web. It sends the parematers "q,c & i" to the
"SeacrhHippo" server using the fopen function. When the script executes the
following error messages are displayed:
Warning: php_hostconnect: connect failed in /
I would try urlencoding the query-string in that url. Or put the url in
single quotes instead.
Just shots in the dark, but try it out.
M.
- Original Message -
From: "Tim Harvey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 10, 2001 9:44 PM
Subject: [PHP] Problem
I've updated the linux kernel and just noticed that phpinfo (obviously)
still only knows about the system info under the previous kernel. In order
to bring the information up to date, do I have to recompile from scratch, or
is there an easier way? I seem to remember reading that if I don't want
Does anyone know when the PCRE modifier 'e' was added into PHP? Is it
version dependant, or has it been there since 3.0?
In 3.0.18 with `PCRE library version: 2.05 21-Apr-1999' I get:
Warning: Unknown option 'e' in [...]
But in 4.2.0-dev it is, of course, fine.
-Brian
--
PHP General Mail
I just came across this so check it - It might help:
http://www.php.net/manual/en/pcre.pattern.syntax.php#regexp.reference.backsl
ash
Kal
"Brian Clark" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Does anyone know when the PCRE modifier 'e' was added into
Hi,
I'm trying to pull a random row from my database and display the contents.
I know that the code:
SELECT * FROM TABLENAME WHERE RAND() LIMIT 1
should work.
However, there are 19 rows in the database and only the first row ever shows
up.
Is there a way to do this to ensure uniqueness?
The c
On Fri, 2001-11-09 at 15:55, Mike Harvey wrote:
> Is it possible to redirect to an IP address but have the browser address bar
> show an URL?
assuming you have a valid url with a hostname, just wrap the ip address
url inside of a frame that takes up the entire window.
--Brent
--
PHP General
Hi guys, If I have a code in file1.php such as:
code..
code..
And
code..
code..
Now in file2.php, I need to check which form I am receiving!! How do I
check!!
In other words, let's assume we only have the form names "formName1" and
"formName1" - What code I
Hi jtjohnston,
@ 2:16:38 AM on 11/10/01, jtjohnston wrote:
> $string = "Mary had a little lamb whose face was icy cold. Everywhere
> that Mary went the townsfolk were sure to know";
> I want to display the text where the max number of characters on any
> one line is 34.
> 12345678901234567890
Small problem... I used to have a single file that included others
based on some variables set. However, I've decided instead of including
a different file, I would set a location header and redirect the browser
to the (once included) file instead. Problem is, now my variables
aren't being
How long have I been f***ing around with perl?
Thanks someone for thinking that one up! :)
Brian Clark wrote:
> Hi jtjohnston,
>
> @ 2:16:38 AM on 11/10/01, jtjohnston wrote:
>
> > $string = "Mary had a little lamb whose face was icy cold. Everywhere
> > that Mary went the townsfolk were sure to
php-general Digest 10 Nov 2001 09:03:21 - Issue 986
Topics (messages 74057 through 74090):
can't insert into mssql smalldatetime
74057 by: aaron
putting the result of PHP code into a string
74058 by: Morten Gjetanger
74061 by: Jason Stechschulte
What is the PATH...
In This case, nope, won't work:
ImageString($image,2,20,60,wordwrap($string,34),$blue);
http://www.collegesherbrooke.qc.ca/languesmodernes/course/postcard.php
How can I break "wordwrap($string,34)" into an aray and do something like
this:
$ypos = 60;
for i to array_length
{
ImageString($image,
Ok. Maybe a bad example. But what if it's a function, e.g.
$id = 2;
$code = ""
$html = someFunction($code);
Now, $html should contain "{the result of the Func1 function}"
The reason why I want this is that I have a site where all the text on each
side lies in a MySQL database, and I have a php
$id = 2;
$code = "" . Func1($id) . ""
$html = someFunction($code);
hope that helps!
jessie
-Original Message-
From: Morten Gjetanger [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 10, 2001 1:23 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] putting the result of PHP code into a strin
John,
thanks for the link, but isn't it a bit of overkill in my case?
What I need is to write PHP pages which manipulate a MS Access DB
via ODBC, because this is what the hosting company makes available
(and it's not going to change because of several reasons)
So, I am looking for explanation o
now use explode with /n as the seprating character,
Andrew
- Original Message -
From: "jtjohnston" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 10, 2001 9:15 AM
Subject: [PHP] Nope: Text Wrapper
> In This case, nope, won't work:
>
> ImageString($image,2,20,60,w
Not that I'm sleep deprived ... :o)
Simple, I create an image, add a bunch of text and what not.
Now I want to add a graphic. (Probably a couple, who knows?)
imageCopy("test.bmp",$image,10,10,10,10,350,500,50); <== doesn't
work.
Is this even the right function??
Description:
int ImageCopyM
3/5 RIDER HAGGARD
CLOSE, JO, BORG
SOUTH AFRICA.
E [EMAIL PROTECTED]
URGENT AND CONFIDENTIAL
(RE: TRANSFER OF ($ 152,000.000.00 USD
]ONE HUNDRED AND FIFTY TWO MILLION DOLLARS
Dear sir,
We want to transfer to overseas ($ 152,000
I was doing some stupid shit like doing a session_unregister() on my
variables, then later, after successful login, redoing a session_register().
When I made a separate logoff.php page to unregister the variable, then a
redirect back to index.php to allow users to login again, everything worked
f
Hi,
This is my first foray into PHP (coming from a VB, ASP background). What I
am trying to do should be ridiculously easy, but for some reason I can't
figure out how to do this.
I have a form that builds a dynamic number of text boxes in a loop:
for($i=0;$i<$count;$i++)
{
print("");
}
Dear all,
If I use a php script in a SSL webpage I will be using a remote email
address to send the incoming data (personal details, name address etc...)
to... e.g. [EMAIL PROTECTED] using the standard mail() function.
SSL is secure for the interface between the user and the webpage and I
unde
Try:
for($i=0;$i<$count;$i++)
{
// in the global array, print the variable with the name: "item$i"
print $GLOBALS["item$i"];
}
or even:
for($i=0;$i<$count;$i++)
{
// in the post vars array, print the variable with the name: "item$i"
// this one is probably more secure.
print $HTTP_POS
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello!
> How secure is the email in transit from the SSL page to the recipient's
> mailbox?
A Does SSL offer any security in this regard?
B Or does it need to be encrypted?
Answer is: B :)
you - ssl encrypted line -> server
Hello!
You should open "test.bmp" first.
Best regards,
Andrew Kirilenko.
> -Original Message-
> From: jtjohnston [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, November 10, 2001 1:15 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] imageCopy :-(
>
>
> Not that I'm sleep deprived ... :o)
>
My bad for typing it in from memory. I'd retyped it in a few times, so I
thought i had it perfect. Here's the exact code:
print_r ($HTTP_POSTVARS); // yeilds the array that I pasted down below
if ($flag=="process")
{
$whatdo = $HTTP_POSTVARS['whatdo'];
print_r($what_do); // blank
.
.
.
for (
Why doesn't anyone say something about my messages "probelms with sessions
and SSI"?
Is it such a lame question???
_
. Christian Dechery
. . Gaita-L Owner / Web Developer
. . http://www.webstyle.com.br
. . http://www.tanamesa.com.br
--
PHP General Mailing List (ht
Ok. To be a bit more precise. the $code part could be any php code, e.g.
$code = <<$val\n";
}
ENDM;
regards
Morten Gjetanger
"Morten Gjetanger" <[EMAIL PROTECTED]> skrev i melding
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm quite sure there is a simple solution to the problem bellow!
>
Hi Mweb,
yes it is overkill, but I don't know any other way to do it unless
you want to buy a 3rd party odbc driver for Access on Linux (is there one?)
Bye, John
Mweb <[EMAIL PROTECTED]> wrote in message 2000104958.B3706@polaris">news:2000104958.B3706@polaris...
> John,
>
> thanks for t
SSL encrypts the data between the user and your webserver only
It does not encrypt data send by you to your mailserver, nor does it
influence the way your mailserver sends the mailmessage to the mailserver of
the user. (in plain text)
So, you need to encrypt the data in the email. It is however
On Saturday 10 November 2001 08:42 am, Christian Dechery wrote:
> Why doesn't anyone say something about my messages "probelms with sessions
> and SSI"?
This list gets 2000 - 3000 messages per month and you find it surprising that
not all messages get a response?
My suggestion regarding SSI a
At 10:33 10/11/01 -0800, you wrote:
>On Saturday 10 November 2001 08:42 am, Christian Dechery wrote:
> > Why doesn't anyone say something about my messages "probelms with sessions
> > and SSI"?
>
>This list gets 2000 - 3000 messages per month and you find it surprising that
>not all messages get a
Just an addendum, I changed it from radio buttons to a pop up menu
Load
Delete
Change Category
Again, if I print_r (HTTP_POST_VARS), I can see the Array ( [whatdo] =>
Array ( [0] => load [1] => delete), [other
s
; The separator used in PHP generated URLs to separate arguments.
; Default is "&".
;arg_separator.output = "&"
; List of separator(s) used by PHP to parse input URLs into variables.
; Default is "&".
; NOTE: Every character in this directive is considered as separator!
;arg_separator.input = "
I appear to be having a problem where when I run a PHP script that uses ODBC
calls my ASP/ODBC driven pages stop functioning. When I run a PHP script
that does not use ODBC there does not seem to be any problems with my
ASP/ODBC pages. I was wondering if anyone out there has ever run in to a
pro
Perhaps because you keep asking non-PHP related questions on the PHP
lists. I see a bunch of questions about Apache and .htaccess from you
which you yourself admitted has nothing to do with PHP. So, yes, your
history of lame questions work against you.
But to answer your question, it is very
I'm not sure if this answers your question but it seems to me that & is
an html encoding whereas if you want to put something in the url you should
urlencode it.
This will eliminate the "&"s.
Matt.
- Original Message -
From: "GaM3R" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sat
Apple broke the GCC on Mac OS X 10.0
Running make on PHP install produces this error:
/usr/bin/ld: -undefined error must be used when -twolevel_namespace is
in effect
Here's the fix from Apple but it's over my head.
http://developer.apple.com/techpubs/macosx/ReleaseNotes/TwoLevelNamespaces.
htm
On Sun, 11 Nov 2001, GaM3R wrote:
> ; The separator used in PHP generated URLs to separate arguments.
> ; Default is "&".
> ;arg_separator.output = "&"
>
> ; List of separator(s) used by PHP to parse input URLs into variables.
> ; Default is "&".
> ; NOTE: Every character in this directive is
I'm creating an image, but I want to do as below so when I do
http://www/image.php it displays html and ...
http://www/image.php?newimage=1 displays my image
However it crashes if $newimage=1
My image doesn't display.
My image works otherwise if I simply erase the if loop.
Is this a p
Does anyone know of a usergroup for Apache? I am having difficulties
finding one and am having some troubles with Apache.
Thanks
Eric
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the li
hi ppl,
id like to set something like a global variable or constant.
i need this, to set the path of my document root. all scripts should then
use this path.
e.g.
my apache document root is: /www
all my skriptfiles are in /www/my_subdir
i include a special php script in all script files with:
/
php-general Digest 10 Nov 2001 21:29:14 - Issue 987
Topics (messages 74091 through 74124):
Re: Text Wrapper
74091 by: jtjohnston
74095 by: Andrew Brampton
Re: putting the result of PHP code into a string
74092 by: Morten Gjetanger
74093 by: power jessie
On Saturday 10 November 2001 01:29 pm, you wrote:
> if i like to move my scripts to /www/my_newdir i habe to change the
> include() function in every script
A few options:
1. Don't use absolute paths -- use relative paths. Then you don't have to
worry about it as long as the overall structure
Anyone have an example of mail() attaching a png or jpeg?
I'm doing this:
...
ImagePNG($image);
imagedestroy($image);
--
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 administrato
I am trying to determine if todays date ($today) is within a week
($startcheck) of a given date ($dob). This is what I have so far.
$todaydate = (date("Y-d-m"));
$today = strtotime($todaydate);
// $today prior to strtotime = 2001-10-11
$startcheck = strtotime(2001-08-11);
$dob = strtotime(2001-1
I'm trying to compile php-4.0.6 on FreeBSD-4.4-STABLE for Apache, and I've
tried using both version 1 and 2 of the gd library; however, the compile
continues to crash with undefined calls to gdImageGif.
I can see that in the code there are mentions of a drop-in replacement
gd_png for this ca
Just for kicks, try this instead:
if (!isset($newimage))
{...
jtjohnston wrote:
> However it crashes if $newimage=1
> My image doesn't display.
>
> if(!$newimage)
> {
> header("Content-type: text/html");
> echo "hi";
> echo "rendu: $rendu";
> }else{
>
> header("Content-type: image/png");
http://www.apache.org/foundation/mailinglists.html
Eric wrote:
> Does anyone know of a usergroup for Apache? I am having difficulties
> finding one and am having some troubles with Apache.
>
>
> Thanks
> Eric
>
>
--
___ ____ _
Chris Hobbs / \
I have posted this question before so I'm giving another try in case new
people are looking at the news list!!
If I have a form in named formName1 such as:
How can I get the name "formName1" from within file.php
My original question was:
Hi guys, If I have a code in file1.php such as:
cod
68 matches
Mail list logo