roups and permissions or b) chroot your php process. a) is much much
simpler.. as long as the apache process can read the files you're
golden. However on Windows, this is, of course, impossible; or at least
very highly improbable.
C.
Ashley Sheridan wrote:
On Sat, 2009-12-12 at 09:42 -
ss platform and cross browser compatible... Also, maybe with
some JQuery plugins you can have what you need.
Hoping that inspires/helps,
Carl.
Ashley Sheridan wrote:
> On Fri, 2009-12-11 at 16:52 -0600, Joseph Thayne wrote:
>
>
>> PHP cannot create a folder structure on your loc
It's also a security flaw... php should be chrooted to the webroot! Or
it should be chrooted to the users home directory. Especially on windows
systems where security is not so strict.
My 2 cents,
Carl.
Roberto wrote:
> Hi Joseph,
>
> I'm perfectly fine with the concepts o
That option was added in 5.3.0 So you have to upgrade for that to work.
tedd wrote:
Hi gang:
The manual says:
http://www.php.net/nl2br
That I could use the function like so (Example #2):
$new = nl2br($string, false);
But when I do, I get:
Warning: Wrong parameter count for nl2br()
mpossible
Geert Tapperwijn wrote:
Can't you just use the eval <http://nl2.php.net/eval> function, and
parse the code from the include file in it?
.. or is there something I'm missing here?
2009/9/25 Carl Furst <mailto:cfu...@intracommunities.org>>
Jim Lucas wro
Jim Lucas wrote:
Ashley Sheridan wrote:
On Wed, 2009-09-23 at 07:36 -0700, Jim Lucas wrote:
Mert Oztekin wrote:
Output buffering will do it.
Also I am not sure but did you try retrieving content with fopen() ?
Something like
$file = 'invoicetable_bottom.php';
fopen("http://
wrote:
> Carl Furst wrote:
>
>>
>> > $salt = 'someglobalsaltstring'; # the salt should be the same salt used
>> when storing passwords to your database otherwise it won't work
>> $passwd = crypt($_GET['passwd'], $salt);
>
> I per
een a while since I've done
any php)
getPassword) { return 1} else {return 0}
?>
So I've not tested this obviously but you would have to have a
$userObject which is your interface between your software and your user
data.
Hope it helps,
Carl.
PJ wrote:
> PJ wrote:
>
PHP may not be the thing to do this.. because it sounds like you want
the users to chroot to ${HOME} which php especially on a vhost does not do.
If you want users to access an nfs or ftp I would use either samba or
vsftp or some other scp/ftp software.
Jan G.B. wrote:
> 2009/7/6 Isaac Dover
>
Per Jessen schrieb:
Edmund Hertle wrote:
my problem is that I send an e-mail with an attachment (pdf file). I
get the filename out of a mysql table. While using echo or downloading
the file, the filename is showed as expected but as an attachment it
is not properly encoded:
Should be: PC-Bescha
em, even if you're new to the site, and perhaps surprisingly, PHP is
doing well in a couple of the challenges.
I hope some of you will find this interesting, and sorry for disturbing
you if not!
Have fun,
Carl.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t anything..
lol :)
Still, thanks for your help, I was playing around with it and wanted to see
what other cool stuff you could do.
Carl Furst
> -Original Message-
> From: Jochem Maas [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 15, 2006 3:55 PM
> To: Carl Furst
>
ent
functions on different evaluations of the Boolean Expression at the
beginning; like in the first example?
Carl Furst
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ted. The second echo prints nothing and the third
prints the original $eml with nothing substituted.
Can anyone see why the perl reg isn't seeing the spaces?
Carl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
numbers going into an int field and vice versa
otherwise your joins are going to get screwed up and that's not something
they teach you in software 101...
Peace,
Carl Furst
Vote.com
P.O. Box 7
Georgetown, Ct 06829
203-544-8252
[EMAIL PROTECTED]
> -Original Message-
>
nd and
it comes out with 6 results, exactly the same (or least as exactly as data
to a php script would be). So if you're joining in mysql it's good to insert
your data as ints into integer columns and 'char' or 'strings' when
inserting into varchar, char or text columns (a
ast on most machines the lowest memory addresses are reserved for the OS.)
In order to make your code work you would have to pass a variable so that
the computer can get the address of that variable and use/compute the data
located there.
Sounds like the original problem is some kind of type mismat
function which can provide time cost for
last
query?
Maybe...
http://us2.php.net/manual/en/function.mysql-info.php
http://us2.php.net/manual/en/function.mysql-sta
Carl Furst
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
er
str_replace, strpos and strtr as well.
Thanks,
Carl
-Original Message-
From: Al [mailto:[EMAIL PROTECTED]
Sent: Monday, May 16, 2005 3:54 PM
To: php-general@lists.php.net
Subject: regex question
What pattern can I use to match ONLY single occurrences of a character in a
string.
e.g.,
I think you need to have the result from a mysql_connect() in order for that
to work..
As in:
$myResource = mysql_connect(user, pass, host, etc);
You just have a statement handle there. Which is good for the fetch commands
like mysql_fetch_row(), but not the num rows command.
Carl Furst
ot of where statements with your
join you may wish to consider a sub select instead.
A good thing to do would be to try each case and see which works faster in
your situation..
Carl Furst
Vote.com
P.O. Box 7
Georgetown, Ct 06829
203-544-8252
[EMAIL PROTECTED]
-Original Message-
From:
e the
representation, say, of a MS Word dash (hex: 0x96) is not the same number on
Linux. So if you try and scrub it on the Linux side it won't find it.
Thanks!
Carl
-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 11, 2005 2:14 AM
To: Carl Furst
Cc: p
Why is there an 0xE2 beginning the character combination and why does PHP
translate these characters this way? Is there something you can do to
minimize them besides writing some kind of character scrubber?
Thanks,
Carl
I am observing.
What does this "extra" header value come from ?
Regards,
Carl Michael Skog
-Original Message-
From: Richard Lynch ceo-at-l-i-e.com |PHP General user list|
[mailto:...]
Sent: den 10 december 2004 22:40
To: .
Cc: [EMAIL PROTECTED]
Subj
consist of 3 newlines !!!
The strange thing is that I observed this behaviour on two completely unrelated
servers.
Is this what can be expected or is it a result of misconfiguration ?
Kind regards,
Carl Michael Skog
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
Ah yes! Thanks, I see the problem; I have to switch the 8-byte chunks in
byte-order! (Why is Directconnect doing this...)
Thanks for your help. Greetings, Carl.
"Thijs Lensselink" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> check: http://www.cs.technion.a
I am trying to generate tiger tree hashes the same way as directconnect
does, but I am failing.
I checked the output from php with the reference vectors from
http://www.cs.technion.ac.il/~biham...ssie-format.dat
and they appear to be different!
echo bin2hex(mhash(MHASH_TIGER, 'abc'))."\n";
output
erpolate $variables". However I have discovered (at
least in php 4.2.3) that you cannot use subarrays in double quotes like "my
var in the subarray subarray: $array['subarray']['subarray']" That doesn't
seem to work.. it comes up blank.
Carl Furst
-Or
IF $int is null and I have a test
If($int < 1) {
//do some foobar
}
will $int be evaluated as a zero? IF I cast (int) $int.. will that turn a
null $int into a zero??
Documentation aint too clear.
Thanks,
Carl.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: h
on't break it's like
an OR statement/gate;
Carl.
-Original Message-
From: Daniel Szasz [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 3:29 PM
To: [EMAIL PROTECTED]
Subject: [PHP] What is wrong with this code ?
Hello
What is wrong with this code ?
$doWork = $_GET[doW
Isn't there an in_array function you can use?
If (in_array($action, array(a1,a2,a3,a4)) {
// do something
}
else {
// do something else
}
Carl.
-Original Message-
From: andu [mailto:[EMAIL PROTECTED]
Sent: Sunday, August 10, 2003 7:15 PM
To: [EMAIL PROTECTED]
Subject: [PHP] find s
'--enable-sockets'
'--enable-sysvsem' '--enable-sysvshm' '--enable-discard-path'
'--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx'
'--without-oci8' '--with-pear=/usr/share/pear' '--with-imap=shared'
'--with-imap-ssl' '--with-kerberos=/usr/kerberos' '--with-ldap=shared'
'--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-unixODBC=shared'
'--enable-memory-limit' '--enable-bcmath' '--enable-shmop'
'--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio'
'--enable-mcal' '--enable-mbstring' '--enable-mbstr-enc-trans'
'--enable-mbregex' '--with-apxs2filter=/usr/sbin/apxs'
Any and all help is -greatly- appreciated. :)
cheers,
--
Carl P. Corliss
System Administrator / Developer
www.xaraya.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You can do it by selecting the formatted date from the mysql server using
the DATE_FORMAT command which would be:
SELECT DATE_FORMAT('%M %D, %Y', date_field_name_or_mysqldate);
-Original Message-
From: Gronquist, Jim M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 11:53 AM
To
Yep that should work as does $var--
-Original Message-
From: Jeremy [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 12:28 PM
To: [EMAIL PROTECTED]
Subject: [PHP] incrementing string value
writing some client side javascript with some dynamic php, and I need to be
able to print a dy
;
// ps... none of this code has been tested use at your own risk.
Carl Furst
Chief Technical Officer
Vote.com
50 Water St.
South Norwalk, CT. 06854
203-854-9912 x.231
-Original Message-
From: Phillip Blancher [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 3:38 PM
To: PHP List
Ok lets see I have the following two functions one calls the other
Function a (&$myref) {
..something... then calls function b
b($myref);
}
function b (&$myref) {
something
}
a($myref);
is the reference by passing in function b legal???
Carl Furst
Chief Technical Officer
Vot
I doubt this is the problem, but perhaps your webserver is messing with your
mime-types by printing a default header for some reason.
Carl Furst
Chief Technical Officer
Vote.com
50 Water St.
South Norwalk, CT. 06854
203-854-9912 x.231
-Original Message-
From: Brian V Bonini [mailto
nk) before the substring is complete.
Check out:
http://www.mysql.com/doc/en/String_functions.html
for that and other string functions that might be useful.
Carl.
-Original Message-
From: Andrew McCombe [mailto:[EMAIL PROTECTED]
Sent: Friday, June 27, 2003 12:06 PM
To: [EMAIL PROTECTE
I can understand the abuse, but this page wouldn't need to be indexed on any
search engines really.. but I it's an important consideration.
Thanks!
Thanks to everyone!
Carl.
-Original Message-
From: Michael [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 12:35 PM
To: Z
at HTTP1.1 docs and I didn't really get
anywhere.
Any ideas?
Carl.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
'5';
Does that force some kind of behavior that's needed?
Interesting.
Carl Furst
Chief Technical Officer
Vote.com
50 Water St.
South Norwalk, CT. 06854
203-854-9912 x.231
-Original Message-
From: PHPSpooky [mailto:[EMAIL PROTECTED]
Sent: Friday, June 06, 2003 11:16 AM
To: [
explains how having cookies
turned off limits your enjoyment of the site, but doesn't require cookie
activation nor does use third party cookies, thank G-d..
Carl Furst
-Original Message-
From: Monty [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 3:08 AM
To: [EMAIL PROT
over, like checking
for valid email addresses, or even phone numbers (which is a tricky little
@#$%^#). Is there a PHP function that checks emails? That would be neat.
Carl Furst
System Developer
Vote.com
50 Water St.
South Norwalk, CT. 06854
203-854-9912 x.231
-Original Message-
From: No
7;t
afford as much flexibility in some cases as regular expressions do
(str_replace for replacing multiple spaces, for example).
If it's something simple that you know a PHP function can take of, use it.
If not, use regexps. They may take a bit more tweaking, but in the long run
are much m
u have an editor like bbedit on the mac
or UltraEdit on the PC it will make your life SO much easier. Especially if
you are a database massager, oh man the hours I have saved!
C.
-Original Message-
From: Noah [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 12:34 PM
To: Carl F
Exactly!!
"checking for sendmail... no"
I've browsed the configure's help and I can't find an option to specify
the path to sendmail (which is not at a regular place as we run qmail).
Is the a "--with-sendmail-path" option or something like that?
Thanks a lo
I just upgraded to php 4.3.0 and all by bulletin board are now returning
error about the mail function:
Fatal error: Call to undefined function: mail() in
/var/wwwx/htdocs/forum/private.php on line 687
I've checked in the pear list of installed packages and I have the
latest mail (1.0.2).
I'
a value to an attribute without
replacing existing ones, but if I have to make two function calls I've
lost the crucial feature, which is atomicity, and reintroduced the race
condition.
Is there any good solution here?
TIA for any advice,
Carl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Actually they aren't there. The bottom of the page says "There are no user
contributed notes for this page." on every page.
Carl
-Original Message-
From: Ernest E Vogelsinger [mailto:ernest@;vogelsinger.at]
Sent: Monday, November 11, 2002 3:34 PM
To: [EMAIL PROTEC
. It's
a quick and dirty way of printing reports that I use in our DOS based
accounting system.
Carl
On Thursday 31 October 2002 10:08 am, Jeff Bluemel wrote:
> is there a php command that could determine if the end of a page has been
> reached according to their print driver? I'
But then you would have to rely on the end user having a working email
client and working email account. Plus with submitting to a PHP script you
can process and format the form to fit your exact needs.
Carl
-Original Message-
From: Chris Boget [mailto:[EMAIL PROTECTED]]
Sent: Tuesday
Hello everyone,
First off, I've tried every option to get this working I could find in the
past few days. I am trying to use the php4apache2.dll as a module in apache.
I've tried changing the quotations and the direction of the slashes on the
LoadModule line in the httpd.conf file. I've also trie
bugging me for a while
now ive searched high and low im sure its possible because a lot of people
have said it is.
Save me from a mental breakdown!
Thanks,
Carl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have a guest book , and I want to make sure that those people who sign the
guest book can't impersonate a member of the web site. the code below
checks the input string, which is the guestbook signer's name, against a
list of defined web site members. Is there any way to circumvent the code
as
res_
that you have a line that sets the maximum file size in your form:
"
So perhaps it may fail if I move these pages to a different server/php
combo.
Carl
On Thu, 4 Apr 2002, Martin Towell wrote:
> >
> https://skunkWerkz.hosting-advantage.com/superSecretTesting/updateAdmin/
Nevermind, I spoke too soon.
Carl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
rectly to
skunkWerkz.hosting-advantage.com
directly.
But I've been running some tests and it looks as if when I go
through
https://www.imperialthrust.com/superSecretTesting/updateAdmin/MP3_Add.php,
for some strange reason, jpegs and gifs are now able to be uploaded. It
appears to be working, bu
://skunkWerkz.hosting-advantage.com/superSecretTesting/updateAdmin/MP3_Add.php
Carl
On Wed, 3 Apr 2002, Miguel Cruz wrote:
> On Wed, 3 Apr 2002, Carl Schmidt wrote:
> > Thank you for the code snippets. Unfortunately the problem is that I
> > can'tget far enough to process the file
I copied index.html to index.gif, and it uploaded fine as index.gif to the
appropirate
directory.
Carl
On Wed, 3 Apr 2002, Miguel Cruz wrote:
> On Wed, 3 Apr 2002, Carl Schmidt wrote:
> > Thank you for the code snippets. Unfortunately the problem is that I
> > can'tget f
i can't
process anything since, as far as php is concerned, it appears nothing is
uploaded.
Carl
On Wed, 3 Apr 2002, Bob wrote:
> Uhh, yeah, I forgot the getImage function part of the file.. Sorry about
> that.. Here it is..
>
> function getImage( $image, $newName = false
I believe my web host has Apache/Php combo running on Linux. I don't
believe I'm using any funky characters, and definately no spaces. Here's
one of the files I'm trying to upload:
F:\Personal\Band\Site\images\HomePage01_03.jpg
Carl
On Wed, 3 Apr 2002, Dennis Moore wr
the tag look like this:
>
> enctype=\"multipart/form-data\">
>
> The enctype is the part I'm wondering about.. The action and method would be
> your own or course..
>
> Later,
>
> Bob
>
> - Original Message -
> From: "Carl Schmidt
load
other things like mp3s and text files and such.
Carl
On Wed, 3 Apr 2002, Bob wrote:
> Did you try passive mode FTP?
>
> Later,
> Bob
>
> - Original Message -
> From: "Carl" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wedne
I can initaite an upload from the browser. However, once the php acript
attempts to process the uploaded file, it failswhen I test for
is_uploaded_file. i also printed out the value of tmp_name and it was set
to none.
Carl
On Wed, 3 Apr 2002, Miguel Cruz wrote:
> On Wed, 3 Apr 2002, C
I'm able to successfully upload mp3s and text files to the server, but
for some reason it won't let me upload jpegs or gifs? Is that a server
configuration thing?
Carl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Nevermind, dumb mistake on my part. I need some HTML 101
__
Carl Schmidt | Developer |
Latitude360.com a division of RWD Technologies,Inc. |
[EMAIL PROTECTED] |
877.9LAT360 | 410.869.7025 |
-Original Message-
From: Rick Emery [mailto
yes. the SRC=/home/website/testingArea/images/
Should I just make it http://website.com/testingArea/images/
instead?
__
Carl Schmidt | Developer |
Latitude360.com a division of RWD Technologies,Inc. |
[EMAIL PROTECTED] |
877.9LAT360
SITE_LOCATION=testingArea/
The image will not display. I have tried with and without the /home at the
beginning and neither one works. What's going on ?
Carl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
problems" in the subject line it may get ignored.
__
Carl Schmidt | Developer |
Latitude360.com a division of RWD Technologies,Inc. |
[EMAIL PROTECTED] |
877.9LAT360 | 410.869.7025 |
-Original Message-
From: Rick Emery [mailto:[EMAIL PROTECT
problems" in the subject line it may get ignored.
Carl
Rick Emery wrote:
> what do you mean "timeout"?
> What is timing out?
>
> -Original Message-
> From: Carl Schmidt [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 02, 2002 8:25 AM
> To: [EMAIL PROTECTED]
Is there an HTTP tag in the header that can be sent to tell the browser
not to timeout? I found the HTTP spec page, but I'm not sure what to
look for.
Carl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Craps out after just about 30 seconds.
What am I missing here?
Carl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Now I'm looking to find 1 or more digits in an input:
preg_match("[[:digit:]]",$valToEval);
I'm passing the value "12" and this thing still returns 0. What's going on?
Carl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e working individually, but as soon as I combine
them, it no longer works. What's going on here?
Carl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ache source you
should compile php as a shared apache module: use --with-apxs or
--with-apxs2 depending whether you're using Apache 1.x or 2.x.
Carl
>
> |
> |--- Juni Adi <[EMAIL PROTECTED]> wrote:
> |> Hello,
> |>
> |> I'm new to PHP (actually I
ploaded:
chmod($filename, 0644);
Carl
On Thu, 17 Jan 2002, Justin French wrote:
> Hi,
>
> I have a script which uploads an image to a directory within web root
> (on Redhat 7.0). Whilst the dir itself was created via FTP, the images
> of course have been written to the dir via
Most lists that I subscribe to block all messages except from subscribers.
This whould be a great feature for the PHP lists. The PHP lists are the
worst spamming lists.
Carl
> -Original Message-
> From: The Doctor [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 18, 200
I need some help passing a variable to a popup window. The following form
collects input from the user and stores it in the variable $summary.
";
$summary = "Hellow universe";
print " ";
print "";
print "";
?>
When you click on the "Try This" button, hint.php opens up in another,
smaller windo
78 matches
Mail list logo