Hi all,
Thanks a lot.
Yours Hans
--
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 PROTECTED]
You can do something like
Any variables in the master script's scope are in the scope of the
included files as well.
If you want to actually REDIRECT the user to another page, you can
use the header function to send a Location: header. See
http://www.php.net/manual/en/control-struct
On Friday 21 September 2001 00:31, Raphael Pirker wrote:
> this link refers to a function READING zip files, not actually creating
> one...
Sorry, forgot to send the link to the zip creation class,
http://www.zend.com/codex.php?id=535&single=1
Have fun
--
Meir Kriheli
--
PHP General Mailin
On Friday 21 September 2001 00:31, Raphael Pirker wrote:
> this link refers to a function READING zip files, not actually creating
> one...
There's an article on creating zip files with pure PHP (other libraries not
needed) on zend's site.
Actually this is the 1st article in a series of them.
On Fri, 21 Sep 2001 16:16, hvm wrote:
> Hi all.
>
> Is there a command to execute (run) from HTML or a php4 script a other
> php script without a mouse click ().
>
> I have a lot of php scripts and need them to execute from a master php
> script.
>
> any help?
>
> Thanks all,
>
> Yours Hans.
inc
Hi all.
Is there a command to execute (run) from HTML or a php4 script a other php script
without a mouse click ().
I have a lot of php scripts and need them to execute from a master php script.
any help?
Thanks all,
Yours Hans.
Hey all,
Two related questions. If I remember correctly this has been beaten to death
before on the list, but here I am having issues with it, and ending up at
somewhat of a loss still.
I've built a media management system for a video company. It is built to
handle large data assets, such as ex
Check out :
http://www.weberdev.com/index.php3?GoTo=phenominet/prices.htm
This is your one stop shop for hosting. WeberDev.com is hosted there
and I can tell you that their service is amazing. They are fast,
reliable
and more than anything, very professional (specially in PHP / MySQL).
Sincere
Try Hostex.com, they seem to be a pretty good host from what I hear and my
experience with them so far.
Rick
> Hi,
> I am searching companies who will host my site. Presently I am looking out
> for php, mysql and ssl support. So does anyone know a good company ?
> Vishal
>
> ___
Hi,
I am searching companies who will host my site. Presently I am looking out
for php, mysql and ssl support. So does anyone know a good company ?
Vishal
_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.as
Sorry,
In this case, use explode() instead of split() ...
Andras,
$aRay = split('.', 'mypicture.jpg');
$aRay[0] will be the filename
$aRay[1] will be the extension
-Jason Garber
www.deltacron.com
At 03:14 PM 9/20/2001 -0700, Andras Kende wrote:
>Hi,
>
>I trying to cut the last 4 char of a s
On Fri, 21 Sep 2001 11:15, Neil Silvester wrote:
> Another PHP problem has kept me up all night, scouring through my
> database books and trying everything I could think of. I am still new
> to the MySQL and PHP field, but never the lass I will not give up.
> $cat is a variable that is passed to t
hi andras-
consider the strstr() and strrstr() functions :
$str = 'abcabc';
print strpos ($str,'b'); // 1
print strrpos($str,'b'); // 4
these positions can be used with other functions, such as substr() :
$str = 'abc.png';
print strpos($str,'.');// 3
print
On Fri, 21 Sep 2001 00:57, Cory K. Walker wrote:
> The PHP manual does not document the operators
>
> ()
> ->
>
> What is the relative precedence and associativity of each? I've looked
> in the archives, and I've found some butter, more complete precedence
> tables, but they appear to be outdated
>When you find yourself writing HUGE functions, it may be better to split it
>into smaller, more clearly defined functions or classes and do it that
way...
I totally agree i tend to split my class functions into user (public) and
private (helper) functions which does tend to keep all the functio
Hi All,
Anyone here know how can estimate performance of a script?
For example, to use template will definitely have much benefit
for both maintenance and development, but it will also cause
more IO cost, so I guess it may have negtive effect on performance.
Anyone here can please say somethi
On Fri, 21 Sep 2001 02:34, Jason Bell wrote:
> Thanks lance and David for the reply. :)
>
> Yes, I suspected as much, *BUT* let me explain what I am trying to do:
>
> I have a script I am writing that uses a MySQL backend. I'm including
> an initial configuration interface via the webbrowser. Dur
Another PHP problem has kept me up all night, scouring through my database
books and trying everything I could think of. I am still new to the MySQL
and PHP field, but never the lass I will not give up.
$cat is a variable that is passed to the query from the previous page. The
SELECT statement
Andras,
$aRay = split('.', 'mypicture.jpg');
$aRay[0] will be the filename
$aRay[1] will be the extension
-Jason Garber
www.deltacron.com
At 03:14 PM 9/20/2001 -0700, Andras Kende wrote:
>Hi,
>
>I trying to cut the last 4 char of a string but sometimes its cut 3 sometime
>4 char
>
>$pic1
One of my largest is a function of a complete session management class that
I wrote - 150 lines. The class is ~ 450 lines.
When you find yourself writing HUGE functions, it may be better to split it
into smaller, more clearly defined functions or classes and do it that way...
-Jason Garber
Le
-Original Message-
From: Jason Bell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 20, 2001 8:32 PM
To: PHP Users
Subject: [PHP] Just for fun:
Here is a question, just for fun:
What is the biggest function (In terms of line count) you have ever
written?
I just finished one tha
Here is a question, just for fun:
What is the biggest function (In terms of line count) you have ever written?
I just finished one that is 100 lines long. That is by far my biggest It's a
script initialization function that sets up database connectivity, creates all tables
necessary for my
Well,
Here is a function that may be helpful. The bad part is that I never
finished it, so it only accepts dates in the MDY format...
http://www.deltacron.com/source/check_date.php
BTW... If you already have a connection to MySQL, you could send simple
queries to it to take advantage of its
Well,
Here is a function that may be helpful. The bad part is that I never
finished it, so it only accepts dates in the MDY format...
http://www.deltacron.com/source/check_date.php
-Jason Garber
www.deltacron.com
At 08:56 PM 9/20/2001 -0700, you wrote:
>ey guys.. how do i check if the pos
Hello, regarding old email from [EMAIL PROTECTED] about mail
attachements
From: py" <[EMAIL PROTECTED]> 21/05/01 08:25
Subject: Re: [PHP] sending attachements with mail
To: "Tolga \"thorr\" Orhon" <[EMAIL PROTECTED]>
CC: <[EMAIL PROTECTED]>
Here is a nice class that handles e-mail attac
Hello,
Below you will see some html code, my question is how can I parse everything
between the tags
and and put the results in an array ?
i know i should use preg_match_all but can't figure it out.
Thanks !
this is the html needed to be parsend:
Motor
Racing's Strangest Races TIMBAL
Do you have enough space in the partition?
Joseph
CollegeSucks.com - See PHP in ACTION!
-Original Message-
(I'm sorry if this is not getting posted in the correct
place, but I'm not sure who/where to turn to...)
I'm attempting to upgrade my SuSE Linux 7.2 (2.4.x) server
to the new ve
OOOH, touched a nerve...
I'm sorry to have blasphemed.
I was just making an observation that the sites he produced were
pretty lame. I was just suggesting that even if he was such a hot-shot
PHP guru, he'd want to have some sort of "niceness" about the sites
he produces.
I am, honestly, just be
NoWayMan wrote:
> If HE is the one who did these lame-ass sites:
>
> http://www.PHPBootCamp.com
> http://www.l-i-e.com
>
> I don't want to learn anything from him, that's for sure
Listen jackass, Richard is a PHP Programmer, not a Web Designer. Next
time you feel like flaming back, do me a
Hi,
I trying to cut the last 4 char of a string but sometimes its cut 3 sometime
4 char
$pic1=$amyrow["picture"];
$pic2 = substr("$pic1", 0, -4);
Actually I have some pictures where I need to cut off the extensions...
amamm.jpg
33.jpg
321.gif
to
amamm
33
321
Is any other way than substr
read: http://www.php.net/manual/en/features.file-upload.php
You either want:
$userfile_type
or
$HTTP_POST_FILES['userfile']['type']
-philip
On Thu, 20 Sep 2001, Ezra Freedman wrote:
> Is there a way to determine the file type of a file uploaded via an TYPE="file"> form?
> I know that geti
On Thu, 20 Sep 2001, Ezra Freedman wrote:
> Is there a way to determine the file type of a file uploaded via an TYPE="file"> form?
> I know that getimagesize() tells you if a file is a GIF, JPG or PNG -- I'm
> interested in determining if a file is a valid PDF or valid Word document.
if you are
Is there a way to determine the file type of a file uploaded via an form?
I know that getimagesize() tells you if a file is a GIF, JPG or PNG -- I'm
interested in determining if a file is a valid PDF or valid Word document.
Thanks for the help.
Ezra
--
PHP General Mailing List (http://www.ph
Is there a way to determine the file type of a file uploaded via an form?
I know that getimagesize() tells you if a file is a GIF, JPG or PNG -- I'm
interested in determining if a file is a valid PDF or valid Word document.
Thanks for the help.
Ezra
--
PHP General Mailing List (http://www.php
On 9/20/2001 5:56 PM this was written:
> How to close persistance connection to MySQL server ?
You don't, they stay open for a certain amount of time, not sure how long..
--
Thomas Deliduka
IT Manager
-
New Eve Media
The Solution To Your Internet Angst
http://www.n
How to close persistance connection to MySQL server ?
Luboslav Gabal
--
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 PROTECTED]
> http://www.PHPBootCamp.com
> http://www.l-i-e.com
>
> I don't want to learn anything from him, that's for sure
Good designers make lousy programmers, and vice versa. And fwiw, my post was
supposed to be good natured and tongue-in-cheek. Richard Lynch helps, has
helped and will probably continue
(I'm sorry if this is not getting posted in the correct
place, but I'm not sure who/where to turn to...)
I'm attempting to upgrade my SuSE Linux 7.2 (2.4.x) server
to the new version of PHP 4.0.6, Apache 1.3.20, and the newest MySql...
(From PHP 4.0.4pl1/Apache 1.3.19)
Here are the (updated) ins
I'm trying to use the system() function to execute a shell command, but the
shell command that needs to be executed, needs to be executed as a different
user (not the default 'nobody' user). Can somebody show me what I need to
do, to accomplish this.
Thanks
-Adam
On Thu, 20 Sep 2001 15:49:25 -0400, Wee Chua wrote:
>Hi all,
>I know how to forward a page with PHP, but what if the page I want
to
>forward is the previous page or last page. In javascript, the code
>is like
>javascript:historygo(-1). The reason why I want to go back to
>previous page
>is because
Not to mention, it's a PHP bootcamp, not an HTML Web Design bootcamp. What
do the aesthetics of the site have to do with the backend?
I've recieved many excellent tips from richard in the past. I'm sure he is
qualified to teach PHP.
- Original Message -
From: "Erik H. Mathy" <[EMAIL PROT
this link refers to a function READING zip files, not actually creating
one...
--
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 PROTECTED]
> If HE is the one who did these lame-ass sites:
>
> http://www.PHPBootCamp.com
> http://www.l-i-e.com
>
> I don't want to learn anything from him, that's for sure
Ay yi yi!
Listen here, Flame Boi, why don't you just keep your comments to yourself,
h?
Unless I'm mistaken, there aren't many
If HE is the one who did these lame-ass sites:
http://www.PHPBootCamp.com
http://www.l-i-e.com
I don't want to learn anything from him, that's for sure
> > > --
> > > WARNING [EMAIL PROTECTED] email address is an endangered species
> > > Use [EMAIL PROTECTED] instead
> >
> > Richard Lynch is h
I think maybe you should look at this from a different angle.
You say you want to go to the previous page because you
don't want to lose any information on the previous page.
Do you mean, for example form fields that are filled out on
previous pages? You can pass information between pages.
This
Please only post a question ONCEE
PHP does all of it's work on the server, Going back to a previous page
(without reloading it) is done by the Web Browser.
The only way I know of is maybe to have php generate an empty page html
that has:
onLoad="javascript:history.go(-2);" in the body tag
Okay... This is odd. Despite the fact that
'print_r(ini_get("include_path"));' returns the right include_path, I
just checked the php.ini file, and lo and behold, there is no include
path set. So... Have I just discovered a bug?
-Original Message-
From: Matthew Walker [mailto:[EMAIL PROTE
Checked that. Plenty of permissions.
Anyone else have any idea?
-Original Message-
From: Johnson, Kirk [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 20, 2001 1:48 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] include() problem...
Check the permissions on both the directory and the
Raphael,
check fillowing link:
http://www.php.net/manual/en/ref.zip.php
Php has built-in zip functions.
Alex
- Original Message -
From: "Raphael Pirker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 20, 2001 4:23 PM
Subject: [PHP] creating ZIP files
> Hi Guys
> Richard Lynch is highly regarded as the best PHP Instructor
> world-wide
And this is measured how?
:D
--
Richard Heyes
--
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 adminis
I only know of two ways to do page redirects with PHP: the header() function
and a META refresh tag. I suppose you could also use PHP to dynamically
generate the javascript code you included in your email. Good luck!
Kirk
> - Original Message -
> From: "Wee Chua" <[EMAIL PROTECTED]>
> T
Please only post a question ONCEE
PHP does all of it's work on the server, Going back to a previous page
(without reloading it) is done by the Web Browser.
The only way I know of is maybe to have php generate an empty page that has:
At 03:49 PM 9/20/2001 -0400, Wee Chua wrote:
>Hi all
hey, maybe if you post this 10 more times, someone will answer
it...
This is a good list, if someone has an answer, you will probably get it. You
don't need to post the same question multiple times. All that does is annoy
the hell out of people.
- Original Message -
From: "Wee Chua" <
PHP Boot Camp is an intensive 2-day PHP programming hands-on seminars
to teach you everything you need to know to build a dynamic web site
using PHP.
In this seminar, you will literally build a dynamic web-site from
scratch which utilizes PHP, MySQL, SMTP, HTTP GET and POST, GD,
Cookies, Sess
Hi Guys,
Is there any way I can create a zip file from files? (filenames and their
paths will be specified in an array) Any help would be very much
appreciated!
TIA,
Raphael
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Hi all,
I know how to forward a page with PHP, but what if the page I want to
forward is the previous page or last page. In javascript, the code is like
javascript:historygo(-1). The reason why I want to go back to previous page
is because I don't want to lose any information on previous page. Can
Check the permissions on both the directory and the file, so that they are
accessible to 'nobody' (or whomever PHP is running as). I'm not sure what to
make of the empty include path in the error message.
Kirk
> I've tried including just a file that was in the /usr/lib/php
> directory.
> No lu
Hello-
I'm having a problem once I upload a file and I need to copy it to a new
directory using php. The error message I keep getting is this:
Warning: Unable to create
'/home/krox/krox.com/htdocs/images/101x_button.gif': Permission denied in
/php/news/news.class.php on line 227
My question is
Hi all,
I know how to forward a page with PHP, but what if the page I want to
forward is the previous page or last page. In javascript, the code is like
javascript:historygo(-1). The reason why I want to go back to previous page
is because I don't want to lose any information on previous page. Can
Hi all,
I know how to forward a page with PHP, but what if the page I want to
forward is the previous page or last page. In javascript, the code is like
javascript:historygo(-1). The reason why I want to go back to previous page
is because I don't want to lose any information on previous page. Can
Hello-
I'm having a problem once I upload a file and I need to copy it to a new
directory using php. The error message I keep getting is this:
Warning: Unable to create
'/home/krox/krox.com/htdocs/images/101x_button.gif': Permission denied in
/php/news/news.class.php on line 227
My question is
On Wed, 19 Sep 2001 12:30:50 -0700 (PDT) impersonator of
[EMAIL PROTECTED] (Bora Paksoy) planted &I saw in php.general:
>that PHP parses/compiles pages everytime a new request
>comes in. So, does this mean we have to minimize the
>amount of code per page (which also means to minimize
>number of i
You could also have Javscript do something like:
document.location.href = "theyvegotjavascript.php";
other wise they don't...
-philip
On Thu, 20 Sep 2001, Mark wrote:
> On Thu, 20 Sep 2001 19:41:55 +0200, Ole Victor wrote:
> >Hi,
> >
> >Does anyone know a simple trick to get PHP detect if t
On Thu, 20 Sep 2001 19:41:55 +0200, Ole Victor wrote:
>Hi,
>
>Does anyone know a simple trick to get PHP detect if the user's
>browser has
>javascript enabled?
the easiest way is to set a cookie w/ javascript, but you won't know
until the second request.
--
PHP General Mailing List (http://www
On 20-Sep-2001 Simon Kimber wrote:
> Hi All,
>
> I have a PHP script that i want to run every few minutes (via cron) but I
> only want it to run if it isn't already running.
>
> Is there something in cron itself to solve this or is there a way within PHP
> to detect that another instance of the
What's the difference between these two variable?
$HTTP_POST_FILES["imageFile"]["name"][0]
$HTTP_POST_FILES["imageFile"]["name"][1]
$imageFile["name"][0]
$imageFile["name"][1]
The reason why I ask this is I get this error below when I echo out
$imageFile["name"][0] etc.
Warning: Undefined inde
On 20-Sep-2001 Felix wrote:
> Hello all
>
> Can anyone suggest their best idea for a way to store IP addresses in a
> MySQL Database?
>
INT UNSIGNED
and use the MySQL functions INET_ATON() & INET_NTOA() for converting.
If you're on a pre-3.23 MySQL server then:
// Convert IP string (XXX.YY
Actually it does explain it, you set the variable to false, which of course
is 0, so that's why you had a 0 :)
Also a good way of seeing if the variable is set, no equaling 0, "", " ",
false, etc is by using the empty function if (empty($empleados))
Glad you figured it out though!
Cheers
Rick
One possible solution (I have not tried) is to force a symlink-
cd /var/database/mysql
ln -sf /mnt/cdrom/path/to/mydatabase mydatabase
You would have to make sure the database was for the right platform (a MySQL database
created on a sparc64, for example, would not work on a PowerPC)
Is there
Quick question... how do I get the information out of the $imageFile array
that is here in the phpinfo?
HTTP_POST_FILES["imageFile"] Array
(
[name] => Array
(
[0] => 101x_button.gif
[1] => am_button.gif
)
[type] => Array
(
It should be possible, especially if you use Java. But, telling MySQL where
the database is located is the trick.
Joseph
CollegeSucks.com - See PHP in ACTION!
-Original Message-
Ok, Is this possible and how?
I would like to put a mysql database on CD (or something like it). I then
wan
ok here is an example that someone gave me...it
works..it splits up the file but it comes out as
$data_values[0] = Something
$data_values[1] = SomethingElse
$data_values[0] = SomethingMore
$data_values[0] = Something
$data_values[1] = SomethingElse
$data_values[0] = SomethingMore
and so on
how
Ok, Is this possible and how?
I would like to put a mysql database on CD (or something like it). I then
want to grab info from the database (maybe using a java applet) and use it
to make xml, etc. I dont want to have to install anything on the computer
that the CD is running on.
Anyone seen som
checkout http://php.net/manual/en/function.file.php
-Original Message-
From: Dominica Anderson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 20, 2001 2:14 PM
To: [EMAIL PROTECTED]
Subject: [PHP] importing text file
I have a text file that is formatted as such
Something - Someth
> I would even go for $Something and just $SomethingMore
> with $Something really being $Something-$SomethingElse.
> I don't know if that makes sense.
> Any help would be greatly appreciated.
Take a look at file(); and just loop through the resulting array
and removing all the blank elements.
I have a text file that is formatted as such
Something - SomethingElse
<4 blank lines>
SomethingMore
<4 blank lines>
Something - SomethingElse
<4 blank lines>
SomethingMore
<4 blank lines>
and so on
Anyone have any ideas on what I would use to get this
into seperate
records that are $
Updated the Todd script again...
Now there are page numbers added with the next and prev links.
http://www.mindbash.com/scripts/mygallery.zip
Hepp!
# Daniel Alsén| www.mindbash.com #
# [EMAIL PROTECTED] | +46 704 86 14 92 #
# ICQ: 63006462 | #
--
PHP General Mailing L
Hi,
I was wandering if someone includes php-file with passwords, private
paths etc. on a different server like this:
include ("http://someserver/file.php";);
Will this same person be able to echo all the variables in that file.php
script? Or is it in each and every time processed via p
I've tried including just a file that was in the /usr/lib/php directory.
No luck. I get exactly the same error (with the correct file name,
obviously). Also, note in the error that include() is seeing
include_path=''. What's up with that?
-Original Message-
From: Jeb Anderson Scarbrough [
If you put the file into the include directory specified in the php.ini
(.:/usr/lib/php) then I believe you should do:
include("mysql.php");
NOT
include("DB/mysql.php");
Someone please correct me if I'm wrong.
I've got a very odd problem. I'm trying to include 'DB/mysql.php', from
the /us
Thank you very much.
Felix
- Original Message -
From: "Jason Bell" <[EMAIL PROTECTED]>
To: "PHP list" <[EMAIL PROTECTED]>
Sent: Thursday, September 20, 2001 12:49 PM
Subject: Re: [PHP] MySQl IP Address Storage
> Felix,
>
> Just to save you the headache that I encountered, the column th
My reason for using SSL was that the username/password combination
wouldn't be transmitted in plaintext... that's all. If you're passing the
creditials in plaintext to the Win2k machine though going to SSL for the
auth on PHP/Linux wouldn't really make any sense I suppose.
Justin Buist
Trident T
I've got a very odd problem. I'm trying to include 'DB/mysql.php', from
the /usr/lib/php directory, and it's not working. My include_path is set
properly (.:/usr/lib/php) and when I do
'print_r(ini_get("include_path"));' it prints it properly. But when I
try and do an include, I get the following
Felix,
Just to save you the headache that I encountered, the column that you plan
to store your IP address in needs to be an unsigned integer when using
INET_ATON and INET_NTOA
If it's not, all addresses stored will come out as 127.0.0.0 (I think that
was what it was...).
Also, these are MySQL
Hello everyone-
I'm trying to have multiple uploads in one form so my input tag looks like
this:
The problem I'm running into is that I know php usually sets the name of the
file to $userfile_name and sets the mime type of the file to $userfile_type
and the size to $userfile_size. My questi
> ...in perl
> check to see
> if the process is already running, and if so exit...
Or just do this at the top of the cron'ed php script.
--
Richard Heyes
"I know not with what weapons World War III will be fought, but World War IV
will be fought with sticks and stones." - Albert Einstein
--
P
Hi,
Does anyone know a simple trick to get PHP detect if the user's browser has
javascript enabled?
--
Olé
--
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
Thank you Robert.
Felix
- Original Message -
From: "Robert Covell" <[EMAIL PROTECTED]>
To: "Felix" <[EMAIL PROTECTED]>; "PHP list" <[EMAIL PROTECTED]>
Sent: Thursday, September 20, 2001 10:55 AM
Subject: RE: [PHP] MySQl IP Address Storage
> INET_ATON
>
> and
>
> INET_NTOA
>
> -Or
i'm sure there are more elegant solutions, but you could control the running
of your php script via a perl script called by cronin perl check to see
if the process is already running, and if so exit, else start it
jack
-Original Message-
From: Simon Kimber [mailto:[EMAIL PROTECTED]]
Hi All,
I have a PHP script that i want to run every few minutes (via cron) but I
only want it to run if it isn't already running.
Is there something in cron itself to solve this or is there a way within PHP
to detect that another instance of the current script is running and if so
exit the new
Hello everyone-
I'm trying to have multiple uploads in one form so my input tag looks like
this:
The problem I'm running into is that I know php usually sets the name of the
file to $userfile_name and sets the mime type of the file to $userfile_type
and the size to $userfile_size. My questi
I have a text file that is formatted as such
Something - SomethingElse
<4 blank lines>
SomethingMore
<4 blank lines>
Something - SomethingElse
<4 blank lines>
SomethingMore
<4 blank lines>
and so on
Anyone have any ideas on what I would use to get this
into seperate
records that are $
Thanks lance and David for the reply. :)
Yes, I suspected as much, *BUT* let me explain what I am trying to do:
I have a script I am writing that uses a MySQL backend. I'm including an
initial configuration interface via the webbrowser. During initial
configuration, the user provides parameters
> yours doen't need a text file with the image file names
> but this is usefull when you want to establish the order
> thumbs are shown
A matter of taste i guess. I wanted a script that needed as little work as
possible after i uploaded it.
Next thing to do is add page numbers for faster navigat
Ok, I have written code to go through the file grabbing pretty much what I
need. Now in the array after explode ($oldline=explode("|", $buffer);) I
need to split apart $oldline[9]. Each element should hold no more than 4000
characters. So I will dump this all into a new array. What would be th
thx alot :)
--
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 PROTECTED]
thanks Daniel
yours doen't need a text file with the image file names
but this is usefull when you want to establish the order
thumbs are shown
little trick:
both, big imgs and thumbs should be same file type but
I use jpg for big ones and gif for thumbs. after procesing
them (thumbs) in image so
Why does the marc.aimsgroup archives post my IP address and not my name when
posting to the newsgroup? Is there anyway I can change this?
Charlie Killian
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-ma
You can use a flat file and work around problems like you described by using
flock, for example. I do agree a DB is the best way to go 99.9% of the time
though. I just wanted to give an overview of that covered most of the
possible
ways to write a chat room.
Sheridan Saint-Michel
Website Admini
Neil, look under variable variables in the php manual. They're what you
need:
http://www.php.net/manual/en/language.variables.variable.php
Charlie
"Neil Freeman" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi there,
>
> How do I generate variable names 'o
1 - 100 of 160 matches
Mail list logo