e var:
header("Location: http://something.foo.bar.com/page.extension?var1=etc";);
ex with 3 vars:
header("Location:
http://something.foo.bar.com/page.extension?var1=etc&var2=123&var3=abc";);
- Original Message -
From: "Jack Dempsey" <[EMAIL PROTECTED]
Hello !
I just installed PHP 4.0.4pl1 over an existing PHP 4.0.1 on Win98 with
Apache. Alle works greate, but I get a lot of warnings:
Warning: Undefined variable: MyVariable in filename
The warnings weren't there in the earlier version. How can I turn of
these warnings ?
Regards
M
Whats the problem ? ;-)
Gunter Ohrner schrieb:
> Hi!
>
> I'm looking for some hints for the PHP ftp module as I have some problems
> using it - if anyone has experience in using the PHP ftp module it would be
> very cool someone could send me an email...
>
> Greetinx,
>
> Gunter Ohrner
>
> --
Thanx a lot, I found it in php.ini !
"Johnson, Kirk" schrieb:
> If you have access to php.ini, see the "Error handling and logging" section.
> Else, see http://www.php.net/manual/en/ref.errorfunc.php
>
> Kirk
>
> > -----Original Message-
> &
Hello !
I got a jpg-picture on my disk. Is there any way to find out the color
of a pixel (let's say, I want to know, which color the pixel 1,12 on
image img.jpg is.)
Ideas ?
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addit
I have a multidimensional array being created by a form. Most fields are
pre-populated with a few that people can add to the list. There is a box
beside each row that they can check whether that item is in or not.
My code to list only the rows that were checked is this..
for ($j=1 ; $j=5; $j++
in a for-next-loop ?
Regards
Martin
--
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]
should equal 5 */
> ${"Name" . $i} = $default_value;
> }
>
> So if $n was 3 and $default_value was 0, you'd have three variables who's
> value was 0:
> $Name1
> $Name2
> $Name3
>
> Variable variables are the way to go. They're so cool :) I wonder if Java
stroy doesn't work, too.
What I want is, the PHP assigns MyId a new value.
Ideas ?
Martin
--
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]
When do you need it Jamie we are in the process of setting something up? It
is actually focused on PHP business application software but we will be
offering hosting as well.
Martin
> Just a quickieDoes anyone know of any cheap but reliable (i.e. they
> know
> at least something
each.
SuSE 7.1 Prof-Edition, from this distribution I installed apache and PHP
(everything working fine, but no idea how to activate
informix/oracle-support)
Apache says, PHP4-module installed.
Thanks a lot for any help
Martin Schmidt
--
PHP General Mailing List (http://www.php.net/)
To unsubsc
Richard Lynch wrote:
I had ldconfig running several times (editing ld.so.conf in between by
even changing the sequence in the ld.so.conf) but it doesn't help me.
Thanks
Martin
>
> Try running ldconfig from your command line.
>
> I think you just run it and it does things
works absolutely fine, if I dont use sessions (eg. just reject the cooky)
Any sugestions ?
martin harm [EMAIL PROTECTED]
PS: Using PHP.4.0.5 on Linux
Test-Script:
logfile = tempnam("/tmp/","LOG_");
$cmd="nohup perl asyn_proc.pl $para 1> $job->logfile 2>&
om my SuSE-distribution and gave my to hints:
1. Try to configure PHP with the option --enable-rules=EAPI
2. fetch the apache-server from internet and install this one instead of
SuSE's.
No. 1 I tried and it works, as long as I do not include --with-informix.
So I will have to try no.2 also.
Martin
Hi everybody
i have the following database query:
$result=mysql_db_query("database","select item1,item2 from table");
while ($row=mysql_fetch_array($result)){
$a=$row[item1];
$b=$row[item2];
}
what i need is an associative array, with $a as
hi adrian,
many thanks for your tip. it works fine.
kind regards
martin
-Ursprüngliche Nachricht-
Von: Adrian Ciutureanu [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 12. Juli 2001 15:46
An: Martin Lucas
Cc: [EMAIL PROTECTED]
Betreff: RE: [PHP] associative arrays
$result
found what exactly is
happening)
Any help would be appreciated...
Thanks in advance.
Regards,
Martin Marconcini
"Life must be lived looking forward and can be understood only looking
backward." Soren Kierkegaard
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMA
th about 33% more space it doesn't seem to me to be the very best
>solution :(
Base64 works fine. And I think it is the only best solution now :-)))
--
Martin Pavlas
ParsCom IS s.r.o.
http://www.parscom.cz
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
Hi,
I have problem with GD lib in PHP. I try compile PHP with Gdlib on OpenBSD
2.9. I download gd-1.8.4, freetype-2.0.4, libpng-1.2.0 and jpeg-6b. With
compile gd i have some problems, but I thought it was OK. But during
compilation php-4.0.6 has happened mistake. This:
/bin/sh /home/darius/insta
Hello!
How can I make the session-id ONLY be stored in the url, even if the
user has cookies enabled? I have no access to the php.ini-file.
Any ideas?
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
These worked. Thanks
- Original Message -
From: Kurt Lieber <[EMAIL PROTECTED]>
To: 'Martin Kampherbeek' <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Sunday, September 30, 2001 2:34 AM
Subject: RE: [PHP] Get current date and time
> How about o
he configuration.
Is there any easy way of doing this? Anyone have previous experience?
Software versions and OS'es is of no concern, we'll use what's required.
/Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional com
> Hi all,
>
> I have just rename the php.ini-dist to php.ini from the
> installation directoy but am not sure where to place it in
> order for php to
> rea,, any help??
> thanks
What OS are you running PHP on?
/Martin
--
PHP General Mailing List (http://www.php.net/)
T
variable number of classes (Such as a CObject class in MFC for
Visual C++) - i.e. is there soem other collection class/type I don't know
of ?
Thanks,
Martin.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PRO
Use the date-function. See help for details.
--
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]
str_replace() does replacements on input,
but not on the soon-to-be output it is working on. Is this to be expected,
or would it be ok to modify the functionality of str_replace()?
/Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
ndow, have it close itself after it's finished processing.
Hope this helps.
Martin
-Original Message-
From: Impex Holidays Maldives / Hasan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 24, 2001 4:16 PM
To: [EMAIL PROTECTED]
Subject: [PHP] OnUNload Scripts
Hi everyone,
I c
try $QUERY_STRING
-Original Message-
From: Clint Tredway [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 25, 2001 5:13 AM
To: PHP General
Subject: [PHP] URL variables
How do I reference URL variables..?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAI
>> if ((substr($sString,(strlen($sString)-1)!="-")) or
Looks to me that the bracketing is wrong...
try:
if ((substr($sString,(strlen($sString)-1))!="-") or
-Original Message-
From: Mark [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 25, 2001 11:12 AM
To: [EMAIL PROTECTED]
Subject: Re
Haven't tried this, but what about sending "nocache" headers to the browser
(??)
-Original Message-
From: Jason Caldwell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 25, 2001 4:12 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Netscape 6.1 problem and SELECT lists / FORMS
NS6.1 remembers
($userid == "somename2" && $password == "somepassword2") ||
($userid == "somename3" && $password == "somepassword3")) {
Martin
-Original Message-
From: Gaylen Fraley [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 26, 2001 2:01
Question 2:
you'll notice the 4th parameter to mail() is the headers to send. You can
use something like:
"From: Name <[EMAIL PROTECTED]>\r\n"
or
"From: Name <[EMAIL PROTECTED]>\r\nReply-To: Name <[EMAIL PROTECTED]>\r\n"
(can't remember if this the right format for the name/email address, but
thos
if you're using unix, there's the "tail" command:
$results\n";
?>
-Original Message-
From: Yamin Prabudy [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 26, 2001 4:08 PM
To: [EMAIL PROTECTED]
Subject: [PHP] tail a file
Hi there I need help here
I got a file say it's a logs file and ke
what something like: $the_array=split("]*)", $html,-1); ??
so, everything that's not a ">"
-Original Message-
From: brendan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 30, 2001 1:59 PM
To: [EMAIL PROTECTED]
Subject: [PHP] @#$@# Reg Expressions
thanks but it didnt work either ..
$k) echo $k."";
I had given preg_split a go but just got flummoxed with the need to
slash everything ..
Martin .. I'd tried that .. but i get an array count of 0 from
$the_array ..(from $the_array=split("]*)", $html,-1);
echo count($the_array);
Jack Dempsey wrote:
> ok, ar
Off track - seems like the only ppl awake now are ozzies :)
would I be right?
-Original Message-
From: Brad Hubbard [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 30, 2001 3:11 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] @#$@# Reg Expressions
On Tue, 30 Oct 2001 14:47, brendan wrote:
Here - I'm from NSW, Oz !!! can't make it any harder for you :)
-Original Message-
From: Brad Hubbard [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 30, 2001 3:42 PM
To: brendan; [EMAIL PROTECTED]
Subject: Re: [PHP] @#$@# Reg Expressions
On Tue, 30 Oct 2001 15:27, brendan wrote:
> Yo
ARGH!! You, you, missed!! :/
-Original Message-
From: Brad Hubbard [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 30, 2001 3:53 PM
To: Martin Towell; [EMAIL PROTECTED]
Subject: Re: [PHP] @#$@# Reg Expressions
On Tue, 30 Oct 2001 15:49, Martin Towell wrote:
> Here - I'm from
"$this" refers to the current object
so "$this->mode" refers to the variable inside the current object called
"mode"
Hope this helps
Martin
-Original Message-
From: Christian C. [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 05, 2001 12:17 PM
To
or, instead of MD5 (depending on how secure you want it) you could use
base64_(en|de)code
-Original Message-
From: James [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 05, 2001 12:46 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP] Secure transfer between servers
Perhap
I'm interested in knowing how to do this too. If it's at all possible.
Martin
-Original Message-
From: Marco Fioretti [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 05, 2001 9:36 AM
To: [EMAIL PROTECTED]
Subject: [PHP] URGENT: Can PHP on Linux deal with Access DB?
Hell
echo "";
for ($i = 6; $i <= 25; $i++) {
echo
stripslashes($models[$i])."";
}
echo "";
Martin T
-Original Message-
From: René Fournier [mailto:[EMAIL
this wouldn't be something similar to C's ungetch() ??
-Original Message-
From: Cleber S. Mori [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 09, 2001 3:16 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Append to STDIN
Hi again...
I had already RTFM...
Neither in exec or ``'s I found any
it's HTML
-Original Message-
From: Don [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001 3:37 PM
To: php
Subject: [PHP] emailing attachments
Hi,
I have a class that allows me to send e-mail with an attachment. I have a
form that gathers information and I would like to allow
include "file";
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001 3:44 PM
To: [EMAIL PROTECTED]
Subject: [PHP] executing another php.script
I am sure that I am just .. missing this ..
>From one script I wish to 'execute' another scrip
once you have read in the file and parsed it up, all you need to do then is
to find the correct "string" to execute and call it using :
eval($string);
happy coding
Martin T
-Original Message-
From: Galkov Vladimir [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001
Hello,
does anybody have experience with function imap_mail_compose() ??
There is an example in the documentation but in my
script the "description" doesn't work. So the filename of the attachement
is not avaliable.
And why starts the $body-Array with $body[1] and not with bo
the forst param to mail is the extra headers to send
add in "Reply-To: [EMAIL PROTECTED]\r\n"
and/or "From: [EMAIL PROTECTED]\r\n" ( I think this one's correct )
-Original Message-
From: Brandon Orther [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 9:41 AM
To: PHP User Group
oops, "forst" is meant to be "forth"
-Original Message-
From: Martin Towell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 9:44 AM
To: 'Brandon Orther'; PHP User Group
Subject: RE: [PHP] using mail
the forst param to mail is the extra he
try removing the quotes and see if that works
eg
$value1 = "100";
becomes
$value1 = 100;
and
for($i="$value1"; $i<="$value2"; $i++) {
becomes
for($i=$value1; $i<=$value2; $i++) {
Martin T
-Original Message-
From: Tyler Longren [mailto:[EMAIL
te1[0] );
Martin T
-Original Message-
From: py [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 2:47 PM
To: [EMAIL PROTECTED]
Subject: [PHP] date conversion and calculation problem...
Hello,
I have 2 date string like this
$t1 = "2001-11-12 17:30:10";
$t2 = "2001
hmmm... I just tried :
$value1 = 100;
$value2 = 1223109;
for($i = $value1; $i <= $value2; $i++)
{
echo "$i\n";
}
and it spat out all 223109 numbers (albiet after a VERY long time)
can't see how adding mysql code would affect the loop...
Martin T
-Original Messag
$name;
}
now fill in the blanks
Martin T
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 2:58 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Group by Howto
I have a database with 2 colums in it
-|--|
Place of work| Name |
bers then adding it back on
later
Martin T
-Original Message-
From: Tyler Longren [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 3:38 PM
To: Jack Dempsey
Cc: PHP-General
Subject: Re: [PHP] for loop problem?
I've ran it a few times without the MySQL code in there. Runs
tried using the original
format, strtotime() complained, saying it couldn't convert it.
Martin T
-Original Message-
From: sundogcurt [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 14, 2001 7:57 AM
To: GENERAL PHP LIST
Subject: [PHP] take date and convert to day of year
Hi guys, I
try adding the "nocache" header() calls to the page to force the broswer to
refresh.
See how that goes
Martin T
-Original Message-
From: Rodrigo Peres [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 14, 2001 9:43 AM
To: PHP
Subject: [PHP] silly question
Hi list,
I hav
"serialise" the array and make the "value" of a hidden field this value.
Then in PHP "unserialise" it.
-Original Message-
From: fitiux [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 14, 2001 10:18 AM
To: PHP General
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] javascript to php ???
Sent: Wednesday, November 14, 2001 10:28 AM
To: [EMAIL PROTECTED]; PHP General
Subject: RE: [PHP] javascript to php ???
On Wed, 14 Nov 2001 10:16:42 +1100, Martin Towell wrote:
>"serialise" the array and make the "value" of a hidden field this
>value.
>Then in PHP "u
L PHP LIST
Subject: Re: [PHP] take date and convert to day of year
I have tried to implement your code Martin, and I do thank you VERY MUCH
for the help, but your code seems to have the same trouble as mine, it
doesn't matter what date I start with, I end up with 364 as the day of
the year
Sorry about asking a non-PHP question here, but I thought that since I've
been helping others recently, you'll give me a bit of lee-way.
In IE, to find out how far down a page is scrolled, you can do
"document.body.scrollTop"
what's the equivalent in Netscape 6 ?
Thanks in advance
Martin
You can set the "Error-To: " header to some email address that runs a script
to remove the email address - other that that, no, not that I know of.
-Original Message-
From: Alex Chau [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 14, 2001 1:31 PM
To: [EMAIL PROTECTED]
Subject: [PHP]
OK, just found it!
window.pageYOffset
-Original Message-
From: Martin Towell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 14, 2001 1:25 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Non-PHP question
Sorry about asking a non-PHP question here, but I thought that since I've
use : @$name_of_chechbox_3 to suppress warnings
or at the start of the file do :
if (!isset($name_of_chechbox_3)) $name_of_chechbox_3 = "";
or something similar
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 14, 2001 5:03 PM
To: [EMAIL P
It's probably thinking that "Do Not Reply" is a user name, so try:
"Do Not Reply <[EMAIL PROTECTED]>"
and see how that goes
-Original Message-
From: Brandon Orther [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 15, 2001 10:50 AM
To: PHP User Group
Subject: [PHP] mail() function
Hel
if you're going to go the "break string in words" way, then try
$words = explode(" ", $string);
-Original Message-
From: Gaylen Fraley [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 15, 2001 2:54 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Controlling length of table data
This is reall
strpos return false if the search fails. You have therefore to test for:
if (strpos(...,...) === false)
or
if (strpos(...,...) !== false)
Martin
Jtjohnston wrote:
> I suppose I'm doing this right? I want to know if the user entered
> "\.jpeg" or "\.jpg"
out of the php-documentaion. Where can I start to
learn reg-exp? Should I use the ereg- oder preg-functions? Help!
Martin
--
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]
> if (!strpos(...))
> will be better...
Why?
--
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]
I think it's just a matter of taste - I haven't found any noticable
differences between the two.
Sometimes the code it more readable with raw html, sometimes with echos.
-Original Message-
From: Brad Melendy [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 19, 2001 11:37 AM
To: [EMAIL P
add:
$mailheaders.="CC: $other_email\n";
$mailheaders.="BCC: $other_email\n";
should also work but I haven't managed to get blind carbon copy to work for
me :(
-Original Message-
From: Anthony Ritter [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 19, 2001 12:49 PM
To: [EMAIL PROTECTE
is the same sort of thing for strings in PHP.
Martin
-Original Message-
From: George Whiffen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 21, 2001 11:39 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Different syntax = different performance (concatenating
assignment)
Dear All,
I h
Anyone know how one can "import" a flash file into PHP for use with "ming"
or something similar?
It's an easy to make a flash animation with ming, but I'd like to be able to
modify an existing flash file.
thnx
Martin
use something like:
customer_info["customer_info[shipto_address_line1]"].value =
customer_info["customer_info[billto_address_line1]"].value;
ie. each form element can be referenced by name within the elements array:
frm.name --> frm["name"]
-Original Message-
From: Steve Maron
for the first case - using "\n", try :
ereg_replace('\n+', '\n\n\n', $str)
for the second case - using "", try :
eregi_replace('()+', '', $str);
Martin
-Original Message-
From: Gaylen Fraley [mailto:[EMAIL PROTECTED]]
Se
Hi all,
Is there a way of generating a list of files that have been included, in
php3, similar to php4's get_included_files() ??
If so, can you supply code plz?
Thnx
Martin
doesn't win2k files go under C:\winnt ?
what about looking under the php directory???
-Original Message-
From: John Monfort [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 23, 2001 1:06 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Missing PHP.ini
Hello everyone!
I upgraded my system f
you said you tried a text field, have you tried a hidden field?
does it HAVE to be in $HTTP_POST_VARS ?? can you append it to whatever link
you have using "?unique_id=$id" or something similar?
Martin T
-Original Message-
From: C. Bensend [mailto:[EMAIL PROTECTED]]
Se
T(EventStartDate, '%W %M %D %Y')
AS FormattedEventStartDate, DATE_FORMAT(EventEndDate, '%W %M %D %Y') AS
FormattedEventEndDate, TIME_FORMAT(EventStartTime, '%r') AS
FormattedEventStartTime, TIME_FORMAT(EventEndTime, '%r') AS
FormattedEventEndTime FROM comcal
"if"
something like:
if ($db == 1) connect to db1
else if ($db == 2) connect to db2
else if ($db == 3) connect to db3
would that do?
-Original Message-
From: Marts [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 23, 2001 11:45 AM
To: [EMAIL PROTECTED]
Subject: [PHP] S
try : form_name["cb[]"]
-Original Message-
From: Christian Dechery [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 28, 2001 11:53 AM
To: [EMAIL PROTECTED]
Subject: [PHP] how to acess php array var in Js?
If I have a series of checkboxes like this:
This is 1
This is 2
This is 3
Also, I've found that if an SQL statement isn't doing what you're expecting
it to do, then echo it out and copy/paste it into the database querier
(mysql, sqlplus, isql, etc). I've found these quieriers give better error
messages than what you get back through PHP
-Original Message-
From
try changing
to
-Original Message-
From: Ryan Stephens [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 28, 2001 4:13 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Newbie Image uplaod question
ok... ive tried this but no go:
<->
function
rf: http://www.php.net/manual/en/features.file-upload.php
$userfile - The temporary filename in which the uploaded file was stored on
the server machine.
$userfile_name - The original name or path of the file on the sender's
system.
$userfile_size - The size of the uploaded file in bytes.
$user
I believe there's no row count function for oci, so could you change the
logic to:
while(OCIFetchInto ($curs, $data)) {
// normal code here
}
if($isLastRecord)
// do something
??
Martin
-Original Message-
From: Philip Hallstrom [mailto:[EMAIL PROTECTED]]
Sent: Thursday, Nov
you might need to set the content-type...
-Original Message-
From: Bryant Brabson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 29, 2001 9:56 AM
To: [EMAIL PROTECTED]
Subject: [PHP] include or fread a binary file?
I have a flash file that I need to embed in an iframe on a page. I
Can someome recommend such a book to a relative newcomer. I'm looking
for something on writing carts and the processing that goes thereafter.
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROT
it's a ternary operator
$string1 = (isset($string2)) ? $HTTP_GET_VARS['pid'] : "";
is the same as
if (isset($string2))
$string1 = $HTTP_GET_VARS['pid'];
else
$string1 = "";
-Original Message-
From: Gerard Samuel [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 29, 2001 12:28 PM
take a look at your table definiton.
maybe some of your fields have a diferent definition as the value you want
to insert. e.g.
fax_number in your query-string is defined as string and in your table as
integer or something like this
regards
martin
-Ursprüngliche Nachricht-
Von
that seems to be easy:
put every string and varchar in single quotes eg '$surname'
and every number like $fax_number without quotes
regards martin
-Ursprüngliche Nachricht-
Von: Payzillee [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 29. November 2001 13:16
An: [EMAIL
it's one of the options in the php.ini file, if i'm not mistaken
-Original Message-
From: Mike [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 30, 2001 11:28 AM
To: [EMAIL PROTECTED]
Subject: [PHP] How do I put a path to Sendmail in php script??
The server that I am using has Sendmail
use a standard form...
and in your php code, use, $username and $password
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 30, 2001 11:23 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP Authentication
On Fri, 30 Nov 2001 11:02:45 +1030, [
try changing this line
fputs($fd,$Images,strlen($Images));
to
fputs($fd,$Images);
as you don't need to specify the length. If you don't specify the length,
it'll write the entire string. see how that goes...
-Original Message-
From: Mike Gifford [mailto:[EMAIL PROTECTED]]
Sent: Friday
There is a limit to the size of a GET request - can't remember what it is
though
POST's can be any size however.
Maybe a search of the RFC's might tell you the limit of GET's
http://sunsite.dk/RFC/
-Original Message-
From: Don [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001
I was thinking that you could use a "pointer to var", eg:
$var = 'myarray["foo"]["bar"]["red"]["apple"]';
// this would obviously be created dynamically, hard coded for testing
$$var = $some_value1;
echo $myarray["foo"]["bar"]["red"]["apple"];
but when I tried it, it didn't work :(
maybe mysql is stripping the slashes and not php ??
-Original Message-
From: Steve Cayford [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 10:57 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Why are slashes automatically stripped from db result?
Hey all. I'm storing some jpeg imag
to print two decimal points always, use : printf("%.2f",$value);
round() just rounds the number and doesn't store extra zeros.
-Original Message-
From: Diego Pérez [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 11:06 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Problem with round
if it's just a plain text file then, in theory, you can insert a FF
character (0x0C) but as mentioned, this might not work on all printers.
if you're using html, try using:
or put the style in some other tag if it doesn't work for
there's also "page-break-after: always;" that you could use...
now change || to && and see if that does the job
-Original Message-
From: Dan McCullough [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 05, 2001 12:57 PM
To: PHP General List
Cc: Richard S. Crawford
Subject: Re: [PHP] Logic
that didnt work,i started off with
if ($type != "add") {
are any of the fields of type number/integer/etc? if so, try removing the
quotes for that field.
-Original Message-
From: Tyler Longren [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 05, 2001 2:36 PM
To: Greg Sidelinger; [EMAIL PROTECTED]
Subject: Re: [PHP] mysql update query
Ever
if you want the browser to do it (as opposed to getting php to do it), then
you could use a "hidden" form, like:
... etc (all hidden fields) ...
-Original Message-
From: Andrew Forgue [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 9:32 AM
To: [EMAIL PROTECTED]
Subject:
801 - 900 of 1913 matches
Mail list logo