Anyone know of docs in place for compiling php4 under stronghold? Its
apache based, however I was hoping that someone had put some doc into
place specific to this webserver.
Thanks- charles
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Hello,
Somebody know how to make IMLIB library compile into php ?
i tried --with, --enable, but doesn't work !
Thanks.
--
Charles
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the
ing like:
if (
($add="1") && ($remove="1") ||
($add="1") && ($view="1") ||
($remove="1") && ($view="1")
) {
Thanks! -Charles
--
**
There are two major products to come out of Berkeley:
LSD and UN
I don't think this is quite what I am looking for because I am hoping to
issue an error message if more than one variable has a value of one. Sorry
for not including this as a stipulation.
Thanks -Charles
On Thu, 17 May 2001, elias wrote:
> I understand that you want to check if:
&g
the
username field identically.
$filename
charles routers
craig systems
tonyportmasters
i would think that a while loop could do this and possibly write the
output, minus the line i want to take away to a temp file and then copy it
over. in bash i would use a
php give me a error,
call to undefined function: mysql_connect()
php think that mysql_connect is my private function ?
Charles
Ps. sorry my poor english
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
I'm just wondering, what is the right output of below code should be
ob_start(function($o) { fwrite(STDERR, $o); });
echo 'hello';
ob_end_clean();
Does it should print "hello" or does it should print nothing?
In PHP 5.3, it prints hello, but in 5.4.0 it prints nothing.
Looking at the C cod
On Tue, Mar 6, 2012 at 8:55 PM, Lawrence Decker wrote:
> I've been playing with PHP for about 6 years and I have no idea why this is
> happening... I've been writing a script to auth to AD. When I run the
> script on my dev box, nothing. I have wireshark running in the background
> on the dev bo
On Tue, Mar 6, 2012 at 8:55 PM, Lawrence Decker wrote:
> I've been playing with PHP for about 6 years and I have no idea why this is
> happening... I've been writing a script to auth to AD. When I run the
> script on my dev box, nothing. I have wireshark running in the background
> on the dev bo
On Thu, Mar 8, 2012 at 7:01 AM, Simon Schick
wrote:
> $date = new DateTime($year . '-' . $current_month . '-1');
> $date->add( new DateInterval( 'P1M' ) ); // Add a period of 1 month to
> the date-instance (haven't tried that with the 30th of Jan ... would
> be kind-of interesting)
>
> $days_in_cu
On Fri, Mar 9, 2012 at 9:23 AM, Tedd Sperling wrote:
> On Mar 8, 2012, at 6:53 PM, Daniel Brown wrote:
> On Mar 8, 2012 6:14 PM, "Tedd Sperling" wrote:
>>
>> > Side-point: I find it interesting that getdate() has all sorts of neat
>> > descriptions for the current month (such as, what weekday a
On Fri, Mar 9, 2012 at 10:58 PM, Tedd Sperling wrote:
> On Mar 9, 2012, at 5:37 AM, Ford, Mike wrote:
>>> From: Tedd Sperling [mailto:tedd.sperl...@gmail.com]
>>> But why does anyone have to use the next month to figure out how
>>> many days there are are in this month? Do you see my point?
>>
>>
On Sat, Mar 10, 2012 at 12:07 AM, Tedd Sperling wrote:
> On Mar 9, 2012, at 11:17 AM, Charles wrote:
>
>> On Fri, Mar 9, 2012 at 10:58 PM, Tedd Sperling
>> wrote:
>>> On Mar 9, 2012, at 5:37 AM, Ford, Mike wrote:
>>>>> From: Tedd Sperling [mailto:t
On Sat, Mar 10, 2012 at 12:52 AM, Charles wrote:
> On Sat, Mar 10, 2012 at 12:07 AM, Tedd Sperling
> wrote:
>> On Mar 9, 2012, at 11:17 AM, Charles wrote:
>>
>>> On Fri, Mar 9, 2012 at 10:58 PM, Tedd Sperling
>>> wrote:
>>>> On Mar 9, 2012,
On Sat, Mar 10, 2012 at 12:57 AM, Charles wrote:
> On Sat, Mar 10, 2012 at 12:52 AM, Charles wrote:
>> On Sat, Mar 10, 2012 at 12:07 AM, Tedd Sperling
>> wrote:
>>> On Mar 9, 2012, at 11:17 AM, Charles wrote:
>>>
>>>> On Fri, Mar 9, 2012 at 10:58 P
I'm using the CLI script shown below to parse and show all argv
variables passed to it.
##
-rwxr-xr-x1 nobody nobody plusbug.php
##
#!/usr/bin/php -q
### END
It looks like your trying to do something before redirecting the user.
Try the below near the end of your script so everything completes before
redirecting them.
Echo ";
Bronson_AT_udatasystems.com
-Original Message-
From: Carlos Alberto Pinto Hurtado [mailto:[EMAIL PROTECTED]]
Sent: Fr
If you try viewing the source of the webpage it will probably show up
correctly.
If this is the case, try putting the output into a variable and passing
it to the nl2br() function.
Echo nl2br($commandoutput);
And/or make your way to http://www.php.net/manual/en/function.nl2br.php
Bronson_AT_uda
There are a couple of spots it may be slowing down depending on how your
doing things. I have a mysql database and submit one query in which I
hold all the data in an array. Then I loop through the array so I do not
need to send multiple queries.
I use something like the following, though I like t
Hello:
My name is Charles Cedeno. I am now focusing in one online
opportunity.I have tried several of these opportunities full of hype
promising us thousands of dollars every month. I would get all excited and
run to my family and friends with another "Great Money Maker ". I
7;;
Where datestamp is set in MySQL with a timestamp(14) and
$attributes[startdate] and $attributes[enddate] are in the format
mm/dd/
My query does not return any results. I know there must be something
wrong, can anyone point it out?
Thanks,
Charles
--
PHP General Mailing List (http://www.p
will be entering the date ranges as mm/dd/.
What is the best way to handle adding the date to the MySQL record, and
also how to search for that date based on a range in the above stated
format?
Thanks,
Charles
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
If I am going to use date('U') to insert an epoch timestamp into a
mysql table, what is the appropriate field type to use?
thanks
charles
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
chmod 777 - not sure if this is good or not - pretty
new to unix administration stuff.
What do you all suggest?
Thanks,
Charles
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all,
I have this query:
SELECT a.area_name, b.area_name FROM tbl_1 x, tbl_2 a, tbl_2 b
WHERE x.area_1 = a.id
AND x.area_2 = b.id
I am using PEAR DB to get my results as an ASSOC ARRAY. How do I echo
the values for a.id and b.id?
Thnks
Charles
--
PHP General Mailing List (http://www.php.net
, 2003, at 11:09 AM, Rich Gray wrote:
Hi all,
I have this query:
SELECT a.area_name, b.area_name FROM tbl_1 x, tbl_2 a, tbl_2 b
WHERE x.area_1 = a.id
AND x.area_2 = b.id
I am using PEAR DB to get my results as an ASSOC ARRAY. How do I echo
the values for a.id and b.id?
Thnks
Charles
I presume you
E x.area_1 = a.id
OR x.area_2 = b.id GROUP BY x.id
But this ALWAYS returns the area_name (funding) in the value of area_b
(have no idea why)
Thanks for any help. It is appreciated.
- Charles
On Friday, March 7, 2003, at 01:42 PM, Jim Lucas wrote:
Then the information in the DB is the
Wow. That is ALMOST it. The only thing is it does not return the record
with a 0 in tbl_1.area_2 - can you think of a workaround?
Thanks for the help,
Charles
On Friday, March 7, 2003, at 06:39 PM, Barajas, Arturo wrote:
Let's see:
SELECT
tbl_1.area_1,
areas1.area
e calling it, should it be otherwise?
Thanks
Charles
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
appreciated.
Thanks
Charles
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
7;%";
$sql .= $attributes['nametofind'];
$sql .= "%\' ORDER BY lname ASC";
What I am trying to do is allow the user to find a personnel record
that contains the name to find.
Thanks,
Charles
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
,lname,mname.
Let me try to say what I am trying to do. I have a table of people and
have the names saved in fields: fname, lname, mname. I want to have a
search field where the user can find a persons record by typing in all
or part of their name. What would this kind of query look like?
Thanks
is to this query in $attributes['searchstring'] I get 0
results. If I pass Christine I get all 5.
What do I need to modify to make this work?
Thanks,
Charles
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
reak them up and use two of these?
$result = $db->query($sql)
Thanks
Charles
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
sing a foreach() I want to create a variable with a unique incremental
name for each of the values.
for example:
$dra_1 = 5;
$dra_2 = 8;
$dra_3 = 9;
How would I do this? A variable that has a variable name based on a
counter in the loop? Not sure the syntax for that.
Thanks
Charles
--
PHP Ge
New Jersey (USA)
Please feel free to contact me off list.
Thanks,
Charles
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
) I want to create a variable with a unique
incremental
CK> name for each of the values.
CK> for example:
CK> $dra_1 = 5;
CK> $dra_2 = 8;
CK> $dra_3 = 9;
CK> How would I do this? A variable that has a variable name based on a
CK> counter in the loop? Not sure the syntax fo
to write to a directory. Check with the host
on this.
- Charles
On Saturday, March 15, 2003, at 09:53 PM, Philip J. Newman wrote:
RIghto then. Just make a nice website, on my windows box and
everything and
when i moved it to the live server, the things that didn't work where
file
up
ng at the sources.
- Charles
On Sunday, March 16, 2003, at 12:57 PM, [EMAIL PROTECTED] wrote:
Hi,
I am currently working on transforming a rather large software package
to
oop. I do have a few years of experience with php, but just started to
use oop.
One of the first question that arose was h
Hello All---
I'm having some trouble getting PHP to communicate with my Windows 2000 MS
Exchange Server... I'm running PHP 4.3.2 on a Win2000 machine serving with Apache 1.3.
The code I'm using is:
$mbox = imap_open("{x.x.x.x:143}","admin","adminpass", OP_HALFOPEN);
$err = imap_errors();
On Monday, March 17, 2003, at 12:58 AM, Philip J. Newman wrote:
How do i delete a file ... ?
kill?? dele *srugs*
--
Philip J. Newman.
Head Developer
[EMAIL PROTECTED]
+64 (9) 576 9491
+64 021-048-3999
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.ne
$result = unlink("file.txt") or die("Operation failed!');
On Monday, March 17, 2003, at 12:58 AM, Philip J. Newman wrote:
How do i delete a file ... ?
kill?? dele *srugs*
--
Philip J. Newman.
Head Developer
[EMAIL PROTECTED]
+64 (9) 576 9491
+64 021-048-3999
--
PHP General Mailing List (ht
e slash. I am not sure what to modify to fix this so the literal
slash is not written.
Thanks,
Charles
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
php has a function stripslashes() you could try using.
- charles
On Monday, March 17, 2003, at 10:11 AM, Ian A. Gray wrote:
Using the \ or using single quotes instead of double
is great. However I am now finding a problem if
someone inputs either single or double quotes on a
form which uses
John,
You are right, something was adding the additional slash. I removed the
addslashes() and it fixed the problem. Something I am doing must
already be handling that... will step through the code AGAIN and see if
I can find it.
- Charles
On Monday, March 17, 2003, at 12:19 PM, John W
What is the difference as in... why one or the other?
include('somefile.php');
include("somefile.php");
Just wondering...
- ck
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
perfect. thanks for the explanation.
cheers,
charles
On Monday, March 17, 2003, at 02:01 PM, Pete James wrote:
Only that you can embed vars in the second one.
if $foo='bar';
include('somefile_{$foo}');
will include the file 'somefile{$foo}', where
include("
What is the expected return when using strtr() to compare a string to
an empty string?
example:
$myval = strstr('bob', '');
Thanks,
Charles
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Just wondering. I am trying to decide whether to build a FreeBSD server
or other... open to suggestions
Thanks,
Charles
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks,
Charles
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
verted is
formatted, if you all get what I am saying...
Thanks
Charles
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
have their
order number incremented.
Maybe there is a better way to do this? Just not sure. Maybe not with a
database at all?
Thanks for suggestions.
Charles
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Pear is really nice. I am very happy with it.
- Charles
On Thursday, March 20, 2003, at 02:56 PM, Merritt, Dave wrote:
All,
I've always used MySQL databases and the MySQL functions in PHP for my
code
in the past. However, I'm now working on a project that I want the
project
to be
is_numeric(yoursting);
this returns true if string is a number
On Thursday, March 20, 2003, at 08:32 PM, Orlando Pozo wrote:
Hello all, I am Orlando Pozo
How could I verify if a variable is a "Numeric string"? , I need help
in this; for example when I submit a form, all texts fields are sent
Hi everyone,
I have ALMOST gotten this working (mySQL part works).
I have gotten the advice that this is easier to do in PHP then to try
and make this query work in mySQL. Here is the query and a sampling of
the current results (from phpMyAdmin)
SELECT p.fname, p.lname,
w.web_li
hi
Could anyone give me an example of a prepare() and execute() that
retrieves a simple dataset as an associative array and then prints it
to the screen? I can only seem to find examples that do an INSERT and I
am having trouble doing the translation.
Thanks
charles
--
PHP General Mailing
If the page does not submit between changes, PHP will not be much help,
that would be JavaScript's job. You could use PHP to prepare the arrays
that JavaScript will use to accomplish this.
- Charles
On Monday, March 24, 2003, at 11:32 AM, Keven Jones wrote:
Hi,
Can someone tell me if
hi all,
i have a textarea in a form which gets inserted into a table in my
database (mySQL). When displaying this text back to the screen, how do
i retain the line breaks etc. that were in the original input?
thanks
charles
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
I am by no means an expert (even remotely) but I do recall instructions
on exactly how to do this in the documentation for MySQL - I think
under the "how to upgrade" section.
- Charles
On Monday, March 3, 2003, at 06:53 PM, Stephen Craton wrote:
Hello,
Yesturday I made a big mist
I hang my head in shame... yes. As a matter of fact, I did on my second
skim through my PHP ref. manual... thanks for the pointer just the same.
- charles
On Tuesday, March 25, 2003, at 05:38 PM, CPT John W. Holmes wrote:
i have a textarea in a form which gets inserted into a table in my
gt;
string(4) "2003"
}
I am used to getting this data like:
$form->getSubmitValue("field_name");
But doing that with this array just returns: Array
Anyone know how to get to the data?
Thanks
charles
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Okay. I think I understand. So I do something like this:
$thedate = $lr_form->getSubmitValue('lr_pub_date');
echo "The month: $thedate['m']";
Is that what you meant?
- Charles
On Wednesday, March 26, 2003, at 09:31 PM, Leif K-Brooks wrote:
Are you trying to p
Great. Thanks.
- Charles
On Wednesday, March 26, 2003, at 09:48 PM, Leif K-Brooks wrote:
Yes, but you can't put put the single quoted array key directly in the
double-quotes string, try:
$thedate = $lr_form->getSubmitValue('lr_pub_date');
echo "The month: {$thedate
,
Charles
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Okay cool.
This leads me to another question. If I have stored the date as an
epoch then is there a way using PHP and MySQL to say find all the
records that have been added this YEAR (not last 365 days)?
Thanks
Charles
On Friday, March 28, 2003, at 12:31 AM, Leo Spalteholz wrote:
On March 27
e ( 0, 0, 0, 1, 1, date['Y']); // first day of this
year
$end = mktime ( 0, 0, 0, 12, 31, date['Y']); // last day of this year
then select all record where timestamp >= $start and timestamp <= $end
should do the job
Hope this helps
Foong
"Charles Kline" <[EM
try the checkdate() function. i think that will do what you need.
On Monday, March 31, 2003, at 11:06 PM, Ben C. wrote:
How do I easily check to see if a MySQL formatted date is valid such
as if a
user enters
2003/02/28 would return true
2003/02/31 would return false
I have check the manual an
hi there,
if this:
$res_pform->getSubmitValue("investigator5");
returns an array, how do I get to the individual values in that array
without first setting it to a variable like:
$myvar = $res_pform->getSubmitValue("investigator5");
echo $myvar['field
he keys without setting it first to a variable
(which is the only way I know how to now).
Thanks,
Charles
On Tuesday, April 1, 2003, at 03:18 PM, Dan Joseph wrote:
Have you tried:
extract ($myvar = $res_pform->getSubmitValue("investigator5"));
-Dan Joseph
-Original Message-
Hello all,
I have a text blurb that is on the home page of a site. I need to make
this block of text editable through a form in the admin section of the
site. Is it worth having a table in the db or would I be better off
writing to a file for this?
Thanks,
Charles
--
PHP General Mailing List
x27;t figure out which to use.
Thanks
Charles
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all,
How would i go about stripping all newlines from a string?
Thanks,
Charles
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yes. Is weird. I thought this would work too, but for some reason it
was not removing them all. I wonder if re-saving the files with UNIX
linebreaks (or try DOS) would have any effect. Will report back.
- Charles
On Monday, June 9, 2003, at 02:24 AM, Joe Pemberton wrote:
http://www.php.net
Check out Liz Fulgham article on PHP and Forms ->>
http://softwaredev.earthweb.com/script/article/0,,12063_996351,00.html
It show how the _SERVER fuction/varible is used.
Cheers CJ
Jim Dam wrote:
> http://www.faqts.com/knowledge_base/view.phtml/aid/235/fid/17
> - Original Message -
> F
This may be an interesting challenge for someone or has it been done
before
Can some one help me.
I am looking for a laboursaving method of extracting the contents of a
web page (Text only) and dumping the rest of the html code.
I need the contents to rework the pages and put the contents into
I was looking into stripping HTML files that contain alot of links. I
was trying to avoid the manual way of data entry. The contents i need
are the name of the link (plain text which sits out side the HTML code)
and all the a href tags. I would like the a href (ie.the hyperlink)
tags to be displa
PHP and MYSQL Web Development manual by Welling and Thompson states
that logical operators are as follows:
___
Operator Name
Use
Result
_
_read (or even a zip_close immediately after the open).
Can anyone shed some light on how to get zip support working?
I'm working on getting a backtrace right now.
thanks
charles
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
any tips.
Thank you,
--
Charles Wiltgen
"Well, once again my friend, we find that science is a two-headed beast.
One head is nice, it gives us aspirin and other modern conveniences...
but the other head of science is bad! Oh beware the other head of
science...it bites!&
Hello,
Does anyone know of articles that discuss best practices for supporting
plug-ins? I searched for a while, but there doesn't seem to be anything out
there.
--
Charles Wiltgen
"Well, once again my friend, we find that science is a two-headed beast.
One head is nice, i
; You may want to take a look at Metabase...
> You may also want to look into MetaL...
Thank you for the advice and pointers! :^)
--
Charles Wiltgen
"Well, once again my friend, we find that science is a two-headed beast.
One head is nice, it gives us aspirin and other modern c
Justin French wrote...
> I'd say RTF is a format you're going to be able to come to grips with
> quicker than .doc -- just take a look at the source of a word doc -- it's
> pretty obscure!!!
And proprietary, and soon to be obsolete. But Office 11 files will be XML
fil
e. But Office 11 files will be XML
>> files.
>
> RTF is not a closed format.
(I was talking about Office's native .doc format, not the .rtf file format.)
-- Charles
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
structions on the Stepwise site.
Mac OS X also comes with PHP pre-installed, although I'm not sure what
version.
--
Charles Wiltgen
PlaybackTime
<http://PlaybackTime.com/>
- Great new QuickTime 6 book
- Even pirates need parrots
- Nokia's 6 new phones:
fopen($thefile, "r")-ing from there (since I think that will be
faster than sending everything through an FTP server).
Any feedback is appreciated,
-- Charles Wiltgen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
x27;m stumped. Many thanks for the response, and I appreciate any additional
thoughts.
-- Charles Wiltgen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
se with most people's service providers.
I'm starting to think that PHP, although a great choice for anything but
in-house software, may not be the right choice for a product aimed at non-
technical people. Is there a PHPriest in the house?
-- Charles Wiltgen
--
PHP General Mailing
prompt was, I would've gone with putting the
burden on the user.
--
Charles Wiltgen
"Well, once again my friend, we find that science is a two-headed beast.
One head is nice, it gives us aspirin and other modern conveniences...
but the other head of science is bad! Oh beware
27;t directly use the file handle
> returned by fopen - that's why the PHP god has created it :)
A very good point, and this will work for me. I mentioned in my first note
that I'm afraid that this is about 1,000 times slower than creating/writing
a "local" file, but I d
ar to have compiled PHP with FTP support. Can
anyone recommend a great FTP class? (I'm not exciting about doing this via
sockets, but I will if I have to...)
Thanks!
-- Charles
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
they have this? You could, however, always write a
> tempfile, then exec your ftp client for a transfer...
No curl, no exec. :^)
I'm using sockets, and everything working except I can't CD to a directory
with a period in it (which is, of course, what I need to do). Does I need
t
Charles Wiltgen wrote...
> I'm using sockets, and everything working except I can't CD to a directory
> with a period in it (which is, of course, what I need to do). Does I need to
> escapte this somehow for fputs()?
Sorry, I'm an idiot...I went back to the FTP RFC and e
27;m using fsockopen() to "speak FTP" to do things
like delete files I've created with fopen(). This is far slower and more
error-prone, and I'm very, VERY interested in other portable solutions.
Please post whatever you find about this to the list, and I'll do the same.
x27;t really flushed
and closed properly.
What else can I do?
Thanks,
--
Charles Wiltgen
"Well, once again my friend, we find that science is a two-headed beast.
One head is nice, it gives us aspirin and other modern conveniences...
but the other head of science is bad! Oh
is no guarantee that
a file is completely written, and I'm wondering what I can do besides insert
sleep() statements.
--
Charles Wiltgen
"Love is a snowmobile racing across the tundra and
then suddenly it flips over, pinning you underneath.
At night, the ice weasels co
// Delete a file via FTP
function deleteFileViaFTP($ftpServer, $user, $password, $ftpDir, $ftpFile) {
$error = FALSE;
// Open connection to FTP port
$ftp = fsockopen($ftpServer,21);
$foo = fgets($ftp);
if (!ereg("^220*", $foo)) { $error = "*** Error! FTP service not r
me the ability read and write files as another user, my problems would
be solved.
-- Charles Wiltgen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
20 times or so, and I can't
figure out why PHP loses it's mind and thinks there's a open_basedir
violation.
-- Charles Wiltgen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Path() . "index.php");
include($foo);
...and IT worked every time. So the problem appears to be related to using
concatenation in my include statement (?).
Odd. Many thanks for the response!
-- Charles Wiltgen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Charles Wiltgen wrote...
> I'm having file locking problems.
>
> I'm using fopen() to write a file via FTP. At the end, I'm doing...
>
> fflush($fp);
> fclose($fp);
>
> ...and then I include it immediately after. But many times I only get pa
1 - 100 of 244 matches
Mail list logo