On Friday, March 1, 2002, at 02:28 PM, Jason Wong wrote:
> On Saturday 02 March 2002 02:03, Daniel Grace wrote:
>> As for the median value, there's a relatively easy way to do this in
>> PHP:
>
> I think Erik has gotten his terms mixed. He wants the "most-chosen"
> value,
> which is the "mode
Black background, white text used to work :)
On Fri, 1 Mar 2002, Diana Castillo wrote:
> Is there any way tomake a page that cannot be printed??
>
>
>
>
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Diana Castillo writes:
> Is there any way tomake a page that cannot be printed??
No. If you display data on my machine I can do anything with it,
since it must exist on my machine in some form in order to be
displayed.
--
Torben Wilson <[EMAIL PROTECTED]>
http://www.thebuttlesschaps.com
htt
If you have control over the query string, just name your variable 'state[]'
and then when it is passed through the query string as:
http://www.archipro.com/test.php?state[]=AB&state[]=BC
PHP will see that it is an array and will parse it as such and you can
access the variables as an array.
Ch
Hello,
Thanks for your responses; however, I do not think I have the gd
libraries installed because ImageCreateFromString() was not found. I will
install it.
I have a question: I can display the PNG or GIF image using the
browser. So Why do I need the GD library? Since I stor
This is a simple solution and it should work and you'll probably kick
yourself when you hear it *grin* Use:
Put it all on one line, because the way you have it currently there are
white spaces in the textarea and a newline so it's always going to be FALSE
when testing to see if it's empty.
Ch
Seriously, another option that works in IE would be to use the link tag
in the of the document. Put an alternate document in the tag
so when they print the page you can control the content. Here is the
tag:
-Scott
On Fri, 1 Mar 2002, Diana Castillo wrote:
> Is there any way tomake a page
Hi,
I use NT for development and I like to write snippets of code and
test them on my local box. I can do this in Perl. How can I do that
in PHP without installing a webserver etc. etc. I guess I can install
a version of PHP and just make sure I've got the path in my env.
Thanks,
Peter
http:
Just download the CGI version and call it from the command line. I am
doing a project now based entirely on the command line using PHP as a file
parser on Win 2K. You can add it to your path or just call it:
c:\php\php.exe -q nameOfScript.php
Make sure you write it like a normal PHP script wi
I and my www space provider have fought with a problem. All
files/directories created by PHP are owned by nobody/nobody and we want
them to be created by my own uid/guid. How this would be solved by least
amount of modification in the scripts.
The problem is in that safe mode requires that the s
The easiest way to make this work is to use open_basedir settings instead
of safe_mode. Safe_mode is specifically created to prevent you from doing
what you are trying to do.
-Rasmus
On Fri, 1 Mar 2002, Mika Lindqvist wrote:
> I and my www space provider have fought with a problem. All
> files
Smarty 2.0 is out!
The most notable new things:
*) Smarty has been rewritten with an underlying plugin architecture,
so adding functions, modifiers, compiler functions, prefilters,
postfilters, resources, and insert functions is as easy as dropping
a file into the plugin directory.
*)
Hmm, I'm assuming you're paying someone to host your site? Can't you give
the hosting company a quick call or e-mail re: whether or not they offer
MySQL? They would probably know better than we would. ;)
-Andy
> Thanks for the advice... But now I need to know what all this means:
>
> /home/chi
hi,
no, i'm not paying for my host. its from my isp. they didn't know. i'm not
asking if you know if i have it. i'm asking for help with figuring it out via
telnet. i got it. so thanks for your help anyway.
-sean kennedy
-http://www.gdesigns.vcn.com
--
PHP General Mailing List (http://www.p
if you are on a unix system running with apache, you could modify the
virtual host block and have apache run as your user name and then change the
permissions of the docroot so you are the owner and group.
Jim Lucas
www.bend.com
- Original Message -
From: "Mika Lindqvist" <[EMAIL PROTECTE
if u have the data stored in the DB, just chuck the data out, with the
correct mime-type header..
Andrew
- Original Message -
From: "Narvaez, Teresa" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 8:41 PM
Subject: RE: [PHP] Unable to display
Andrew,
That is exactly what I am trying to do but the only thing I get is a
box with an X on IE 4.0 and Netscape Communicator 4.73. Please see my a
fragement of my php code below. Thanks in advance! -Teresa
--
file1.php
---
We have an immediate position available for an experienced web developer
with the following skills:
Required skills (1.5+ years in each):
- PHP web development in a Linux/Unix environment
- SQL (MySQL preferred)
- HTML/Javascript
Plusses:
- Linux/Unix sysadmin
RE: [PHP] Unable to display images on browserI've never done this in PHP, but one way
of testing if your output is correct is telnet to your webserver and request the php
script yourself. Then request a valid JPG (or whatever), and compare the outputs..
If you have netcat (great tool), you can
Hello,
I've just moved my website to a new server and sendmail is not working
the same. My email messages (sent via mail()) are coming out blank or
with mime attachments. To verify my sanity, I tested this same script on
the old server and it came through fine. The new server seems to like
on
If you use just and .inc file any user with a browser can hit in the
URL: http://www.site.com/connect.inc and see what is inside.
So, de recomendation is:
Use a .php extension: connect.inc.php
William
El jue, 28-02-2002 a las 14:16, Sam Masiello escribió:
>
> What you could do is have a sc
I have been using this code to show the last modified time:
(Note: the following was adapted from http://www.terrabyte.dc.com.au/phpscripts.php3 )
// the server is 13 hours ahead of Eastern Time USA
$hourdiff = "13";
$timeadjust = ($hourdiff * 60 * 60);
$eastern_time = date("d M Y g:ia",getlast
No, that is not a good idea. It is potentially much worse to allow people
to execute include files out of context than to merely let them see them.
The correct way to handle this is to either put your include files outside
the document_root, or add an Apache rule to block any direct access to
.in
Hello, I am writing software which uses MySQL as a
backend. I need to accept Arabic form input, store it
in MySQL, and use it later. I don't believe MySQL
supports Unicode except in BLOB column types, so I
want to convert it to NCR (numeric character html
entities). After looking at iconv() and re
I have a weblog type script I'm building for a friend where there are main
posts then comments - Registered users can post comments, unregistered don't
even have the option. I was thinking of making a page where a user logs on,
then it registers a session with a few variables like $sid, $usern
May be this helps:
http://www.php.net/manual/en/function.ob-start.php
William.
_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: ht
On Friday, March 1, 2002, at 06:11 PM, James Taylor wrote:
> IF a user is logged on, they can post, if not they don't even see the
> option.
> Instead of doing a SQL query everytime they look at the posts, I was
> thinking
> of registering a variable called like $true where if they're logged
You have to check your php.ini and set a valid tmp directory for storing
session data. Look for the session section.
William.
El vie, 01-03-2002 a las 02:52, mm fernandez escribió:
> hi. i get this error message whenever i open my page (except during the
> first time i open it). Can someone
Ok - the scenario:
I have a box that I lease... I have root privs, so I can do almost anything
I want to it. Almost being the key word. Unfortunately, any time I try to
upgrade a base library, I snafu the thing, and the datacenter has to rebuild
the libraries.
Right now, I've got php4.0.4pl1 t
But you could save the page... change the colors and then print it.
William.
El vie, 01-03-2002 a las 15:11, Scott St. John escribió:
> Black background, white text used to work :)
>
>
> On Fri, 1 Mar 2002, Diana Castillo wrote:
>
> > Is there any way tomake a page that cannot be printed??
Have a same problem.
Moved my mime stuff just for testing to other server and
not working at all.
working version www.toolmecindustries.com/submform.php
not workin version at http://streetrave.tartu.ee/toolmec/submform.php
what to do - good question..
Olev.
"Steven Walker" <[EMAIL PROTECTED]
We have some software where there is a form that people can enter a message
in. When submitting the form, it is directed to a function that has global
declarations for the subject and message of the post.
This worked up until yesterday. And it didn't just happen on one site, it
stopped on sever
How do you install this patch?
php-4.0.6-to-4.1.1.patch.gz
Regards,
Joseph A. Bannon
.
The Webmaster CD
http://www.thewebmastercd.com
Join our affiliate program and get paid in 5 days.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
Peter J. Schoenster wrote:
> Using mod_perl I can write a module for any phase that Apache
> goes through while handling a request. Based upon any variables I
> want, I can tell Apache to have my module handle one of those
> phases. So when you request this url for example:
>
> http://www.my
> > Using mod_perl I can write a module for any phase that Apache
> > goes through while handling a request. Based upon any variables I
> > want, I can tell Apache to have my module handle one of those
> > phases. So when you request this url for example:
> >
> > http://www.mydomain.com/joe.html
>
Unlike echo, print can accept only one argument
Unlike echo, print returns a value, which represents whether the print
statement suceeded.
Both are language constructs, so () are optional. Using () with echo limits
you to one argument.
All courtesy PHP 4 Bible.
Quentin Bennett
"Eoghan" <[EMAIL
I'm trying to deal with the recent security advisory... but I cant get
4.1.2 to compile on my system
I'm getting :
gcc -I. -I/home/webmaster/new_build/php-4.1.2/ext/standard -I/home/webmaster
/new_build/php-4.1.2/main -I/home/webmaster/new_build/ph
p-4.1.2 -I/home/webmaster/new_build/apache_1
Hi,
I want to turn some form data in to and XML document, and the HTTP Post that
data to another server. Is that possible from PHP.
As a challenge, I know it is possible in ASP!
Thanks In Advance
Quentin Bennett
mailto:[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To
The way I see it, there are three options for maintaining state in php.
I've already taken the route of keeping a random session id and putting it
into a database to track a user/cart. So the only variable i need to track
is the session id. The three options I know of then are:
1. Putting the s
I just developed a new site and some of the users that I have go to visit the site are
prompted (under IE only) to download a language pack. Not sure why and to top all
of that, the language pack it prompts them to download is blank Meaning the prompt
doesnt say what language pack.
So
On Saturday 02 March 2002 07:05, Timothy J. Luoma wrote:
> I have been using this code to show the last modified time:
>
>
> // the server is 13 hours ahead of Eastern Time USA
> $hourdiff = "13";
> $timeadjust = ($hourdiff * 60 * 60);
> $eastern_time = date("d M Y g:ia",getlastmod() - $timeadjust
Hmm.. Whats the web site address?
-GENESiS DESiGNS
-Sean Kennedy
-http://www.gdesigns.vcn.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thomas Brodkorb wrote:
> Hi folks,
>
> small problem with globals:
>
> I would like to set a variable global called "Language".
>
> This seems to be not a really problem, but it is.
>
> Index.php:
>
>session_start();
> if (!session_is_registered('Language')) {
> session_register('La
Diana Castillo wrote:
> Is there any way tomake a page that cannot be printed??
>
GZIP the page and force the end user to use Netscape. ???
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Mime problem.
I have my web form here www.toolmecindustries.com/submform.php
Now my email recieves all the contens thruogh [EMAIL PROTECTED] (fields
what customer filles out)
but attachment (picture fail) is shown like encrypted
here:
rewfg/wr;tlkmbwsl/kw;relktnh;wlkfdvbs.kdfnghb/asdfmgbn/.slfg
"William Lovaton" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
> May be this helps:
>
> http://www.php.net/manual/en/function.ob-start.php
>
>
Nope, that won't work. I'm not even sending output at this point, just
trying to prevent a header from being sent and I'm not being allow
> Use filemtime().
UGH! There are so many things to learn! I hate asking obvious questions
like this, but I'm still not finding the right search terms. I appreciate
your patience.
FYI the answer to my problem was found at
http://www.php.net/manual/en/function.filemtime.php
[EMAIL PROTECTED]
this is in the ballpark:
http://phpbuilder.com/columns/ying2602.php3?page=1
Andy wrote:
> Hi there,
>
> I did recently read an article about security. Now I absolutly see the need
> of recoding my authentification procedure on a community site.
>
> There are questions I hoped some of you gu
101 - 148 of 148 matches
Mail list logo