On 20 May 2001 16:16:47 -0700 impersonator of [EMAIL PROTECTED] ("Manuel
Lemos") planted &I saw in php.general:
>Weren't you the one that was saying that you opposed to the existence of a
>PHP compiler? Despite your opposition, Zeev and Andi brought it up to the
>joy of many PHP users.
>
Hi. Is
I've used NuSphere twice (I just use the downloaded version) on two
different machines (both Windows 98), and it really works great.
It comes as PHP installed as CGI (at least on windows) and with very little
effort I got it working as an apache module.
I don't have personal experience as to how
use GROUP BY
SELECT
result,
COUNT(result) AS res_count
FROM
result
GROUP BY
result
ORDER BY
res_count
DESC
;
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
---
select result,count(*) as cnt from table group by result order by cnt desc ;
- Original Message -
From: "Jacky" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 24, 2001 10:02 PM
Subject: [PHP] select the most repeated value in a field
Hi people
How do i query to select
Changing $PHP_AUTH_USER and $PHP_AUTH_PW
I would like to automatically set these variables without actually prompting
the user to submit a username or password in the authentication window.
It would mean I could mimic cookie functionality in cookie-disabled browsers
to track users, etc.
Is this
I'm using PHPLib as well and am not all that happy with it.
It was working just fine until our host decided to upgrade to PHP4. After
that, any values being inserted to HTML using templates that had dollar signs
and values would not display! For example, if you said admission was $15.00
all
Sweet, that works!
How simple was that, I was expecting something real complicated.
Thanks dude.
"Jason Murray" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Don't suppose you have some example code on how to do that?
>
> if ($HTTPS)
> {
> // You're in
Hello Ivan, there's a nice article at DevShed.com explaining this
Try http://www.devshed.com/Server_Side/Administration/TalkToMe/print.html
HTH
Regards
- Original Message -
From: "rodrigo" <[EMAIL PROTECTED]>
To: "php php" <[EMAIL PROTECTED]>
Sent: Thursday, May 24, 2001 4:24 AM
Subjec
Hi Guys,
new to the list.
i would like to know if there is any smal webserver like boa or thttpd
which supports php ?
best regards,
parag mehta
Kernel panic: I have no root and I want to scream <--- perfect error message
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-
Previously, Richard Kurth said:
>
> That my problem www is not always the host when it is a sub-domain it
> would be like mysit.domain.net or sometimes people put a few extra
> periods in the domain name like www.my.test.net I thought maybe I
> could look at the string and find out how many peri
Hi,
Is it possible to execute PHP stored in a MySQL-database?
If so, how to do it?
In the example below I store "Hello world!" in a database, and next I
echo it. "Hello world!" is printed on the screen.
But how to
* store PHP-code in a database
* and execute it?
Any help would be appreciated.
After I use that query, I got list of result group by DESC under variable
name " firstchoice", how could I index this firstchoice variable so that I
can take each individual result to display according to the page layout
position?
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reachi
Previously, Internaut said:
> Thankx for your reply, would you recommend setting the register_globals to
> on, would this be safe to do this?
It's not any more or less "safe" than using the $HTTP_POST_VARS or
$HTTP_GET_VARS arrays instead, but it could be less typing :-)
Note that for the arrays
hi people,
When I use this query below:
select result , count(result) as choice from result group by result order by choice
desc;
It returns the number of times each value appear in a result field in order of DESC
under variable "choice", right?
At this point, I know how to pick MAX(choice) b
Previously, Ker Ruben Ramos said:
> hmm, got a little question.
> 1. what's that \\1 and \\2? got any info on where u got that from?
Expands to whatever the parentheses surrounded during the match. So
in this case you have:
Match pattern: ""
Replace pattern:""
There are two pl
aquariuz wrote:
>
> Hi,
> Is it possible to execute PHP stored in a MySQL-database?
> If so, how to do it?
>
> In the example below I store "Hello world!" in a database, and next I
> echo it. "Hello world!" is printed on the screen.
>
> But how to
> * store PHP-code in a database
> * and execut
Hi
I have a question . At some website which have webmail serivce , they won't
use SSL for login .
Then how can they protect clinet's information and email ??
they use sessions when login in ??
use sessions is secure ??
Is there another security method in PHP ?
--
PHP General Mailing List
Hi people
question about query when I use this:
"select result, count(result) as choice group by result order by choice desc;"
How do I print "choice" in my page when the query return value back to me?
any help is appreciated
cheers
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than rea
Because you can also do:
if ($array_result = mysql_fetch_array($result)) {
do {
// do your thing here
} while ($array_result = mysql_fetch_array($result));
} else {
echo "no records found!";
}
Cheers
Jon
-Original Message-
From: Chris Lee [mailto:[EMAIL PROTECTED]]
Sent: 23 M
Hi people
question about query when I use this:
"select result, count(result) as choice group by result order by choice desc;"
How do I print value stored under "choice" in my page when the query return value back
to me?
any help is appreciated
cheers
Jack
[EMAIL PROTECTED]
"There is nothing mor
Hello:
I want to know if there's any collection of PHP routines to solve common
tasks, for example, makeurl(title,value), and similar things, to make the
code more easy to read.
Best Regards
Visual PHP Studio, RAD development with PHP
h
Is there any way you can resize images 'on the fly' with php?
I have images in a directory and i want to pull one out at random and
display it at 50% of it's original size. I was thinking i could read the
file into a variable and then use one of php's image functions on it but I
can't find any do
Jamie,
$imagesize = GetImageSize("yourfile.gif");
Will return an array of image properties that you can use.
Andy.
- Original Message -
From: "Jamie Thompson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 24, 2001 11:46 AM
Subject: [PHP] Resize Images 'On The Fly'
>
most of the servers support PHP all you have to do is install it
right... I have tested it with Apache, Sambar, PWS, IIS, Xitami
check 'em out!
"Parag Mehta" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi Guys,
>
> new to the list.
>
> i would like to
I was using preg_replace with the '/F' parameter, and it was working
perfectly till v4.0.4pl1.
Now it has been substituted by preg_replace_callback.
Does it work with a class method as a callback function?
If it does, how should it be written?
I'm asking this because in each of these cases:
-
hi to @all,
i would like to know how can i install php module over iis. i would like to know
also how does php work on sql server.
best regards,
marcos
http://www.phpwizard.net/projects/phpIRC/
phpIRC uses such functionality to run such a daemon without having to use
crontab. However, PHP just doesn't do it all that fantastically on it's own.
phpIRC can often run for 3-4 days, but after that it tends to die off or
stop functioning. Meaning you c
Hello !
I want to make a dynamic formular, on which the user can enter a
different number of names.
So to make the form I do:
for ($i = 0; $i < $anzahl; $i++)
{ printf ("\n", $i);
}
Now I want to set all the Varables Name0, Name1, Name2 etc. to a
default-value.
How can I do it in a for-next-l
I was looking for a way to build a spreadsheet (Excel) dynamically with data
from a table, and I was curious about doing it in PHP .. I prefer to use
PHP, but I know in ASP it can be done. If I'm running PHP on Linux (can't
use the COM functions), is there a way this can be done? Preferably
star
I have a database and couple php scripts.
I'm going to update some tables inside of this database.
The server is a fast one (with 256Mb)
I don't think there are too many updates but I get an error very strange.
Many connections get LOCKED.
After some time, the system is going down.
I'm using m
Well, you're getting the reason for the security methods mixed up.
First, SSL only means that no one can know what data is being sent between
you're computer and the destination server.
If a site doesn't use SSL than someone can, technically, 'sniff' your
username and password and thus gain acce
If the variable's names will be $Name1, $Name2, etc, then you'd do something
like this:
for ($i = 1, $i <= $n)
{
/* $n will be how many variables you have. So if you have 5 variables, $n
should equal 5 */
${"Name" . $i} = $default_value;
}
So if $n was 3 and $default_value was 0, you'd have thre
Hi folks,
I've been banging my head against a problem with file uploads for the last
few days. Perhaps someone here has seen this before.
My problem is that when handling my file uploads, I can print out the values
of my form variables, both using HTTP_POST_VARS["var"] and $var. I can also
se
On Thursday 24 May 2001 10:49, Parag Mehta wrote:
> i would like to know if there is any smal webserver like boa or thttpd
> which supports php ?
Yes. thttpd for example.
Read the manual for more info
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
I sat laughing snidely into m
Very nice solution. Thank you !
Plutarck schrieb:
> If the variable's names will be $Name1, $Name2, etc, then you'd do something
> like this:
>
> for ($i = 1, $i <= $n)
> {
> /* $n will be how many variables you have. So if you have 5 variables, $n
> should equal 5 */
> ${"Name" . $i} = $default
The online documentation doesn't contain any api regarding vpopmail. Where
can i find it??
--
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 PROTECTE
Hello !
I want the user to have a chance to reset the session and get a new
session_id on one page.
I tried:
session_name("MyId");
session_register("MyId");
session_unregister("MyId");
session_register("MyId");
But it doesn't worked. session_destroy doesn't work, too.
What I want is, the PHP
Wondering if anyone out there has used both of these
packages and would care to comment on the relative merits of
each,
especially 'ease of install and configure'.
I'm building a Mysql/PHP box for a database building project
that will never be connected to the internet.
All advice is appreciated
Does anyone know the reason for the type mismatch error which often seems to
happen when using COM objects?
The only piece of info I've seen suggested that a COM object can't be passed
as a variable to a second COM object. Is this true, and if it is how might
this be worked around.
Thanks for an
Hi!
Are there any libraries for pdf constructing
but pdflib and clibpdf free for commercial use?
and what tools exists to sign pdf documents?
Serge Grekhov
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands
Hi All
This is possibly more of an apache/linux question... does anyone know a way
to force ANY url to run ONE PHP script on a virtual server... eg. the same
script is run if a user goes to www.myserver.co.uk or
www.myserver.co.uk/dfkgjdfl/ or www.myserver.co.uk/hello.htm or WHATEVER!!!
:o)
Ch
You can try to set the 404 error page to that ... I don't know how safe that
is, but it might work..
-Ron
""Simon Kimber"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi All
>
> This is possibly more of an apache/linux question... does anyone know a
way
>
Probably not exactly the answer that you're looking for, but you can do the
following. Output your data in PHP to a webpage that consists of purely a
table of your data. Open Excel, go to :
Data->Get External Data->New Web Query
Type in the URL for the page with your data.
Select which t
http://badblue.com/
That should be what you are looking for.
Jason Lotito
www.NewbieNetwork.net
PHP Newsletter: http://www.newbienetwork.net/ciao.php
PHP, MySQL, PostgreSQL Tutorials, Code Snippets, and so much more
> -Original Message-
> From: Parag Mehta [mailto:[EMAIL PROTECTED]]
>
Hey All,
Does anyone know where I can find a nice PHP chat room script?
Will I need MySQL database access?
How much coding is required? (I'm an average programmer, just not got too
much time)
-
Also, which is best...?
* java applet that connec
> Hi All
>
> This is possibly more of an apache/linux question... does anyone
> know a way
> to force ANY url to run ONE PHP script on a virtual server... eg.
> the same
> script is run if a user goes to www.myserver.co.uk or
> www.myserver.co.uk/dfkgjdfl/ or www.myserver.co.uk/hello.htm or
Here is a good article on that topic:
http://www.phpbuilder.com/columns/tim2526.php3
Note: if you have to use the appoach, php must be running as a
module.
Kevin Leavell
Leavell Digital Design Inc.
P 406.829.8989
C 406.240.4595
---> -Original Message-
---> From: Ron [mailto:[EMAIL
"ryan.barnett1" wrote:
>
> Hey All,
>
> Does anyone know where I can find a nice PHP chat room script?
>
> ...
>
Have you tried this site:
http://freshmeat.net/search/?q=php+chat
--
Pavel a.k.a. Papi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTE
Hello
I am in the process of learning php by following the examples out of the
book, as I try to run this script an error message appears with the
following:
Warning: Supplied argument is not a valid MySQL result resource in
/home/httpd/vhtdocs/tosh/php/show_more_db.php on line 10
Here is the s
Hello Brandon, for Version 7, have a look at
http://www.knowledgeisland.com/inet/php/php.php
look in the PHP& Databases section
HTH
Regards
- Original Message -
From: "Brandon Orther" <[EMAIL PROTECTED]>
To: "PHP User Group" <[EMAIL PROTECTED]>
Sent: Monday, May 14, 2001 6:12 PM
Subje
No luck,
I have compiled php4, made changes to httpd.conf
LoadModule php4_module /usr/lib/apache/libphp4.so
AddModule mod_php4.c
and also
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps
Apache starts OK but it doesn't recognise .php3 extensions. It sta
for those of you who are interested im developing a web site for php
developers to share resources and information.
you wont need to be a member or commit yourself to anything its totally
free.
you can view the site at the following URL: -
http://www.oosha.com/phpdev/index.php3
Its empty at the
Thanks alot, now i know what are thos \\$NUM
but one more thing, where're those \\0 come from? just found it on some
scripts using \\0. seems to confuse me a bit.
Thanks
- Original Message -
From: "Dan Lowe" <[EMAIL PROTECTED]>
To: "Ker Ruben Ramos" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECT
db_connect doesn't exist.
Try mysql_connect, or better yet, mysql_pconnect()
Online manual at www.php.net.
You can get quick results for any function by entering
http://www.php.net/name_of_function
and it is automatically searched for.
Miles
At 03:15 PM 5/24/01 +0100, Internaut wrote:
>Hello
Hi,
I'm afraid this is a rather tough one, as nobody has answered so far.
I'm growing rather desperate about this issue that's been causing me
several sleepless nights already. All I want is to be able to use IMAP to
access POP3 mailboxes with PHP4 (4.0.5). I had no trouble compiling both
imap
Hi all,
just for the record.found the problem.the partition was
full*blush*:O\
-Robert
--
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: [EMA
ok Im having a hard time reading my own writing, the headers for both are
correct. what I didnt take 10sec to see was that done2 was not being sent,
done2.x and done2.y is being sent. oi.
";
?>
there we go :) now I can tell what submit button was pressed, easily and
cleanly.
hi,
i have to run php over Netscape Enterprise Server 3.6.
is there any module to run it there?
thanks in advance,
marcos
Hi,
I'm really new to PHP and i'm not too smart!..., I pulled some from code
out of scripts.com for processing forms just to test.
this is on an IIS server 4.0 server
this is the error I get after clicking on the tell us button...
CGI Error
The specified CGI application misbehaved by not retur
Hello,
Can anyone here, please, recommend me a good book that covers the
DB abstracion that has PHP4? Most of the books only deal with MySQL,
and that's not always my choice for a DB administrator. So I need
to program scripts that can connect to any DB.
I use this in ASP: I write a tiny scr
Is there a way to store users input on *another* page (i use frames), in
hidden fields, then be able to update those hidden fields as the user goes
along, also, be able to extract that data when a user returns back to a
previous form?
I'm thinking of using this instead of Sessions or Cookies. Ba
You can indeed do this in javascript. You need to put a FORM on the page in
the other frame and then access the data elements in that form with the
syntax
parent.frame[x].formname.elementname.value
or something along those lines.
This gets pretty ugly pretty quickly, IMO. Also, I think you coul
Hi this is probably of the scope of the list since it is a c++ question. (sorry)
I'm trying to learn a few things about c++ and I'm using "gcc" on my
Linux box. The problem I encountered is with the floating point
manipulation classes or functions like "fixed" and "showpoint", I get a
compile er
hello-
I have a pretty easy question for some of you. I'm using the ereg function and it's
not returning a true or false after it runs. Below is the code snippet I'm using.
echo ereg("^[a-zA-Z]$", $fname);
as you can see I'm just looking to make sure the variable $fname just has characters
a
On 21 May 2001 10:06:41 -0700 impersonator of [EMAIL PROTECTED] (Zeev Suraski)
planted &I saw in php.general:
>At 08:24 21/5/2001, Rasmus Lerdorf wrote:
>>You are assuming they even read this mailing list.
>
>*ping* (in Tokyo, so it took me a while to catch up on my Email)
>
>Zeev
>
Sorry for _an
Okay, I'm trying to teach myself how to utilize fdf and insert into pdf and
I have a question for y'all. When using pfd forms to submit to an fdf file,
the php script uses the variable $HTTP_RAW_POST_DATA as the source to write
to the fdf file. If I use an HTML form to do the same thing, what vari
Hi,
I think this is more complicated. You'll need to create the FDF file manually
pertaining to the format
specifications. You will have to use the data posted from the HTML form, but just
writing them out to the
file won't do the trick. I haven't done this with PHP yet, maybe the fdf functio
PHP 4 Bible (Converse/Park, IDG Books) has a chapter on OO programming that
contains sample code for an entire DB layer...
Failing that you can knock your own up really easily, using include() to
stick it in whatever script you fancy.
HTH
Jon
-Original Message-
From: Erich Reimberg N.
How do I backup a blob field in mysql? Every time I dump it (to a text file
via phpMyAdmin)... it creates insert lines but the binary data is all
screwed up and when I load it it gives me error messages...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTE
Since nobody answered my last question (or any of them for that matter). Let
me rephrase it a little
different.
Other then checking the referer (to make sure the posted data came from the
right page)
and user agent (to see if it exists), is there any other way to secure a
form from having other
Another way to do this is to have a form element with an odd name and value
that you can check for before processing the post. This is not too secure if
someone knows the name and value though. In that case you can use the
referer _and_ a unique element name and value that is related to the
refere
Are you using sessions? You can register a tracking variable on the form
page and then check that variable on the processing page. If the posted
data comes from any page other than the one that you want it to, the
variable will not be set. Not 100% sure, but I think this covers what
you've aske
If I upload images to a web directory using PHP, how can I prevent a web
browser from getting a file list of the directory while still allowing
it to be polled for specific images?
kind regards,
bill hollett
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROT
Suppose I have a query like this:
$query = "select A.id, B.id from foo A, bar B where A.bleh=B.blob;";
$result = pg_exec( $db, $query);
$obj = pg_fetch_object( $result, 0 );
My question is: How do I access the field names in the $obj now?
I know that I can transform the query to avoid this probl
Hi,
you could use an additional parameter containing a checksum of the entire URL, that
you check at the
beginning. Of course, somebody with the right motivation could find out your checksum
scheme (I would
use a subset of the md5 function), but at least it won't be simple anymore.
You could
In article <002e01c0e46c$ec2459a0$6e00a8c0@webdesign>,
[EMAIL PROTECTED] ("Jay Paulson") wrote:
> echo ereg("^[a-zA-Z]$", $fname);
>
> as you can see I'm just looking to make sure the variable $fname just has
> characters a-zA-Z and nothing else.
Actually, you're checking whethere the variabl
I'm not trying to keep my script secure, I'm trying to get into another
script, using cURL.
I sent all of the POST fields, set my REFERER to be their referer page, even
set my AGENT to
be ie 5 on a Win2K box. Damn script is still not returning the right screen.
When I copy the HTML
code to my mac
Hi,
This is not very php related but if anyone can let me this simple question.
I'm using a dos window to communicate with my MySQL server. What if i want to save the
results in file. What is the command i should
use.
Thanks,
Hasan
--
PHP General Mailing List (http://www.php.net/)
To unsubs
mandrake is easy to install, yes. :)
mandrake is a full distribution... it's everything
that most people need kernel, Xwindows, servers,
apps, games, dev. libraries, languages, etc. etc...
you can customize which programs get installed
from the install program.
it's a great system reall
On Wed, 23 May 2001, Dennis Gearon wrote:
> I wonder about the version numbers because of some of the alphanumeric
> values in them.
>
> Are the version numbers chosen such that ANY version higher can be
> checked for by the following code:
>
> if ( strcmp($ver_running_under, $min_version) > 0){
Previously, Gyozo Papp said:
> metacharacter.
>
> > Is a '.' inside of a [] a literal '.', or a 'any character'
A period inside a character class (i.e. inside a [] block) is just a
period, and not a metacharacter.
-dan
--
Don't let it end like this. Tell them I said something.
Johhny wrote:
>
> Which version of Redhat did you install it on?
>
6.2
> Did you have to install all the 'updates' for the Redhat version
> 'before' doing the install of Nusphere?
Nope - worked fine for me.
Another thing I forgot to mention - by default Nusphere sets up a virtual
domain which
82 matches
Mail list logo