This seems absolutely impossible. Can you verify that you are using the
*exact* same URL with each browser? I would recommend copy/pasting the
URL from each into a text document or something to be sure every slash,
etc., is identical.
This will also ensure that you are accessing these scripts
It's not impossible if the site is not opened up to full public access, and he is
using different proxy settings on each browser.
Check those.
-Original Message-
From: Chris Shiflett [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 2 October 2002 4:23 PM
To: Chris Nielsen
Cc: [EMAIL
imagecopyresampled($dst_img,$src_img,50,0,0,0,$new_w,$new_h,imagesx($src_img
),imagesy($src_img));
i have this
basically if i half the width of the ratio scaled image , it puts the entire
image into that area not just half the image like a crop would ?
Mike Mannakee [EMAIL PROTECTED] wrote in
You want to retain ownership, AND take contributions?
Generally it'd be an either/or proposition wouldn't it?
Justin French
on 02/10/02 2:26 PM, Khalid El-Kary ([EMAIL PROTECTED]) wrote:
hi,
i wanted to add something, i want to receive contribtions from developers as
well to make the
Hi,
I use : apache 1.3.26, php 4.2.3, postgresql 7.2 (under solaris 7).
I attempt to modify my old sources which run with the previous versions
and I meet a problem with the cookie.
I read that we can see the contents of a cookie with 2 methods :
echo $testcookie
echo $_COOKIE[testcookie]
I'm pretty sure this is a global variables problem.
There is an option in your ini.php file that refers to 'global variables'
You need to set this on, otherwise reference to them with the absolute
variable name.
Best Regards
Bob Irwin
Server Admin Web Programmer
Planet Netcom
- Original
The register globals function must be turned ON in your php.ini for the first method
to work.
-Original Message-
From: Max Buvry [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 2 October 2002 2:38 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Cookie
Hi,
I use : apache 1.3.26, php 4.2.3,
Hi Dan
I (and others I know) have similar probs of seemingly disappearing emails -
I thought it was down to mail filtering because I cant think of another
explanation (but I dont know that for sure). I was given some advice here
yesterday so I am forwarding you the mails.
Debbie
- Original
Voisine wrote:
Hi,
I'm learning php from a book but because of global off I have have
several Undefined index message! I don't want to change the default
setting in my php.ini because I want to learn the good way.
What I'm doing wrong?
Undefined index: categorie
if ($_POST['categorie']
Here's what I do.
We have an outsourced email newsletter management
system that accepts GET method - so I just use fopen()
to send the data to our list management system and
then drop the information into a database on our
server.
$form1_submit_url =
If you need something more complex look into CURL as
suggested earlier
http://curl.haxx.se/
http://www.php.net/curl
olinux
--- olinux [EMAIL PROTECTED] wrote:
Here's what I do.
We have an outsourced email newsletter management
system that accepts GET method - so I just use
fopen()
to
Hi
Snoopy can do this too:
http://sourceforge.net/projects/snoopy/
Regards
Girish
--
www.girishnath.co.uk
Lallous [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
try www.sloppycode.net
* © Sloppycode.net All rights reserved.
* @title Html Source class
Thanks for your response.
The doc isn't explicit when it explains this two methods and don't focus
on
the register globals function for the first method.
So I use the second method only.
Thanks
mb
Bob Irwin wrote:
I'm pretty sure this is a global variables problem.
There is an
Hi Friends,
I would like to know where the cookies will be stored?
I have enabled cookies using session.use_cookies = 1.
I found cookies will be stored in the environmental variable
HTPP_COOKIE_VARS.
But I didn't find anywhere this variable in my php.ini file.
If I want to print all cookies
Hi all,
my script knows three different constants
define(G_T_USER,user_profile);
define(G_T_TEAM,SAFETOUR_team);
define(G_T_CALL,SAFETOUR_call);
Is it possible to get access to them, if I have the names (USER, TEAM,
CALL) in a variable?
It must be something like that:
Balaji Ankem wrote:
Hi Friends,
I would like to know where the cookies will be stored?
Cookies are stored on the client, either in memory or written to disk.
If I want to print all cookies stored in my browser how can I print?
I'm going to assume this isn't really what you mean, and you
Warning: Unable to load dynamic library 'C:\PHP\extensions/php_oci8.dll' -
there are slashes and backslashes in the string
'C:\PHP\extensions/php_oci8.dll'. it looks odd.
May be you would have a look to include_path and extension_dir in php.ini ?
Regards,
Philippe
--
PHP General Mailing
Hi Heiko
Try this:
$aName = TEAM;
eval( '$myString = G_T_'.$aName.';' ); // evaluates to: $myString = G_T_TEAM
echo $myString; // Should print out SAFETOUR_team
I haven't tested this, but it should work.
Regards
Scott
On 10/2/2002 10:47 AM, Heiko Mundle wrote:
Hi all,
my script knows
I've been writing PHP scripts for a long time but never needed to get data
from an Oracle database. Till now.
- First, you need php compile with --oci
- Then, you have to install the oracle client.
Note : you can't find the oracle client alone. you need to download the
entire oracle (500Mb !!)
Hi Chris,
Thanks for the help.
? print_r($_COOKIE); ?
It is giving error saying call to undefined function _r();
And Setcookie in php is not conforming to the RFC2109.
Comment and version how do we set?
Thanks in advance
Balaji
-Original Message-
From: Chris Shiflett
Balaji Ankem wrote:
? print_r($_COOKIE); ?
It is giving error saying call to undefined function _r();
That's weird. Maybe you have a space between print and _r? The function
is print_r() with no spaces.
And Setcookie in php is not conforming to the RFC2109.
In what way? Remember that the
Thanks, it works!
Scott Houseman wrote:
Hi Heiko
Try this:
$aName = TEAM;
eval( '$myString = G_T_'.$aName.';' ); // evaluates to: $myString =
G_T_TEAM
echo $myString; // Should print out SAFETOUR_team
I haven't tested this, but it should work.
Regards
Scott
On 10/2/2002
But in RFC2109 they mentioned Comment and version are also attributes of
the setcookie header.
How do you set these attributes using php??
How this print_r() function works??
Thanks in advance
Balaji
-Original Message-
From: Chris Shiflett [mailto:[EMAIL PROTECTED]]
Sent:
Balaji Ankem wrote:
But in RFC2109 they mentioned Comment and version are also attributes of
the setcookie header.
How do you set these attributes using php??
These attributes are optional. Be careful not to confuse the setcookie()
PHP function with the Set-Cookie HTTP header. I'm not
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] says...
Thanks guys, I was unaware having quotes around it would make a difference.
Works fine once I removed the quotes.
John Kelly wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Can I pass the ftp transfer mode in a string
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] says...
DonPro wrote:
$queryID = mysql_query(SELECT HSCode, UOM, EDescript FROM HSCodes WHERE
MATCH(EDescript) AGAINST (' . $description . ') ORDER BY HSCode, UOM,
EDescript);
I don't see what is wrong but try echoing the text of the query
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] says...
I use the mail function tons, never had a problem. I am working with a client with
a different
hosting vendor, they are using PHP 4.2.3, which I guess was a recient upgrade,
anyway I was
informed by the client that he wasnt getting
I told you something incorrectly yesterday:-
- From what you say you dont want get_class_name because this gives you
the name of the class not the instance of it.
get_class is PHP's function for getting the name of a class not
get_class_name
Sorry - I must have been thinking in Java mode.
Hi
Single quote's in strings entered via a text input field are subsequently
appearing with what appears to be an escape character -
comm\'ents
how can i correct this? I've tried
htmlspecialchars($string, ENT_QUOTES);
and
htmlentities($string, ENT_QUOTES);
but these don't seem to work
In article [EMAIL PROTECTED], [EMAIL PROTECTED]
says...
Hi
Single quote's in strings entered via a text input field are subsequently
appearing with what appears to be an escape character -
comm\'ents
how can i correct this? I've tried
htmlspecialchars($string, ENT_QUOTES);
and
Javier Montserat wrote:
Hi
Single quote's in strings entered via a text input field are
subsequently appearing with what appears to be an escape character -
comm\'ents
how can i correct this? I've tried
htmlspecialchars($string, ENT_QUOTES);
and
htmlentities($string, ENT_QUOTES);
? for ($i = 7; $i sizeof($info); $i+=1) { echo $info[$i]; } ?
That line of code successfully will display lines 7 and on of an included
text file into my HTML boilerplate. However, in my hundreds of source text
files, br is not included at the end of the lines, therefore lines 7 and
on appear
-Original Message-
From: Jennifer Swofford [mailto:[EMAIL PROTECTED]]
Sent: 01 October 2002 21:21
To: [EMAIL PROTECTED]
Subject: [PHP] eregi_replace / preg_match_all
Why does this work:
$contents =
eregi_replace((\)(.(/))*[A-Z0-9_/-]+(.gif|.jpg),
\blah.gif, $contents);
Hi Rick,
How can I combine that line of code with
str_replace() or some other replace function
in order to turn \n into br for each line.
I think you're looking for http://www.php.net/nl2br. Specifically:
for ($i = 7; $i sizeof($info); $i+=1)
echo nl2br($info[$i]);
Cheers
Jon
Nevermind. Leave it to me to make a very stupid mistake. I fixed it though,
and now it works great. For any who are interested, here is the working
code... Dunno why you'd need it, but whatever:
? for ($i = 7; $i sizeof($info); $i+=1)
{
$new7 = str_replace(\n,br,$info[$i]);
echo $new7;
}
?
-Original Message-
From: michael saxbury [mailto:[EMAIL PROTECTED]]
Sent: 01 October 2002 22:57
I am trying to understand in deatil exactly what PHP is, I
know that it is a
scripting markup type language, but.
Is it correct to say that PHP is essentially just C++ code
-Original Message-
From: Paul Nicholson [mailto:[EMAIL PROTECTED]]
Sent: 02 October 2002 02:11
Hey gang,
I've been wondering about developing scripts that the
end-user might run on
php 4.1.0. I've heard allot of ways except for one that I
recently thought
of.
How about
The PHP script im using works on my computers server, but when after
uploading to my web server i get this...
Warning: fopen(wtest.txt, wb+) - Permission denied in
/home/canberra/public_html/bomonster/canberra.php on line 6
Dunno why either, the directory is not protected, can anyne help me with
-Original Message-
From: Rick Beckman [mailto:[EMAIL PROTECTED]]
Sent: 02 October 2002 12:12
? for ($i = 7; $i sizeof($info); $i+=1) { echo $info[$i]; } ?
That line of code successfully will display lines 7 and on of
an included
text file into my HTML boilerplate. However, in
From: Rebekah Garner [EMAIL PROTECTED]
Okay, this may be a bit off topic, BUT we just finished a website using PHP,
MySql and Flashwell, I need someone...anyone to check out this URL for me
and click on the Stallions menu, and tell me if anything loads into the text
field. The client
Thanks everyone! Works great! :-) If only I would have noticed how obvious
it was before trying making it more difficult than I had to.
--
Kyrie Eleison,
Rick
www.spiritsword.com/phpBB2/
Mike Ford wrote:
-Original Message-
From: Rick Beckman [mailto:[EMAIL PROTECTED]]
Sent: 02
[snip]
from the client end, you can't
from the server end, you can use curl.
...
but I want to submit the action value as a POST rather than a GET. I then
have conditionals around each of my modules that check $_POST['action'] for
one of three values and only print that module if that's the
(For the archives)
The RegEx I finally used was this:
search:
D(.*)
replace:
DD\1/DD
I tried this in 3 editors: jEdit, eMacs and BBEdit
jEdit interpreted the replace expression as literally \1
eMacs didn't like the parenthesis in the search string
In BBEdit it worked like a charm.
Not sure
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
yeah, at the top of each functionwhere you would normally put global
$HTTP_GET_VARS; The created $_GET is not a superglobal so its scope is only
in the function its defined in or if you define it in the global namespace
you'd have to global
Not sure where you mean by 'into the text field' but I see a drop down menu
with a photo loaded underneath and then underneath that further menus with
more pics of horses.
Debbie
- Original Message -
From: Lowell Allen [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Wednesday, October
hi,
you can make a hidden form l
like this
form style=visibilty:hidden;position:absolute;top:0px;left:0px;
action=yourpage.php method=post id=myform
.. form fields
/form
//in javascript you can use this
myform.submit()
and your form will be submited
khalid
In order to get my site on-line, I need to upload all my files, and create a
few PostgreSQL tables that the scripts rely upon.
I've created a script that should create these tables, but in testing it,
nothing happens - no tables are created. I wondering whether it's even
possible to create
[snip]
I've created a script that should create these tables, but in testing it,
nothing happens - no tables are created. I wondering whether it's even
possible to create these tables from php?
...
So, I guess my question is: can I use php to accomplish these tasks, or do I
have to have access to
It appears to me you are not actually executing the SQL you are storing in
the varible.
Did you accidently miss that out of your email?
I would supply you with more information but I don't know how to use
PostgreSQL, but since you are coding with it, I guess you should be able to
figure out the
Simon Angell wrote:
Thanks for that Robert *it works*, now i have 1 more problem, after
uploading to my web server i get this...
Warning: fopen(wtest.txt, wb+) - Permission denied in
/home/canberra/public_html/bomonster/canberra.php on line 6
Dunno why either, the directory is not
They found the problem, the webserver that the client was on had the
wrong path to sendmail, a correction in php.ini and a restart and it was working again.
--- Debbie Dyer [EMAIL PROTECTED] wrote:
Hi Dan
I (and others I know) have similar probs of seemingly disappearing
emails -
Hi Andrew,
Oh, I feel SO stupid! I 'forgot' that line in my code! Sigh . . . I've just
got a big serving of humble-pie!
I probably would have stared at that code for hours without noticing it.
Thanks!
(btw, nice name, eh?)
Regards,
Andre
On Wednesday 02 October 2002 09:53 am, Andrew
I am the webmaster of the site, i pay for the server space, is that what you
mean?
--
Cheers
-
Simon Angell
Canberra ACT
www.canberra-wx.com
-
Member of:
Australian Severe Weather
No i mean switch to the directory in which you have th file with the code
and type 'ls -al' Then look at the permissions and ownerships. Don't forget
the web server runs with different permissions thatn you do at home.
Cheers,
Rob.
Simon Angell wrote:
I am the webmaster of the site, i pay
i am unsure what you mean, where exactly do it type in 'ls -al' ?
--
Cheers
-
Simon Angell
Canberra ACT
www.canberra-wx.com
-
Member of:
Australian Severe Weather Association.
Hi,
I know that is old problem, but I could'n solved until
now. Sorry for any inconvenience.
I've installed gd-2.0.1 (in /my/home) and php-4.2.3
with the following options:
./configure --with-mysql
--with-apache=../apache_1.3.26
--with-gd=/my/home/gd-2.0.1 --prefix=/my/home/local
Hi,
I know that is old problem, but I could'n solved until
now. Sorry for any inconvenience.
I've installed gd-2.0.1 (in /my/home) and php-4.2.3
with the following options:
./configure --with-mysql
--with-apache=../apache_1.3.26
--with-gd=/my/home/gd-2.0.1 --prefix=/my/home/local
hi,
i am facing a strange problem
i am using php 4.2.3 the url says
http://ipaddress/admin/add_doc.php?id=264mode=add;.
but in the php file when i try to print $id and $mode it couldnt print the
values..
but in some other files it successfully reads the parameters from url.
moreover, the same
If it's genuinely one line per $info[] element, just add the
dad-blamed
br to your echo:
? for ($i = 7; $i sizeof($info); $i+=1) { echo $info[$i], 'br';
} ?
Also, just an FYI to the OP, you may want to calculate sizeof($info)
before hand, and use a variable in your for() statement. That
Turn on register_globals in your php.ini
On Wed, 2 Oct 2002, Anil Garg wrote:
hi,
i am facing a strange problem
i am using php 4.2.3 the url says
http://ipaddress/admin/add_doc.php?id=264mode=add;.
but in the php file when i try to print $id and $mode it couldnt print the
values..
but
Hi,
I would like some ideas on how to perform the following. Any input from the
PHP gurus would be appreciated.
I have a form where my customer feels out certain information. Part of this
information is the company name, address, city and state/province of their
customer. I have to assign a
If have gd 1.8.4 compiled with zlib and jpeg support... This works fine but
whenever I try to make php 4.2.3:
configure --enable-track-vars --enable-trans-sid --with-mysql --with-apxs --
with-gd --with-jpeg-dir=/usr/local/lib --with-zlib
I register following line:
checking for
Hi,
I know that is old problem, but I could'n solved until
now. Sorry for any inconvenience.
I've installed gd-2.0.1 (in /my/home) and php-4.2.3
with the following options:
./configure --with-mysql
--with-apache=../apache_1.3.26
--with-gd=/my/home/gd-2.0.1 --prefix=/my/home/local
PHP doesn't officially support Apache2 at this point. Go back to Apache1.
On Thu, 3 Oct 2002, Chris Aitken wrote:
Hi all,
I have recently upgraded to apache2 on my FreeBSD 4.6 box, and the upgrade
worked well, the daemon was running and serving pages etc. So I installed
the latest PHP
Hi, my name is Clint Tredway and I am a web developer in Dallas Texas. I
am looking for any projects that you may need help with.
My rates are very reasonable and I can be reached at anytime.
Thanks,
Clint
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
I'm sure there has to be a way to verify which IP address is accessing
from. I need to establish a page where when I enter it records the IP
address I'm logging in from, to a database.
Problem is I can't seem a command in php that can assign that to a
variable, as in:
$ip=HTTP_GET_
ANY
$REMOTE_ADDR
On Wed, 2 Oct 2002, Webmaster MBTRADINGCO wrote:
I'm sure there has to be a way to verify which IP address is accessing
from. I need to establish a page where when I enter it records the IP
address I'm logging in from, to a database.
Problem is I can't seem a command in php
Try: $ip=$_SERVER['REMOTE_ADDR']
-Original Message-
From: Webmaster MBTRADINGCO [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 02, 2002 1:08 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Getting users IP address into a variable.
I'm sure there has to be a way to verify which IP address
Hi all,
I have recently upgraded to apache2 on my FreeBSD 4.6 box, and the upgrade
worked well, the daemon was running and serving pages etc. So I installed
the latest PHP build in my ports tree (4.2.3) and it compiled no problems,
but when I added the required lines into my httpd.conf to
Hi,
I'm sure there has to be a way to verify which IP
address is accessing from.
$ip=HTP_GET_
$REMOTE_ADDR
...and to deal with some (but not all) proxies:
$ip = (getenv(HTTP_X_FORWARDED_FOR))
? getenv(HTTP_X_FORWARDED_FOR)
: getenv(REMOTE_ADDR);
Either way you're
I haven't tried php with apache 2 on linux yet, but the windows distribution
of php has 2 dlls: php4apache.dll and php4apache2.dll; there's nothing in
the documentation about the second dll whatsoever, neither any installation
guide for Apache 2; the guide actually says using the php4apache.dll
Try:
$ip = ;
if ( $HTTP_X_FORWARDED_FOR ) {
$ip = $HTTP_X_FORWARDED_FOR;
} elseif( $HTTP_VIA ) {
$ip = $HTTP_VIA;
} elseif( $REMOTE_ADDR ) {
$ip = $REMOTE_ADDR;
} else {
die(); // or perhaps some better response
}
--- Webmaster MBTRADINGCO [EMAIL PROTECTED]
wrote:
anyone know what migth cause this error. I changed the mode to 777, made sure that is
was the
correct owner.group.
getimagesize: Unable to open 'images/product/i3_berkeley_bed_2drw.jpg' for reading
=
Theres no such thing as a
Don
I am not a 'PHP guru' and I dont know where you can find an algorithm but:-
If the only problem is users adding/not using name extensions, then for your
company exists already test you could remove known extensions from the input
company name - ltd, plc, etc - and replace this with a
Assume you've got some class that has one or more classes inherited from it.
The parent class has a function that is normally called using the ::
operator (a class function). Assume also that the class function is never
called from an object function. Is it possible to find if the class
Webmaster MBTRADINGCO wrote:
I'm sure there has to be a way to verify which IP address is accessing
Don't count on it to identify users on the internet though.
Regards
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
For a coursework assignment I have to investigate this thing where you do
the following for example:
264- Choose 3 digits that are not the same
12 - Find the sum of them.
264
246
624
642
426
462- List all the possible combinations of
Actually I'm just using it so a customer can acces a PWS that is
broadcasting on its own security cameras. I have a DSL that disconnects
every 8 hours, and gives dinamyc IP, so each time it connects it goes to
my site, and writes down the addres, so my customer can access the
report, and see what
Hi,
I am trying to upgrade my script which currently uses globals (and
register_globals=on) to turning that flag off. The online documentation
on register globas has the following code recommended by users in order
to register the variables:
$GLOBALS[dbname] = dbname;
//register globals
Hey folks,
Whenever I try to open files via fopen i get the following message
stat failed for Resource for id #1
Fopen Wrapper is turned on in php.ini
What wrong?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Well, since it's for school I'll only point out a couple of issues...
- your for loop will never test the number 987 even though it should.
- add the following line rightr after you compute $numtotal:
print($numtotal = $num1 + $num2 + $num3 + $num4 + $num5 + $num6\n);
and you'll see that
I think I know what you mean. You could get it to return the name of the
class.
eg.
class A {
function foo () {
return get_class($this);
}
}
class B extends A {
}
class C extends A {
}
$a = new A();
$b = new B();
$c = new C();
print $a-foo();
print $b-foo();
print
Debbie Dyer wrote:
company exists already test you could remove known extensions from the input
company name - ltd, plc, etc - and replace this with a wildcard for the
check.
- Original Message -
From: DonPro [EMAIL PROTECTED]
information is the company name, address, city and
What is wrong with it? Any help at all is greatly apreciated.
Consider the differences between my code below and yours. And as far as I
can see, there's no combination higher than eleven, lower than 987 which
doesn't work out.
?
for ($i = 12; $i 987; $i++) {
$newI = $i;
not quite... the case I'm interested in is this, given your example:
print C::foo();
which would print nothing, unfortunately, since when the function is called
using the :: operator there is no $this variable. basically what I'm
looking for is a replacement for get_class($this) when the
I dont understand what you are saying then or what you are trying to do.
How can you call C::foo() outside of a class? You access class functions
externally with -
Debbie
- Original Message -
From: Nick Eby [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 02, 2002 7:24
[EMAIL PROTECTED] wrote:
errors, but it doesnt do what i want it to do - instead of returning any
three digit combo that doesnt return 222, it just prints EVERY combo whice
passes my conditional statement to weed out numbers that have digits where 2
or more are the same.
I can't write bug-free
Hello everyone!
On Win 2k, what is PHP's user name? Or, what username does PHP access
files (on the system) as?
-john
=P e p i e D e s i g n s
www.pepiedesigns.com
Providing Solutions That Increase Productivity
Web Developement. Database. Hosting. Multimedia.
--
PHP General Mailing
The one that accesses the filesystem through PHP is the webserver itself,
not PHP. And as your server is probably instaleld as a service, it runs
under SYSTEM credentials.
- Original Message -
From: [-^-!-%- [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 02, 2002 9:43
when you call a function with -, you must call it on an object ($c-foo(),
for example). the function is termed an object function when used that
way. php has an operator :: that enables that same function to be called
without a specific object; in this case, I'm referring to it as a class
Folks,
I want to keep track of referers to my site. I want to store the domain name of the
referer in a db field. I want 'just' the domain name, not the full url.
So I need a snippet of code that could parse the $HTTP_REFERER, and return just the
domain name.
Example
1)
I have the following line in a program I'm working on:
$query = UPDATE countertable SET CurrDate = '$ndate' WHERE ID = $id
$ndate is a properly formated date read from a text field on a form on
the previous page. When I run the query using mysql_query, it returns
TRUE each time, but the
From: Brad Harriger [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 02, 2002 3:17 PM
Subject: [PHP] Setting date fields in mysql queries
I have the following line in a program I'm working on:
$query = UPDATE countertable SET CurrDate = '$ndate' WHERE ID = $id
$ndate is a
[snip]
I have the following line in a program I'm working on:
$query = UPDATE countertable SET CurrDate = '$ndate' WHERE ID = $id
$ndate is a properly formated date read from a text field on a form on
the previous page. When I run the query using mysql_query, it returns
TRUE each time, but the
Never mind. Didn't realize PHP had the parse_url function. Got it!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I keep receiving the following error when I try to use fopen() to a
remote server, regardless of which server I try to connect to
apparently.
I've verified that allow_url_fopen is set to true, so this should be
functioning properly.
I'm only trying to read the contents of the file so why
I am looking for a way to find the highest 5 and lowest 5 numbers within 300
or so numbers. Here is what I have so far...
$Tickers = array();
$Current = array();
// SQL QUERY TO GET TICKERS
MSSQL_CONNECT($HostName,$UserName,$Password);
mssql_select_db($DBName) or DIE(Table unavailable);
Hi people,
i've been searching for a while in google and vivisimo for docs that treats
paging techniques for php and mysql. And so far i seek nothing. I always get
stuck with empty documents (if you know what I mean).
Can U give me a hand with this. If you already have a doc of this nature, or
Sort the arrays and pick off the first and last elements.
On Wed, 2 Oct 2002, Christopher J. Crane wrote:
I am looking for a way to find the highest 5 and lowest 5 numbers within 300
or so numbers. Here is what I have so far...
$Tickers = array();
$Current = array();
// SQL QUERY TO GET
I get this error from php when i execute this code can you help me ;)
Warning: chdir() expects parameter 1 to be string, resource given in
C:\\read.php on line 146
145 echo centerAttachment :;
146 $rep = opendir(C:\\xxx\\Attach\\$id\\);
147 chdir($rep);
148 while ($zone = readdir($rep))
149
1 - 100 of 151 matches
Mail list logo