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['cat
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 =
'http://www.whatever.com/page.htm?something=
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()
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
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
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 y
> 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 Li
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 (500M
Hi Chris,
Thanks for the help.
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 [mailto:[EMAIL PROTECTED]]
Se
Balaji Ankem wrote:
>
>
>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 setcookie() funct
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
>
> O
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: Wednesday
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 ce
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 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 t
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 gett
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.
D
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 (maybe
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)
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_QUO
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, "" is not included at the end of the lines, therefore lines 7 and
on appear as one chunk of text, rather than neatly formatted lines. How ca
> -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",
Hi Rick,
> How can I combine that line of code with
> str_replace() or some other replace function
> in order to turn "\n" into "" 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
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:
",$info[$i]);
echo $new7;
}
?>
My mistake was leaving that I left the second '$' out of '$info[$i]'.
> -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++
> -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.
> H
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 w
> -Original Message-
> From: Rick Beckman [mailto:[EMAIL PROTECTED]]
> Sent: 02 October 2002 12:12
>
>
>
> 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, "" is not incl
> 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. Th
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 acti
(For the archives)
The RegEx I finally used was this:
search:
(.*)
replace:
\1
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 why. Pe
-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,
hi,
you can make a hidden form l
like this
.. form fields
//in javascript you can use this
myform.submit()
and your form will be submited
khalid
_
MSN Photos is the easiest way to share and print your photos:
http://photos.m
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 the
[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
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 disappearin
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 Brampto
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 Assoc
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 f
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.
www.sever
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
--with-fre
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
--with-fre
hi,
i am facing a strange problem
i am using php 4.2.3 the url says
"http://ipaddress/admin/add_doc.php?id=264&mode=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
> to your echo:
>
> ';
} ?>
>
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 way it
doesn't have to calculate sizeof() each loop...
--
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=264&mode=add";.
> but in the php file when i try to print $id and $mode it couldnt print the
> values..
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 u
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 gdImageCreateform
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
--with-fre
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: http://www.ph
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 IDEA
$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 ph
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 i
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 make
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 wa
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 as
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]>
wro
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 probl
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 wildcar
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
function
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 t
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 you
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 $c
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
> 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.
Jome
--
PHP General Mailing List (http://www.php.net/)
To
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 functi
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
[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-f
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 L
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
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) http://www.google
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 fie
> 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
[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 th
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 doesn
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
t
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
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 "Attachment :";
146 $rep = opendir("C:\\xxx\\Attach\\$id\\");
147 chdir($rep);
148 while ($zone = readdir($rep))
149 {
1
Just pass the current position from one page to the next and use a
"LIMIT start,num" clause.
-Rasmus
On Wed, 2 Oct 2002, Francisco Vaucher wrote:
> 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
Your code makes no sense and the error message is telling you exactly what
you did wrong. opendir() returns a directory handle to be passed to
readdir(). Calling chdir() on a directory handle makes no sense. You
want to chdir to the same string that you passed to opendir()
-Rasmus
On Wed, 2 O
Thank you very much, I did not know sort would work this way. Makes complete
sense now though. Thansk again I will give it a shot.
"Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Sort the arrays and pick off the first and last elements.
>
> On W
Hi,
Is it so that in php 4.2.3 we have to do both..."addslashes" and
"removeslashes" ?? coz in one of the older versions the things are goin fine
without using "removeslashes" but it doesnet seem to be the case in
php4.2.2.
thanx and regards
anil
--
PHP General Mailing List (http://www.php.n
No, nothing has changed in recent memory with respect to this.
On Wed, 2 Oct 2002, Anil Garg wrote:
> Hi,
>
> Is it so that in php 4.2.3 we have to do both..."addslashes" and
> "removeslashes" ?? coz in one of the older versions the things are goin fine
> without using "removeslashes" but it do
Hello,
how can I use global variables in my web portal? I have read the php
documentation, but it works only in the same file.
I want use more global variable on many php site.
For example:
In login.php I use the code
$first=mysql_result($result,0,"FIRST_NAME");
and I want to print th
I was able to work around this solution by using it on a different
server with a different version of PHP.
I decided to do this after reviewing the search results at Google.com
This is a known bug that the PHP development team has chosen to ignore,
as this article clearly outlines:
http://ww
1 - 100 of 148 matches
Mail list logo