On Mon, 22 Apr 2002, Gregor Jaksa wrote:
> if (!eregi("^[[:alpha:]]$", $HTTP_POST_VARS["vpis_ime"]))
> echo "wrong char";
>
> why does this always return "wrong char" no matter what value is in vpis_ime
> ... i tried "blah", "242234" "bla242h" .. every single time i get "wrong
> char". im using
I'd recommend this script with a few changes.
);
for($i=0; $i);
}
?>
Matthew Walker
Senior Software Engineer
ePliant Marketing
-Original Message-
From: CDitty [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 21, 2002 8:47 PM
To: Liam MacKenzie; PHP
Subject: Re: [PHP] Mass Mail {?!}
> { header("Location:
http://www.XXX.edu/index.php?variable=$variable&second_variable=$second_vari
able");
> exit;}
You'll get to transfer about 255 characters using this method.
hugh
- Original Message -
From: "Adrian Ciutureanu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday
{ header("Location: http://www.XXX.edu/index.php?variable=$variable";);
exit;}
"Joe" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am using header function to redirect browser.
>
> { header("Location: http://www.XXX.edu/index.php";);
> exit;}
>
> Alth
On Monday 22 April 2002 13:02, zhaoxd wrote:
> recompile php from scratch.
I should've suggest that earlier. When I had to recompile PHP with support
for gd, ttf, png etc I had the same problem which was only solved by doing a
clean installation. Now whenever I recompile, I do it from scratch.
recompile php from scratch.
: P
zhaoxd
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 22, 2002 12:51 PM
Subject: Re: [PHP] some problems about gd in php
> On Monday 22 April 2002 10:54, zhaoxd
On Monday 22 April 2002 10:46, Joe wrote:
> I am using header function to redirect browser.
>
> { header("Location: http://www.XXX.edu/index.php";);
> exit;}
>
> Although it can redirect the browser but variable had not pass to next
> page.
>
> So can anyone teach me how to pass variable and re
On Monday 22 April 2002 10:54, zhaoxd wrote:
> Thank you all,I have solved the problem.
What fixed the problem then?
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
On Monday 22 April 2002 08:07, Maxim Maletsky wrote:
> I think standardization within the company is what important.
>
> I prefer tabs because when I have to delete a part of the line, I just
> hit back button once - not four times.
I prefer an editor which allows me to tab using spaces and to de
Greetings. As thanks to all the great folks within the PHP community, I've
setup a free web based forum (no annoying advertising pop ups) based on what
else, a php web based forum package. I hope you find it useful. Our way
of saying thanks for all the great help we've had from here. It's one
How about something like this.
This should be all you need. I used something similar to crash my work's
email system by accident. :) Whoops.
CDitty
At 12:40 PM 4/22/2002 +1000, Liam MacKenzie wrote:
>Hey all,
>I was just wondering if someone's written a script that will let me send
>
Thank you all,I have solved the problem.
:)
zhaoxd
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 19, 2002 7:08 PM
Subject: Re: [PHP] some problems about gd in php
> On Friday 19 April 2002 18:57, zhaoxd wrot
I am using header function to redirect browser.
{ header("Location: http://www.XXX.edu/index.php";);
exit;}
Although it can redirect the browser but variable had not pass to next page.
So can anyone teach me how to pass variable and redirect browser at same
time?
Thx !
Joe
--
PHP Gener
Hey all,
I was just wondering if someone's written a script that will let me send lots of
emails to an address, but with a small pause inbetween emails.
And no I'm not using this for spam, I need to test a SMTP server that I'm developing.
Thanks for your help!
(re-post into php.general)
I think this is an Apache question more than PHP, but I'll give it a
whirl.
Aside from the new apache_setenv in 4.2RC3+ (and I haven't tried), is
there a way to set $REMOTE_USER from PHP?
Let me explain:
I have an external (ie, custom) authentication process (hate ba
Well, you should first ask yourself if the SRC value is correct - and
apparently it isn't, if that's indeed it. You should make sure you get
$server_path parsed by PHP. OTOH, why $server_path? HTML uses "/" as the
"document root", you don't need that. IOW, you should remove
$server_path altoge
Hey guys,
i'm trying to write a script that gets a path for a pic from mysql and then
shows the picture.
so i added the data in teh database like so $server_path/pics/pic001.jpg and
then when i get the final oputput the HTML says:
and it won't show the picture, is this
because i'm using Mozil
Hey PHP General List,
Im using PHPTriad as webserver. And i am having some problems. It
goes ok but sometimes after mutch requests. server freezes nobody
can access it until i restart apache. What could be wrong? Well i
have cam page that refreshes every 5 seconds it shows my cam. Maybe
Try:
if (!eregi('^[a-z_\-]{0,}$', $_POST['vpis_ime']))
echo "wrong char";
That'll sort it for everything except [ and ], which I can't find any way of
checking for :-( Anyone else have any ideas?
HTH anyway.
Danny.
- Original Message -
From: "Gregor Jaksa" <[EMAIL PROTECTED]>
To: <[
I think standardization within the company is what important.
I prefer tabs because when I have to delete a part of the line, I just
hit back button once - not four times.
But anyhow, programming style is the personal preference for every
programmer. There recommendations and team-wise standard
It is in a way doable,
What about some game where when, being limited by timer, you type words
on the keyboard and get some questions to answer. The software would
have to "understand" the meaning and try to give you tougher but
relative question each time? Maybe using some RDBMS for that in
co
if (!eregi("^[[:alpha:]]$", $HTTP_POST_VARS["vpis_ime"]))
echo "wrong char";
why does this always return "wrong char" no matter what value is in vpis_ime
... i tried "blah", "242234" "bla242h" .. every single time i get "wrong
char". im using PHP 4.1.2
basicly is what i want is to check string
> From: Martin Towell [mailto:[EMAIL PROTECTED]]
> So what I'm basically saying is - choose a style that suits you, and be
> _consistant_ with it - oh, and make sure you indent your code, there's
> nothing worse than trying to read code that's not indented, or
> indented all
> over the place!
(Just got back from the weekend)
Just my 2c worth
IMHO, as long as the code is indented "properly", it doesn't matter where
the braces are, just be consistant. Personally, I prefer to put the opening
brace on a new line, but I can just as easily read other people's code when
the opening brace is
I prefer the following:
function doThing()
{
strFoo = 'bar';
}
nice and tidy.
at the end of the day, as long as code is commented, consistant in layout
style, and works... that's enough. aint it?
.b
> -Original Message-
> From: Frank [mailto:[EMAIL PROTECTED]]
> Sent: 21 Apr
The problem with PHP is that it would be a limited Mailing List.
Imagine having a database of 100.000 subscribers (as my previous company
had 600.000). Can you handle it with PHP? We used Ezmlm. Over night, on
different server that seats away from our main bandwidth hub, with
limited bandwidth
Firstly, since you can take in already written code, if you have a lot of
pre-written generic code, that would be good.
> We're really interested in your opinions - is this feasible or
> are we just plain mad? :)
You've probably both - aren't all programmer mad?
-Original Message-
Fro
php-general Digest 21 Apr 2002 22:46:30 - Issue 1300
Topics (messages 93876 through 93916):
Variable substitution
93876 by: Greg Hulands
93877 by: Jason Wong
Re: Better standards in PHP-coding
93878 by: Tom Rogers
Re: Session Tutorial
93879 by: R. Visser
R
I am trying to validate my input with ereg but I get the error "Warning:
REG_BADBR" when I try over 255 characters. Is there anyway around this?
Works
=
if(eregi('^[A-Za-z]{1,255}$', "test sentence"))
echo "valid input";
Doesn't Work
if(eregi('^[A-Za-z]{1,256}$', "test senten
On Sun, 21 Apr 2002, Randum Ian wrote:
> I am trying to find a Mailing List Manager on the net that is written in
> PHP that access a database of emails, and other information, in order to
> manage and maintain a list of subscribers.
I might instead suggest focusing your efforts on making a reall
Okay well I answered my own dumb question on this one the server on
which I was running these on did not have postgresql support built in
but now I'm running into another problem. When I try to disconnect from
the server using pg_close in a method(function) I can't seem to find out
which link
I have a simple count file named count_db that contains ONLY the following:
{
'total' => 3954
}
I need to open file, find numbers in the file, add $newnumbers to existing
numbers. Then write these new numbers over the original numbers and close
the file.
Also while I'm doing this a coun
In brief, and in no way finished (no error trapping, commenting, etc)...
\n";
echo " \n";
echo "CatNumber\n";
echo "Title\n";
echo " \n";
while ($myrow = mysql_fetch_row($result))
{
echo "\n";
echo " $myr
Hey PHP General List,
Amm... can anybody point me to some good tutorial that talks about
SELECT from detabase? what i need is ... like i have table with lots
of rows and i need to output them all to the page... it goes
like most of news sections in the page... thanks for help.
(i ne
yes you can put as many classes as you want inside a file doesn't matter.
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Gerard Samuel)
wrote:
> Maybe a simple question.
> But can one file contain 2 or more classes??
> Thanks
>
--
PHP General Mailing List (http://www.php.net/)
To unsubs
Well its going to execute from the class in which you created the object
thats how OOP works.
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Bob) wrote:
> the manual says:the function A will be called.
> in fact, the function B is called.
> why?
> my config : win98/pws2/php411(CGI)
>
>
I have recently been trying to create a class called Database with
methods inside it to ease my coding with web applications. I've noticed
though when I create an object from the class like
$x = new Database();
Then try to call the connectDB() method (function we call it in PHP)
like so
$x->co
At 8:38 PM +0100 4/21/02, Randum Ian wrote:
>Hi there,
>
>I am trying to find a Mailing List Manager on the net that is written in PHP
>that access a database of emails, and other information, in order to manage
>and maintain a list of subscribers.
>
Not to discourage your efforts, but there are
Just about all of them can have/do have simple HTML interfaces that can send
data to them. I built one for ezmlm in about 20 minutes ... and then found a
number of them already available.
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>
> On Sun, 21 Apr 2002 20
On Sun, 21 Apr 2002 20:52:17 +0100, you wrote:
>Is that a nice way of saying that I am wasting my time in doing such a
>project? I just get frustrated at not having a Mailing List Manager that I
>can use to manage large lists of users.
>
>Is it more bother than it is worth?
Probably is.
What wo
Is that a nice way of saying that I am wasting my time in doing such a
project? I just get frustrated at not having a Mailing List Manager that I
can use to manage large lists of users.
Is it more bother than it is worth?
- Original Message -
From: "Mark Charette" <[EMAIL PROTECTED]>
To:
> From: Randum Ian [mailto:[EMAIL PROTECTED]]
>
> Control Panel
> -Add User
> -Delete User
> -Validate Email
> -Send Mail (HTML/Text)
> -Archive Mail
>
> HTML Generator
> -Subscription Box
> -Unsubscribe Box
> -Statistics
Let's see. Double opt-in with cryptographic/time security, automatic boun
Hi there,
I am trying to find a Mailing List Manager on the net that is written in PHP
that access a database of emails, and other information, in order to manage
and maintain a list of subscribers.
I have now decided to write my own, both to fill a possible niche in the PHP
code world, and also
if($abc & 2) echo "2 Bloco\n";
if($abc & 4) echo "4 Sessao\n";
if($abc & 8) echo "8 Sistema\n";
-Rasmus
On Sun, 21 Apr 2002, albertonews wrote:
> I want this:
>
> 2 Bloco
> 4 Sessão
> 8 Sistema
>
> only this three
>
> but I don't want nothing like this:
> If ($abc == 10) {
> }
>
> I want someth
Hmm... Okay, I used this script I found on hotscripts - it copies the entire
file to the specified directory:
echo "Trying to upload to: "
. $upload_path . $filename . "\n";
if ( file_exists($upload_path.$filename) ) {
echo ""
. $message["fileexists"].""
On Sun, 21 Apr 2002, Raymond Lilleodegard wrote:
> I am trying to interact with a simple exe program. I manage to get the
> program started, but I need to send some commands to it as well. My script
> looks like this:
>
>
> $var = exec('fax.exe');
>
> $var = shell_exec('cmd S');
>
> $var = sh
if ($abc & 2) print 'Bloco';
if ($abc & 4) print 'Sessão';
if ($abc & 8) print 'Sistema';
Or...
// take an integer and turn it into an indexed array. For each bit
// b that is set, subscript b of the array will be set to 1. For
// instance, bitsplit(5) would return an array with su
On Monday 22 April 2002 01:51, Jason Soza wrote:
> I haven't been able to identify what process actually truncates the file.
This should be the easiest to nail down. Add a bit of code so that when the
file gets uploaded, it gets copied somewhere, then you can manually check its
size. Obviously,
Hi all!
I am trying to interact with a simple exe program. I manage to get the
program started, but I need to send some commands to it as well. My script
looks like this:
And do I need to run the exec() function everytime I would like the program
to do some work for me? Is there a way to acces
I want this:
2 Bloco
4 Sessão
8 Sistema
only this three
but I don't want nothing like this:
If ($abc == 10) {
}
I want something that really explode the number
21/04/2002 14:30:37, Miguel Cruz <[EMAIL PROTECTED]> wrote:
>On Sun, 21 Apr 2002, albertonews wrote:
>> I don't know how to say
I haven't been able to identify what process actually truncates the file.
All I know is that it's not my mailserver. I don't believe it's in the
coding either, as both Perl and PHP do this, and both work great otherwise.
Anyhow:
This reads the file from the form:
function get_file($filena
On Sun, 21 Apr 2002, albertonews wrote:
> I don't know how to say this in english, so try to discover:
>
> 2 = Married
> 4 = Single
> 8 = With Children
> 16 = Without Children
> 32 = Man
> 64 = Woman
>
> then we add the values we want
> 74 = Woman Married With Children
Look up the operators & a
I don't know how to say this in english, so try to discover:
2 = Married
4 = Single
8 = With Children
16 = Without Children
32 = Man
64 = Woman
then we add the values we want
74 = Woman Married With Children
how to use this flag system in PHP? like, configuring:
2 = Block
4 = Menu
8 = System
Hi,
Do you have any good sites which list (and review) php applications?
I already know http://www.hotscripts.com/PHP/Scripts_and_Programs/ and
http://php.resourceindex.com (they update the content two moths late!).
Thanks,
Pekka
http://photography-on-the.net/ee/
--
PHP General Mailing Lis
How to force the user to download a file instead of opening it up in an
controlled environment within the browser (i.e. MS Word/Adobe Acrobat)
http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1627
How to let a user download a picture by clicking on it instead of
needing to right cli
Class for sending mail with MIME attachments in multipart format using
external send mail, mime code and zip
http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=336
Class to send a file as an attachment with the php mail() function.
http://www.weberdev.com/index.php3?GoTo=get_example.p
This can also be achieved by doing
Alias / /home/blah/script.php
no need to use mod_rewrite !!
bvr.
[ rswfire ] wrote:
> Assume I want *.domain.*/*.* to automatically call index.php (without
> the user knowing and without any redirecting at all):
>
> RewriteEngine on
> RewriteBase/
> Re
Hello Rasmus,
Thank you.
Actually I did try the virtual function before and but the perl didn't seem
to produce any output. Now I looked better: I switched of all warnings,
including the request execution failed warning!!!
Greetings Werner
"Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message
[
the manual says:
reference which returned from a function can be passed by reference.
i can not think it is useful .
can you show an example?
thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
virtual()
On Sun, 21 Apr 2002, Werner de Schepper wrote:
> Hello,
>
> I like to include the html-output of a perl script in my php-page. The perl
> script is on the same server as the php file, so I use de passthru(
> [docroot/path/perl-file] ) function to include de html output of the script
>
Hello,
I like to include the html-output of a perl script in my php-page. The perl
script is on the same server as the php file, so I use de passthru(
[docroot/path/perl-file] ) function to include de html output of the script
in my php page.
Basicly yhis works fine, but I don't know how to pass
Thanks everyone for your help.
Umm
Can't you simply use:
output.document.forms[0].submit()
I did Javascript for 3 years but that was a while back now.. But there is
most definitely a submit function for forms so you don't have to use that
queer invisible submit trick..
... Hope that helps ...
:
[EMAIL PROTECTED] wrote:
> I'm very new to php and PostgreSQL. I keep getting the following error
> when I try to create a table:
> Warning: Wrong parameter count for pg_exec() in
> /var/www/html/elkan/createtable.php on line 23
> The table, ghdsl could not be created
> Here is the code I'm us
[EMAIL PROTECTED] wrote:
> Does anyone have any experience with making script output display in a
> frame?? I would like to get this to happen on an e-commerce site I am
> designing and am stuck. I have tried action=myscript.php target=main> with no success. Please help.
>
> Jeff Means
[EMAIL PROTECTED] wrote:
> Recently I have been trying to work with sessions however I must admit that
> I am not sure I completely understand them. Does anyone know of a good
> tutorial that thoroughly explains sessions?
> Thanks in advance
I can write one if you want, send me a mail.
Greet
Hi
I like the following form, not sure how much time gets wasted in parsing
but it's easy > for me < to follow :)
while(something):
if(something else):
yada;
else:
forget it;
endif;
endwhile;
Tom
At 11:51 AM 21/04/2002, Frank wrote:
On Saturday 20 April 2002 17:08, Greg Hulands wrote:
> Hi,
> I am trying to make an e-mail form so that I can generate an e-mail to send
> to all the users of the system. In the message part I want to be able to do
> something like this.
>
> Dear $fName,
> Welcome to .
>
> When it then sends t
Hi,
I am trying to make an e-mail form so that I can generate an e-mail to send
to all the users of the system. In the message part I want to be able to do
something like this.
Dear $fName,
Welcome to .
When it then sends the e-mail, it should substitute $fName with the current
row in the da
php-general Digest 21 Apr 2002 10:45:02 - Issue 1299
Topics (messages 93846 through 93875):
Re: [PHP-DB] Re: [PHP] Re: Cross DB application
93846 by: Manuel Lemos
Re: debugger
93847 by: Evan
Re: Comments Display, with replies
93848 by: Miguel Cruz
93850 by:
Yes thank you Jason..
I could have.. But I was busy..
And _usually_ my posts here are somewhat ignored so I thought better than to
spend _too_ much time on it..
Thanks anyway..
:::
: Julien Bonastre [The-Spectrum.org CEO]
: A.K.A. The_RadiX
: [EMAI
On 20 Apr 02, at 11:48, Peter Janett wrote:
> I need to create a simple app that works like a radio repeater, in that is
> simply passes information it receives through to another script, in both
> directions.
>
> In other words, a remote application located at www.domain.com/app.php
> accepts v
Recently I have been trying to work with sessions however I must admit that
I am not sure I completely understand them. Does anyone know of a good
tutorial that thoroughly explains sessions?
Thanks in advance
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.p
On Sunday 21 April 2002 06:02, Jason Soza wrote:
> They actually vary as to where they become truncated - some are at 633
> bytes, some are at 1kb. The odd thing is that the PHP script I'm using to
> process the form actually pics up the correct filesize, it reports it to me
> under a $filesize va
On Sunday 21 April 2002 11:26, The_RadiX wrote:
> Hard in email to show as the character spacing is not equal like good text
> editors..
Set your mail client to use a fixed width font -- Lucida Console is my
preferred font.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open So
75 matches
Mail list logo