On Tuesday 16 April 2002 00:41, Jule Slootbeek wrote:
Hey Guys and Gals,
I'm writing this little script that takes two inputs: $name and
$welcomemssg from a form and puts them in a text file. Now i only want to
extract one of those variables open it with welcome.php, how do i go about
this?
Hi all,
My config is Apache 1.3 with PhP4 loaded as a module.
I have a script which makes a directory. This directory is owned by
nobody.nobody because that is what apache runs as. But, I want this
directory to be owned by a differrent user. So, After making the
directory i use the php
You would need to read in the line and explode the line into an array
using explode(). How you do this depends on how you wrote the variables
to a file. If you separated them using a , you could use
$values = explode(,, $inputstring);
see also: http://www.php.net/manual/en/function.explode.php
On Monday, April 15, 2002, at 02:43 PM, Boaz Yahav wrote:
I have an application that works with two languages. I'm trying to write
a function that will tell me if a string
contains only English or also chars from the other language. It's enough
that there is one char of a different
Hello all,
I am learning php and I am trying to make a very simple script so as to
download a jpg from one site I manage to another that I also manage. It
would be, get a jpg from http://www.first_site.com/image.jpg and put in to
http://www.second_site.com/image.jpg. I have tried this, but
In case anyone is interested
Function IsHebrew($string) {
If(ereg('[?-?]',$string,$regs)) {
EchoHebrew;
}Else{
EchoEnglish;
}
}
Not everyone can see the [?-?]. In any case this can be good for any
language
berber
-Original
Recently I have caught on to XML, and I think it truly is a good idea.
Because XML was *made* to store data I believe an XML flatfile database is
(perhaps) one of the best ways to store data because it can be easily
exchanged. Therefore I would like to embark on the feat of trying to create
On Monday, April 15, 2002, at 01:54 PM, John Weez wrote:
I have a script which makes a directory. This directory is owned by
nobody.nobody because that is what apache runs as. But, I want this
directory to be owned by a differrent user. So, After making the
directory i use the php
No, user nobody does not have access to chown command. This is part of
my problem i suspect.
Erik Price wrote:
Are you saying that when you are logged in as nobody, you can
execute chown otheruser directoryname? If that is so then PHP,
which runs under Apache which runs as nobody,
Good day.
As you've probably surmised, chown needs to be run as the root user, even if
the file or directory in question is owned by the user wanting to make the
change.
Setting up sudo access should work properly. Ensure that the service is
actually running as nobody and not another
On Mon, Apr 15, 2002 at 10:54:51AM -0700, John Weez wrote:
:
: I have a script which makes a directory. This directory is owned by
: nobody.nobody because that is what apache runs as. But, I want this
: directory to be owned by a differrent user. So, After making the
: directory i use the php
Here's my code, teh $welcomemssg is one of the two variable store in
index.php the other one is $name
?php
$File = welcome/index.php;
$Open = fopen ($File, r);
On Monday, April 15, 2002, at 02:05 PM, John Weez wrote:
No, user nobody does not have access to chown command. This is part of
my problem i suspect.
So then your chown command's permissions do not allow everyone to
execute it? If this is not the standard setup, so I would speak to your
On Monday, April 15, 2002, at 02:22 PM, Darren Gamble wrote:
Setting up sudo access should work properly. Ensure that the service is
actually running as nobody and not another unprivileged user.
However, it should be mentioned that this is a very, very insecure
method!
The chown
I need to calculate the date to see if it's a holiday, i.e. is today
presidents day, which happens to be the third monday of february. Can
someone point me to some code that can do that?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If you are using mysql, you can perform the calculations in mysql during the
SELECT, such as:
SELECT date_field - INTERVAL 7 HOUR FROM my_table;
- Original Message -
On Monday, April 15, 2002, at 09:50 AM, Torkil Johnsen wrote:
What date/time was it 7 hours ago?
I'm just trying to
store $name on one line and $welcomemssg on a separate line. Then just
remember that all odd numbered liens are names and even numbered lines are
messages.
=C=
*
* Cal Evans
* Techno-Mage
* http://www.calevans.com
*
- Original Message -
From: Jule Slootbeek [EMAIL PROTECTED]
To: [EMAIL
// second selection for main image on main page
$dir_name = /path/to/images/directory/;
$dir = opendir($dir_name);
$file_lost .= pFORM METHOD=\post\ ACTION=\done.php3\ NAME=\ad01\
SELECT NAME=\images\;
while ($file_names = readdir($dir)) {
if ($file_names != . $file_names !=..
i was wondering if it would be possible to make a web spider in PHP.
they work by download a website, then following all the links on the
website to other pages, and then following the links on that page...
is this possible in PHP without a whole lot of work? i just want to keep
a counter of
jas wrote:
// second selection for main image on main page
$dir_name = /path/to/images/directory/;
$dir = opendir($dir_name);
$file_lost .= pFORM METHOD=\post\ ACTION=\done.php3\ NAME=\ad01\
SELECT NAME=\images\;
while ($file_names = readdir($dir)) {
if ($file_names != . $file_names
On Monday, April 15, 2002, at 03:17 PM, Tom Beidler wrote:
I need to calculate the date to see if it's a holiday, i.e. is today
presidents day
No, today is Patriot's Day!
Not sure if it's celebrated outside of Massachusetts
Erik
Erik Price
Web Developer Temp
Media Lab,
?
$month = date(m);
$day = date(d);
if ($month == 10 $day == 31) {
print It's Halloween!;
}
?
you could do something similar to that.
tyler
- Original Message -
From: Tom Beidler [EMAIL PROTECTED]
To: php list [EMAIL PROTECTED]
Sent: Monday, April 15, 2002 2:17 PM
Subject: [PHP]
That's fine for fixed dates, and I have that figured out, but presidents
day, memorial day, labor day and thanksgiving fall on different days each
year. Presidents day is the third monday of February. How do I calculate
that?
From: Tyler Longren [EMAIL PROTECTED]
Organization: Captain Jack
Hello All,
I looking to to generate different meta tags from mysql for each page on a
dynamic
site which has about 400 pages from mysql database .
Searched around but didnt find anything which will give me some hint whats
the best way doing it
Any help appreciated :)
Thanks,
Andras
He wants the third sunday in february which can't be handled by
your code :) since the third sunday could fall on any number of
days. The following isn't very optimal but will work (not syntax
checked either).
$i = 1;
while( $i++ = 7 )
{
//
// First we find the first Sunday in February.
Mysql table with a meta column and a url column:
$url = $PHP_SELF;
$sql = SELECT meta FROM table WHERE url = '$url';
Just select from the database a meta column depending on the url people
are.
--
Julio Nobrega.
Um dia eu chego lá:
http://sourceforge.net/projects/toca
Ajudei? Salvei? Que
On Mon, 15 Apr 2002, Ryan Govostes wrote:
i was wondering if it would be possible to make a web spider in PHP.
they work by download a website, then following all the links on the
website to other pages, and then following the links on that page...
is this possible in PHP without a whole lot of
Hi All
I was trying to write a PHP session and was confused whether to use
session_register or $_SESSION.
Anyone know when to use either of these? (Or an interpretation of the
following line)?
Use of $_SESSION (or $HTTP_SESSION_VARS with PHP 4.0.6 or less) is
recommended for security and code
You most certainly can use PHP to do this.
And if i'm not wrong I think there are allready scripts which do this (which
wouldn't be too hard to hack up for yourself)
Check out hotscripts.com
Andrew
- Original Message -
From: Ryan Govostes [EMAIL PROTECTED]
To: PHP People [EMAIL
Ryan,
You might want to look into this as a basis for some of your code,
http://agent-source.com/sitemapper/
Contains a good ammount of spidering code that's broken down into small
functions. ( not that I understand half of it ; )
Good luck
--
s t e v e b i s s o n n e t t e
[EMAIL
You are getting array because that's what $eventdate is.
Now, WHAT do you REALLY want to insert?
- Original Message -
From: Alex Francis [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 15, 2002 3:13 PM
Subject: [PHP-DB] Arrays
I am trying to insert event dats into a
I need to know if there is one place to get information on creating a credit
card validation script based on the users selected payment type (i.e.
mastercard, visa, american express, etc.) If anyone knows of a good
tutorial or sample of such a function please point me that way.
thanks in
You could port Date::Calc from perl... or just call a perl script to do
the calculation. Probably the easiest way to figure out Easter (for the
extreme example) that I can think of.
-Steve
On Monday, April 15, 2002, at 03:05 PM, Tom Beidler wrote:
That's fine for fixed dates, and I have
Hi, I am just not seeing what is wrong with my code.
Can anyone tell me if there is anything wrong with the following
function?
function set_material_id($material_id)
{
if (!preg_match('/^\d{1,3}$/', $material_id)) {
return false;
Check out the code section at Zend.com.. There is at least one CCVal
function there.. I think two.. I do believe hotscripts.com has some too in
their PHP section..
Later,
Bob Weaver
Jas [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I need to know if there is
http://woodenpickle.com:8080/shop/admin.php
login: shopadmin
pass: demo
Later,
Bob
Robert Collins [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Can anyone recommend a good commercial shopping cart written in php?
Robert W. Collins II
Webmaster
New
Erik Price wrote:
Hi, I am just not seeing what is wrong with my code.
Can anyone tell me if there is anything wrong with the following
function?
function set_material_id($material_id)
{
if (!preg_match('/^\d{1,3}$/', $material_id)) {
Oh, I love these 32 second answers ;-)
Just type it in google and zapp
http://php.resourceindex.com/Functions_and_Classes/Date_and_Time/
1st page, second answer !
G Oliver
At 15.04.2002 13:05, you wrote:
That's fine for fixed dates, and I have that figured out, but presidents
day, memorial
On Monday, April 15, 2002, at 04:58 PM, Robert Cummings wrote:
Well you don't return true anywhere... default return is false which is
what happens if the else statement is reached.
EUREKA! Thanks so much Rob! I too busy wondering how the preg_match
was failing to notice that I didn't
Carlos,
I may misunderstand you but surely the easiest way to copy a file from
one computer to another is by ftp? Log into a shell on computer 1, ftp
to computer 2 and transfer whatever files you want. This may be by a
simple script and does not need php (did I say that?).
On the other hand,
Hubert,
It may just be the way you typed it in the email but your
products.php?tosend = 1 has spaces in it. This will truncate the
tosend parameter and give it a null value.
HTH
Regards
Chris
Janet Valade wrote:
On the browser i have a page in which i select the first button which has
a
On Tue, Apr 16, 2002 at 02:41:53AM -0600, jas wrote:
I need to know if there is one place to get information on creating a credit
card validation script based on the users selected payment type (i.e.
mastercard, visa, american express, etc.)
I've got the best one out there. Automatically
Greg,
i was wondering if it would be possible to make a web spider in PHP.
they work by download a website, then following all the links on the
website to other pages, and then following the links on that page...
is this possible in PHP without a whole lot of work? i just want to
keep
a
I need to calculate the date to see if it's a holiday, i.e. is today
presidents day
No, today is Patriot's Day!
Not sure if it's celebrated outside of Massachusetts
It's celebrated any day there's a SCUD inbound!
=dn
--
PHP General Mailing List (http://www.php.net/)
To
Well, constructed from the help i received from
some of you, this is the end result of my attempts to
be able to send email to everyone listed in a file
and including their names in the email. i would
appreciate any feedback or suggestions for
simplification, etc.
I must be doing something wrong, for that solution did not work.
Robert Cummings [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
jas wrote:
// second selection for main image on main page
$dir_name = /path/to/images/directory/;
$dir = opendir($dir_name);
At 3:02 AM -0700 15/4/02, Alexander Javier wrote:
Hello to all. Please help me in this problem of mine. I have an html
template with a frame. I'm using phplib's templating functions to
replace values in the templates. How do i also replace values both in
the main template (frleft.htm) and in
you get unlimited traffic.
here it is very cheep.
so they can offer a great service.
www.wthosting.cjb.net
and they also don't pay for a domain.
so that means even more cheeper prices.
LOL
they crazy.
I know they guy, his way of thinking is free is better for the client and
for them
client
At 4:06 AM -0700 15/4/02, Thomas Edison Jr. wrote:
I have a table with a column vProName, which
let's say, contains a record Basket Ball Game.
Now what i want is that if someone searches for Game
or Ball, even then this record should appear.
Either select * from ThatTable where vProName like
I'm trying to build some sort of AI chat bot in php (yes, I know I'm crazy).
To do this, I need some way to check for the presence of any value from an
array. Example:
$pharray = array(php,the best language ever);
if($question == What is .anything_in_array_function($phparray).?){
print Php is a
At 5:32 PM +0200 15/4/02, Sear, Mick wrote:
Not sure if anyone else uses GD much, but I've been experimenting with it
and PHP recently and I've found I get large file sizes and very 'aliased'
graphics.
gd is the correct tool for your job. But there are some caveats.
You will need to be using
Vins wrote:
you get unlimited traffic.
here it is very cheep.
so they can offer a great service.
www.wthosting.cjb.net
and they also don't pay for a domain.
so that means even more cheeper prices.
LOL
they crazy.
I know they guy, his way of thinking is free is better for the
Hi, I am using the example code at php.net to FTP a file to a remote server.
I am trying to overwrite an existing file, but want to maintain the
owner/group of the file being overwritten but it keeps giving the
overwritten file the owner/group name of the userid that I am loggin in via
FTP with.
Thanks Kevin, someone else suggested using global variable too. I didn't
want to do that but I think this is the only way around it.
So if I use a global variable called $row_number and $row_number++ as I
print out each row then if two people are viewing the page, there would be
two $row_number
Hello,
Arcadius A. wrote:
Hello !
I'm planning to write a database application for MySQL, and then port it to
PostrgeSQL.
Is there any library or class that could help me to write/maintain just one
source code for both MySQL and PostgreSQL ?
I think your best (if not the only) option in
Hello,
Arcadius A. wrote:
Hello !
I'm planning to write a database application for MySQL, and then port it to
PostrgeSQL.
Is there any library or class that could help me to write/maintain just one
source code for both MySQL and PostgreSQL ?
I think your best (if not the only) option in
[EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Dear all,
I installed mysql for windows and had to copy some databases (including
mysql standard databases), that I have to use for my php-project. I also
installed the Apache server 1.3 ...
My problem is, that
Being completely new to PHP I went to this site for help on how to print
reports. Thanks for all the ideas.
I guess being a newbe, I was wondering if this is kind of the standard
way most of you do all your reporting.
Based on all the help I got, I did the following:
1. Wrote a report writer
Hello,
Arcadius A. wrote:
Hello !
I'm planning to write a database application for MySQL, and then port it
to
PostrgeSQL.
Is there any library or class that could help me to write/maintain just
one
source code for both MySQL and PostgreSQL ?
I think your best (if not the only) option in
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Leif K-Brooks) wrote:
I need some way to check for the presence of any value from an
array.
http://php.net/in-array
http://php.net/array-search
--
CC
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hello,
James Cox wrote:
I'm planning to write a database application for MySQL, and then port it
to
PostrgeSQL.
Is there any library or class that could help me to write/maintain just
one
source code for both MySQL and PostgreSQL ?
I think your best (if not the only) option in PHP
Hi AJ, very interesting way of displaying a folder tree. Never thought of
it that way. The problem I see is that you are limited to the depth of the
tree because you can't just keep adding a new folder number to the end of
the path. And the total number of folders is limited by the number of
I have created a website that works somewhat uniquely. Every page is
created using the root index.php file. I have an .htaccess document that
redirects all 404 errors to this index.php file.
So if someone access www.mydomain.com/mypage.html the index.php file is
called and knows what to
Is a nicer way to remove any number 1-0 from a string???
Currently:
$metakeywords=str_replace(1,'',strtolower($metakeywords));
$metakeywords=str_replace(2,'',strtolower($metakeywords));
$metakeywords=str_replace(3,'',strtolower($metakeywords));
Hi. Does anyone know how to POST data to another script as if a form had
done so? I want to POST some data to a script on another site and retrieve
the data that is returned so i can poick it apart, i did it in ASP using a
3rd party component... just wondering if the same could be done in PHP.
Can I get some feedback on the conventional wisdom as to the best solution
for high volume registration and authentication of users accessing a secure
site? I have worked before with database/session based methods as well as
htaccess. Which is preferred? Are there alternatives?
Thanks for the
Hi
This is one way:
echo date(d/m/Y,strtotime(third sunday,strtotime(2/1/2002)));
Tom
At 05:17 AM 16/04/2002, Tom Beidler wrote:
I need to calculate the date to see if it's a holiday, i.e. is today
presidents day, which happens to be the third monday of february. Can
someone point me to some
Hi
Perhaps that should have been:
echo date(d/m/Y,strtotime(third monday,strtotime(2/1/2002)));
:-)
Tom
At 05:17 AM 16/04/2002, Tom Beidler wrote:
I need to calculate the date to see if it's a holiday, i.e. is today
presidents day, which happens to be the third monday of february. Can
someone
Andras Kende [EMAIL PROTECTED] wrote:
Is a nicer way to remove any number 1-0 from a string???
Currently:
$metakeywords=str_replace(1,'',strtolower($metakeywords));
$metakeywords=str_replace(2,'',strtolower($metakeywords));
$metakeywords=str_replace(3,'',strtolower($metakeywords));
cacti
http://www.raxnet.net/products/cacti/
Allen Lee
http://www.modwest.com
Modwest PHP Hosting
On Mon, 15 Apr 2002, Jason Wong wrote:
On Monday 15 April 2002 07:14, Christian Calloway wrote:
hey ppl,
I need to create some fairly complex graphs dynamically, and I need to be
able
Hello,
Brad Hubbard wrote:
Can I get some feedback on the conventional wisdom as to the best solution
for high volume registration and authentication of users accessing a secure
site? I have worked before with database/session based methods as well as
htaccess. Which is preferred? Are
On Tue, 16 Apr 2002 14:01, Manuel Lemos did align ASCII characters thusly:
Probably the fastest way to keep session profile information is by
serializing the data array into a string that will be encrypted and then
stored in cookie. The security weakness of this method is that if the
secret
Anyone else getting the weird messages from naver.com in response to posts to
the list?
Looks like a Korean out of office reply.
Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hey... new to the list, but didn't have time to lurk and watch the traffic,
kind of in a bind here. I apologize in advance if I do something wrong...
Using this code:
?php
$link = mysql_connect()
or die(Could not connect);
Let's say I a variable called $var1 and it's values is one
...I want to access them by doing something like this...
$i = 1;
if (var.$i == one) echo Hello!;
...I want the combination of var and $i to equal $var1
How do I do this??
The code I just wrote will not print out Hello!
THANKS!!!
Hello,
Brad Hubbard wrote:
On Tue, 16 Apr 2002 14:01, Manuel Lemos did align ASCII characters thusly:
Probably the fastest way to keep session profile information is by
serializing the data array into a string that will be encrypted and then
stored in cookie. The security weakness of
Hi all,
Currently i've got a config file for each website, and I split it into
essentially two config files, based on the server name, so that I can have 1
file for both my local server and the live server.
something like:
?
if($local)
{
$cfgAdminEmail = [EMAIL PROTECTED];
At 2:11 PM +1000 16/4/02, Brad Hubbard wrote:
On Tue, 16 Apr 2002 14:01, Manuel Lemos did align ASCII characters thusly:
Probably the fastest way to keep session profile information is by
serializing the data array into a string that will be encrypted and then
stored in cookie. The security
I have a directory on my server that contains log files for all my virtual hosts.
I'd like to create a (web) login page where each owner of those vhosts can use to gain
access to their individual log files. Ideally by using the same login they have on
the system (their physical log in).
On Tue, 16 Apr 2002 14:59, Richard Archer did align ASCII characters thusly:
Aah, but does it scale?
By most aqccounts. no :-(
And do you want to run SSL for all page views?
Yes.
Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
In article [EMAIL PROTECTED], [EMAIL PROTECTED]
says...
Hey... new to the list, but didn't have time to lurk and watch the traffic,
kind of in a bind here. I apologize in advance if I do something wrong...
Using this code:
?php
$link = mysql_connect()
Phil Schwarzmann [EMAIL PROTECTED] wrote:
Let's say I a variable called $var1 and it's values is one
...I want to access them by doing something like this...
$i = 1;
if (var.$i == one) echo Hello!;
...I want the combination of var and $i to equal $var1
How do I do this??
The code
Hi Tyler,
Thank you,
I checked the permissions and the ownership, all ok, but by inserting
the absolute path
in the page, the code is running and get the expected output from the
script. I realized that
I made the same mistake in the php.ini file, I updated the include_path
statement to
Justin French [EMAIL PROTECTED] has the same first name as me :)
and wrote:
Currently i've got a config file for each website, and I split it into
essentially two config files, based on the server name, so that I can have
1
file for both my local server and the live server.
something like:
101 - 184 of 184 matches
Mail list logo