> if($thisRow % 2 == "0"){
Should be: if(($thisRow % 2) == 0){
Regards,
Justin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi, i have problem in my script, this error is Permission Danied (13)
"full",
"originator" => "33",
"urn" => "2528",
"surname" => "appleton",
"submit" => "submit"
);
//build the post string
foreach($formdata AS
i have changed the script around a bit, now it actually shows something, but
it doesnt alternate.
$thisRow = "0";
$query = mysql_query("SELECT * FROM security_images ORDER BY ID DESC",
$conn);
while($gt=mysql_fetch_array($query)){
extract($gt);
if($thisRow % 2 == "0"){
$backgroundColor = "#CC
On Fri, 10 Dec 2004 22:00:43 +, KJ <[EMAIL PROTECTED]> wrote:
> Let me try to paint another simple senario:
>
> 1. You have a shared hosting account with example.com hosted on it.
> 2. You want a guestbook setup on it, and you've found one that you like.
> 3. You install "phpMyFantasticGuestbo
Sorry, Greg for sending this to you personally.
I also forgot to leave a link of a PHP Unit Testing Suite.
www.lastcraft.com/simple_test.php - Simple Test
Regards,
Justin
-Original Message-
From: Justin Palmer [mailto:[EMAIL PROTECTED]
Sent: Friday, December 10, 2004 7:51 PM
To: 'G
Hi,
It is simple. Only you need setup an incoming connection in network connection.
Note that this is not PHP/APACHE matter it is Windows matter. You can
find detailed guide in Windows Forums.
- Sadeq
On Fri, 10 Dec 2004 17:34:56 -0800 (PST), Police Trainee
<[EMAIL PROTECTED]> wrote:
> Hello. I h
I l wrote:
> Lets say you want to store someones picture.
Okay.
> In the database, you would insert the picture, who owns that picture,
> maybe
> the ip address and request headers of where that picture came from, the
> category, sub-category, sub-sub-category in which the picture belongs to,
> e
Hello,
Phpdiscuss - Php Newsgroups And Mailing Lists wrote:
I have a dedicated Red Hat linux boxed leased from Interland and the php
mail function does not work. I have found several articles on things to
try and have tried everything I saw but to no avail. I set up a php
script to mail and then
> I have a dedicated Red Hat linux boxed leased from Interland and the php
> mail function does not work. I have found several articles on things to
> try and have tried everything I saw but to no avail. I set up a php
> script to mail and then print the return code and I get a 1 (success).
> But
On Fri, 10 Dec 2004 18:27:12 -0600, Ryan King <[EMAIL PROTECTED]> wrote:
> Yeah, but in the case of the Linux kernel there's no programming
> language that is both OO and close enough to the metal to program a
> kernel (other than maybe Forth??).
C++, being a superset of C, would certainly be 'clo
Hello,
Minghua Yao wrote:
Does anybody know how to post form-data to a host using PHP? Thanks for the answer.
You may want to try this HTTP client class that can post forms including
uploading files if necessary:
http://www.phpclasses.org/httpclient
--
Regards,
Manuel Lemos
PHP Classes - Free rea
I beleive the performance hit is much higher than the %2 increase you
are refering to:
$ cat /.../loadtest.php
$ ./ab -n 1000 -c 50 http://.../loadtest.php
Time taken for tests: 1.653 seconds
Complete requests: 1000
...
Requests per second:604.96 [#/sec] (mean)
Time per request:
Hi,
Saturday, December 11, 2004, 8:16:44 AM, you wrote:
BBBM> Hi you all,
BBBM> is that possible using .htaccess to redirect every request to a
BBBM> specified script?
BBBM> for example if you have:
BBBM> http://www.yoursite.com/en/articles/blab.html
BBBM> where there isn't a en dir., so it w
I have a dedicated Red Hat linux boxed leased from Interland and the php
mail function does not work. I have found several articles on things to
try and have tried everything I saw but to no avail. I set up a php
script to mail and then print the return code and I get a 1 (success).
But the mail
I have a dedicated Red Hat linux boxed leased from Interland and the php
mail function does not work. I have found several articles on things to
try and have tried everything I saw but to no avail. I set up a php
script to mail and then print the return code and I get a 1 (success).
But the mail
Hello. I have a computer at my office running Apache
that I use to run PHP scripts with using
http://localhost.
Is there anyway I can set up my computer to allow me
to dial-in from home and use the webserver and my php
applications?
It is a win 98 system with tcp/ip.
_
Brad Ciszewski wrote:
i need some assistance making my table (rows) change color for every other
data. here is what i have so far, but i get a "unexpected T_STRING error".
this error's line is: if($thisRow mode 2 == 0){
I beleive you want
if($thisRow % 2 == 0)
not
if($thisRow mode 2 == 0)
http://us
I have a dedicated Red Hat linux boxed leased from Interland and the php
mail function does not work. I have found several articles on things to
try and have tried everything I saw but to no avail. I set up a php
script to mail and then print the return code and I get a 1 (success).
But the mail
Please note that I am specifically *not* weighing in on the OO vs.
procedural religious war, but only wanted to make a couple of small
comments. :)
Richard Lynch wrote:
> I spend a *LOT* more time, digging through endless class files, of
> what are essentially name-spaces of singleton "objects" tr
John Nichel wrote:
blackwater dev wrote:
Thanks John,
I tried the rpm and it throws errors that it can't find the php
package required by:
php-mysql
php-imap
php-idap
php-mbstring.
Thanks!
RPM and other binary informations suck. Remove them and install from
source code.
--
Raditha Dissanayake.
-
On Fri, 10 Dec 2004 17:38:13 -0500, John Holmes
<[EMAIL PROTECTED]> wrote:
> strip_tags() is a rather worthless function, if you ask me.
strip_tags() is pretty handy when scraping another site. Like the
other day I was asked to grab some links off a site where there was no
RSS feed available.. I
[EMAIL PROTECTED] wrote:
> Quoting I l <[EMAIL PROTECTED]>:
>> So, you would prefer storing the uploaded file in your directory than a
>> database? Have you tried either method?
>
> And, by the way, once you upload it into a database, it's not a file.
> It's just
> a data field.
Actually, internal
On Dec 10, 2004, at 3:50 PM, Greg Donald wrote:
On Fri, 10 Dec 2004 10:32:30 -0800 (PST), Richard Lynch
<[EMAIL PROTECTED]> wrote:
What I do is not use classes.
I agree.
Some of the worst arguments for OO I've heard recently:
"OO programming lets you organize your code better."
So what you're sayi
i need the script which will do this all automaticly.. i know there is a
feature to get the server which the user is from.
"Danny Brow" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Thu, 2004-12-09 at 18:17 -0600, Brad Ciszewski wrote:
> > i need help to figure out the isp of
Shawn McKenzie wrote:
This is my first adventure with mcrypt and also the sqlite stuff.
Via file upload I am getting a SQL dump file and running it as a query
to insert data into a sqlite db. This works great.
Then I am trying to use an update query to encrypt fields in all rows by
using the sqlit
i need some assistance making my table (rows) change color for every other
data. here is what i have so far, but i get a "unexpected T_STRING error".
this error's line is: if($thisRow mode 2 == 0){
+=+=+ SCRIPT BELOW +=+=+
$thisRow = 0;
$query = mysql_query("SELECT * FROM security_images ORDER
On Dec 10, 2004, at 4:17 PM, Greg Beaver wrote:
The biggest hogs in php programming are:
1) unnecessary images and animated crap/unnecessary javascript
2) terrible database usage
3) too much complexity in the design
I would like to add
0) Compilation. Many scripts take longer to compile than execut
I realize that I can use the strip_tags function to remove HTML. But I
don't want to remove HTML tags. I just want to make sure all open HTML tags
are closed. For example if they user submits HTML with a tag and
never closes it, then the rest of the page will look screwed up. I still
want
thanks for the help. i do have a question.. say instead of 2 keys in the
array there are 3 or 4.. how would that be done?
i do not know much about arrays so i am trying to learn.
thanks.
- Original Message -
From: "Craig Slusher" <[EMAIL PROTECTED]>
To: "Sebastian" <[EMAIL PROTECTED]>
C
could header("Location: urlhere") be an alternative?
jonel
http://www.road14.com
http://www.filipinosrus.com
--
I not know English well, but I know 7 computer languages.
anonymous
On Dec 10, 2004, at 4:16 PM, Bruno B B Magalhães wr
Richard Lynch wrote:
Now in each instance register globals was on and all that was needed to
You should turn register_globals off, first of all.
True, ideally register globals should be off.
Secondly, something is very very very wrong in your analysis.
No it isn't.
If this line of code gets execute
Chris Mason wrote:
> I have an internal application requirement to generate a webpage that
> lists
> media files (movies) on our linux server and when the user clicks the name
> of the file on the webpage, launch the application on the local machine
> playing the correct file. How can I accomplish
Quoting Richard Lynch <[EMAIL PROTECTED]>:
> Actually, internally, it *is* a file, or part of a file, depending on the
> database implementation details. (*)
Part of a file? Usually. A file? Rarely.
And as part of a file, it is likely to be accessed using a more poorly chosen
I/O model than if
> Does anybody have any tips or links for creating a system for managing
> user's passwords. I want to make it so that when a user is created, an
> email is sent with a link that allows them to set their password. The
> link should only work for a set amount of time. I have ideas for
> implementing
Mike Francis wrote:
> Hi,
> I am having a problem connecting to a MySQL database via PHP.
>
> I have Apache 2.0.52, PHP 5.0.2 and MySQL 4.1 installed and working OK
> individually.
> I have copied phpmysql.dll and mysqli.dll at different times to
> Windows/System32.
> I have set up a successful MyO
Stuart Felenstein wrote:
>
> --- Jason Wong <[EMAIL PROTECTED]> wrote:
>
>> > Nothing is printing out on $_POST['var'] or $var
>> > s makes sense.
>>
>> Now why are you looking in $_POST for your form
>> values? They're in $_GET. You
>> said earlier that you understood POST and GET?
>
> I made the
Shawn McKenzie wrote:
> This is my first adventure with mcrypt and also the sqlite stuff.
>
> Via file upload I am getting a SQL dump file and running it as a query
> to insert data into a sqlite db. This works great.
>
> Then I am trying to use an update query to encrypt fields in all rows by
> u
Hi,
Have you ever written a project and then moved to the next noticing that
you are doing some of the same things from last project (connecting to a
database, reading a file, writing to a file, etc...)?
Have either of you ever written a for loop? Of course, you have.
Have you ever written the f
> Have you ever written a project and then moved to the next noticing that
> you are doing some of the same things from last project (connecting to a
> database, reading a file, writing to a file, etc...)?
Not quite the same thing.
When it is exactly the same thing, I just copy & paste the code.
Is anyone using one of the flash data grids within their php
application? I am looking to do the same thing but didn't know if it
is more work than it's worth.
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Wil Hitchman wrote:
> I created a web form in PHP and used a couple of email addresses. The
> only email address that worked when I submitted to the form (for testing
> purposes) was my Yahoo address. My AOL, hotmail and other work addresses
> did not work. Can someone tell me why?
Technically,
blackwater dev wrote:
I am a linux newbie and I have php 4.3.8 and Apache 2 installed that
ws installed with the Fedora 2 install. I am getting errors that php
wasn't compiled with mysql support so now I am trying to do that but
get this error when I try to compile:
Sorry, I cannot run apxs. Poss
> From: "Richard Lynch" <[EMAIL PROTECTED]>
> Matt Palermo wrote:
> > but just make sure that ending
> > tags exist, so it doesn't screw up the rest of the page. Strip tags would
> > just wipe out the HTML rather than allowing it and ending it safely.
>
> Strip tags will allow you to wipe out *D
Yao, Minghua wrote:
Hi,
Does anybody know how to post form-data to a host using PHP? Thanks for the
answer.
-Minghua
http://www.tizag.com/phpT/forms.php Enyoj
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Richard Lynch wrote:
> Carl Michael Skog wrote:
>> I would have thought that the response from a empty php file would
>> also be empty, but, to my surprise, they consist of 3 newlines !!!
>
> I just tried this with an empty PHP file, and got exactly what I
> expected.
>
> A valid response with no c
>>Yeah, with any luck at all, your binary file will corrupt itself, and
>> then
>>make your entire database unreadable by anybody, even you.
> really? Then my companies database should be corrupt by now...right?
> Haven't
> had any problems yet. Well, its only been running for 2 years now.
Search
On Fri, 10 Dec 2004 17:17:53 -0500, Greg Beaver <[EMAIL PROTECTED]> wrote:
> yep, unless the function names happen to conflict with ones you've
> already written.
for file in *.php; do
cp $file $file.tmp
sed -e "s/bad/good/g" $file.tmp >$file
rm $file.tmp
done
--
Greg Donald
Zend Certified Engi
[snip]
Does anybody know how to post form-data to a host using PHP? Thanks for
the answer.
[/snip]
Yes. You're welcome.
You may want to Google for PHP tutorials. They're easy and go step by
step.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsu
Bruno B B Magalhães wrote:
> Hi guys,
>
> As part of my framework I have a URI decoder so it explode, remove
> unnecessary data (as GET query) amd put it into an array...
>
> Is there any better way of doing this (faster?), just wondering.
>
> if(isset($_SERVER['REQUEST_URI']) === tru
Hi you all,
is that possible using .htaccess to redirect every request to a
specified script?
for example if you have:
http://www.yoursite.com/en/articles/blab.html
where there isn't a en dir., so it would be redirected to
public_html/site
I could use error page, but it won't receive post, get, c
Greg Donald wrote:
with it, but I will go grab a PEAR module if it fits my needs. Code
re-use may be the only redeeming quality of OO programming, and
honestly I can re-use your code from a non-OO include file just as
easily.
yep, unless the function names happen to conflict with ones you've
alrea
On Fri, 10 Dec 2004 14:07:21 -0800, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> And, by the way, once you upload it into a database, it's not a file. It's
> just
> a data field.
And the data fields are just files on the file system. Look at the
way Postgres stores data.
The filesystem itsel
KJ wrote:
> OK, apologies on my part, I did not correctly explian the problem which
> can and has arisen from remote includes.
>
> I'll try to explain the problem that I have come across twice in the
> last couple of years both with popular software packages that I
> downloaded like thousands of ot
OK, I don't think you've read my posts in much detail at all. I looks as
though you have skimmed over them and got a pre-determined idea of my
issue in your head.
Not once have I mentioned anything about "customers" in my posts. I'm
not a web host. I'm not talking about people who have access t
On Fri, 10 Dec 2004 13:04:49 -0800, Justin Palmer
<[EMAIL PROTECTED]> wrote:
> What if you were to build an application around the MySQL database. You
> have just finished the project and you are taking it to your boss. You
> get there and then your boss says, "you know what I would rather use
>
Yeah, with any luck at all, your binary file will corrupt itself, and then
make your entire database unreadable by anybody, even you.
really? Then my companies database should be corrupt by now...right? Haven't
had any problems yet. Well, its only been running for 2 years now.
I l wrote:
> the b
On Fri, 10 Dec 2004 10:32:30 -0800 (PST), Richard Lynch <[EMAIL PROTECTED]>
wrote:
> What I do is not use classes.
I agree.
Some of the worst arguments for OO I've heard recently:
"OO programming lets you organize your code better."
So what you're saying is that you're not capable of organizing
I l wrote:
> the best security practice is to store the jpg file or any other uploaded
> file in your mySql database. This way you never have to worry about
> someone
> executing php by the url like www.example.com/pic.jpg. To view the file,
> the
> user would type www.example.com/veiw.php?fileID=3
Hi,
Does anybody know how to post form-data to a host using PHP? Thanks for the
answer.
-Minghua
Carl Michael Skog wrote:
> Some strange results with spurious newlines inserted in the response when
> requesting a php file has led me to investigating what happens when a
> completely empty php-file is requested.
>
> I would have thought that the response from a empty php file would also be
> emp
Matt Palermo wrote:
> I would like to leave any HTML in there,
Do you *TRUST* the people typing the HTML to not attack your server, or
others, with cross-site scripting attacks?
If not, go re-read the manual about strip_tags, and pay particular
attention to the second, optional, argument.
> but
Raymond C. Rodgers wrote:
> Having previously built PHP 4.x on OpenBSD 3.x in the past, I'm running
> into some difficulties configuring PHP 5.0.2 currently. On a fresh
> install of OpenBSD, I have confirmed installation of libpng 1.2.5p5, but
> no matter what png related switch ("--with-png-dir="
Hi guys,
As part of my framework I have a URI decoder so it explode, remove
unnecessary data (as GET query) amd put it into an array...
Is there any better way of doing this (faster?), just wondering.
if(isset($_SERVER['REQUEST_URI']) === true)
{
Quoting I l <[EMAIL PROTECTED]>:
> So, you would prefer storing the uploaded file in your directory than a
> database? Have you tried either method?
And, by the way, once you upload it into a database, it's not a file. It's just
a data field.
--
PHP General Mailing List (http://www.php.net/)
To
Quoting I l <[EMAIL PROTECTED]>:
> I never said that this method wouldn't cause you overhead. With all respect,
> I am simply stating that this method is much simpler. Sometimes you must
> choose simplicity over processing costs. What if there was another
> programmer editing your code? Or, you ca
KJ wrote:
>>
>> Basically this particular case boils down to: "files that are included
>> and
>> should not a be called directly" should not be allowed to be called
>> directly.
>>
>> You can do this at the application level whereby each included file
>> checks
>> whether it was called directly and
Francis Mak wrote:
>> What happens in your application if you just do:
>>
>> mysql_query("SET CHARACTER SET utf8", $connection) or
>> die(mysql_error());
>>
>> right after you connect to the database?
>
> Thank you, by adding mysql_query("SET CHARACTER SET utf8", $connection),
> it
> works now. Ho
Quoting I l <[EMAIL PROTECTED]>:
> Lets say you want to store someones picture.
>
> In the database, you would insert the picture, who owns that picture, maybe
> the ip address and request headers of where that picture came from, the
> category, sub-category, sub-sub-category in which the picture
I never said that this method wouldn't cause you overhead. With all respect,
I am simply stating that this method is much simpler. Sometimes you must
choose simplicity over processing costs. What if there was another
programmer editing your code? Or, you came back to the same code after one
yea
Shaun wrote:
> I have a system that scans through a CSV File and inserts each row into a
> database. I have just noticed that some rows have a return character in
> them - a small square - and this is causing errors in the mysql query.
>
> Does anyone know how I can remove such chracters?
Might I
>> I always forget, because they changed it around on POST/GLOBALS/etc at
>> some point, but only on some of them. Grrr.
>
> The built-in arrays with names beginning $_ are "superglobals", i.e.
> always
> global anyway. The only other "superglobal" is $GLOBALS, which is a
> anming
> exception bec
I l wrote:
Lets say you want to store someones picture.
In the database, you would insert the picture, who owns that picture,
maybe the ip address and request headers of where that picture came
from, the category, sub-category, sub-sub-category in which the picture
belongs to, etc. You can gathe
Lets say you want to store someones picture.
In the database, you would insert the picture, who owns that picture, maybe
the ip address and request headers of where that picture came from, the
category, sub-category, sub-sub-category in which the picture belongs to,
etc. You can gather and store
M. Sokolewicz wrote:
>> Hi ive tried this script and it doesnt seem to work for me. I have typed
>> exactly the same username and password in the script..it keeps on asking
>> for
>> the username and password..pls help...cud this be due to a setting in
>> the
>> php or apache server...am using php
This is my first adventure with mcrypt and also the sqlite stuff.
Via file upload I am getting a SQL dump file and running it as a query
to insert data into a sqlite db. This works great.
Then I am trying to use an update query to encrypt fields in all rows by
using the sqlite_create_function to r
--- Jason Wong <[EMAIL PROTECTED]> wrote:
> > Nothing is printing out on $_POST['var'] or $var
> > s makes sense.
>
> Now why are you looking in $_POST for your form
> values? They're in $_GET. You
> said earlier that you understood POST and GET?
I made the correction , using $_GET now. Value
[EMAIL PROTECTED] wrote:
> Hi,
> I have been having problems trying to get file uploads working with
> PHP in a Debian Linux enviroment. I have ensured that both the temporary
> directory PHP uploads use has the appropriate permissions set, as well
> as the folder I am attempting to copy the im
Hi,
I am having a problem connecting to a MySQL database via PHP.
I have Apache 2.0.52, PHP 5.0.2 and MySQL 4.1 installed and working OK
individually.
I have copied phpmysql.dll and mysqli.dll at different times to
Windows/System32.
I have set up a successful MyODBC connection with the database
Quoting I l <[EMAIL PROTECTED]>:
> And finally, file management is much much easier when you store the files in
> a database.
There is a kind of database that is perfectly designed and equipped to store
files, and their very specific metadata properties, optimized for the correct
sort of access.
I agree with the fact that apache is very secure. I also agree with you that
you shouldn't be 100% comfortable with apache security because there is
always a chance of a security flaw.
But, how many beginner and intermediate PHP developers really know how to
configure Apache for optimal securit
> What are some of the things you guys do to get around the
> fact that classes in php4 can't do multiple inheritance?
What I do is not use classes.
At all.
:-)
As a Lisp programmer of over a decade, I think I can safely say I am an OO
proponent.
Yet, every time I sit down to program a web app
Does anybody have any tips or links for creating a system for managing
user's passwords. I want to make it so that when a user is created, an
email is sent with a link that allows them to set their password. The
link should only work for a set amount of time. I have ideas for
implementing someth
foreach ($animal_counts as $animal => $total) {
echo $animal. ':' .$total. '';
}
On Fri, 10 Dec 2004 13:51:36 -0500, Sebastian
<[EMAIL PROTECTED]> wrote:
> actually, what i mean is i need to get the animal name as well..
>
> ie:
> echo $animal . ' : ' . $total
> would output:
>
> :
> :
What about using just the file command and then looping through the array?
I do this to scrape sites for content (pics, midi's, fonts) by getting the
links from within the html code and using the wwwcopy function in the php
docs.
I am sure there is a better way to do the pattern recognition but t
I am sorry for you, Richard, for the vast miss-understanding of OO.
Regards,
Justin Palmer
__
KISS (Keep It Simple, SEARCH)!
Google::getUri( http://www.google.com );
Archives::getUri( http://marc.theaimsgroup.com/?l=php-general );
-Original Message-
From: Richar
Richard,
Thank you for that.
I've been writing PHP apps for a while now but would not concider myself an
"expert". I just enjoy doing it and I know a fair bit about what I'm doing.
One thing I never quite got into (with PHP) is OO. Why - because nothing I
ever did really seemed to make sense as O
I am sorry for you Richard for the vast miss-understanding of OO.
Regards,
Justin Palmer
__
KISS (Keep It Simple, SEARCH)!
Google::getUri( http://www.google.com );
Archives::getUri( http://marc.theaimsgroup.com/?l=php-general );
-Original Message-
From: Richard
actually, what i mean is i need to get the animal name as well..
ie:
echo $animal . ' : ' . $total
would output:
:
:
etc. thanks.
- Original Message -
From: "Sebastian" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 10, 2004 12:24 PM
Subject: [PHP] array_merge_
Oops missed part of your question;
> know what function to use to grab the page. for the string
http://us2.php.net/manual/en/function.fopen.php
There are some good samples on the page
$dh = fopen("$url",'r');
$result = fread($dh,8192);
Hope
I suspect that you don't really want to cut out everything but the text
(since you plan to display it) but check out;
http://us2.php.net/manual/en/function.strip-tags.php
Now, keep in mind that since you are getting the source from the url, and
I'm guessing that the web server serving up the sour
Hi.
I am using this array_merge_recursive to merge two arrays, the array looks
like this:
Array
(
[0] => Array
(
[animal] => Dogs
[total] => 5
)
[1] => Array
(
[animal] => Cats
[total] => 3
)
[2] => Arr
Sebastian wrote:
> Hi.
>
> I am using this array_merge_recursive to merge two arrays, the array looks
> like this:
>
> Array
> (
> [0] => Array
> (
> [animal] => Dogs
> [total] => 5
>
> )
>
> [1] => Array
> (
> [animal] => Cats
I managed to solve the problem with the socket client hanging when the
Server "disappears".
Actually, it is not hanging. What I discovered is that once the other
end of the connection drops, it starts/continues reading on that socket
ad infinitum. (I put a little counter in it, and can watch it
Hey, thanks for looking.
I would like to implement some sort of encryption to mask user id's.
I looked at the example on the PHP website:
http://au.php.net/manual/en/function.mcrypt-cfb.php
This is exactly what I need. It does not quite work as the top post in that
page suggests.
Can anyone sug
Hi, I don't know what functions to use so maybe someone can help me out.
I want to grab a URL's source (all the code from a link) and then cut out
a block of text from it, throw it away, and then show the page.
For example, if I have page.html with 3 lines:
hi
this is line a
this is line b
On Saturday 11 December 2004 00:19, Stuart Felenstein wrote:
> > > $queryString = ($_SERVER['QUERY_STRING']);
> >
> > What is in $queryString after this? var_dump() it
> > and show us the result.
>
> This is the var_dump of the query string after I've
> made some selections in the page.
> string(
Just want to double check that you're using the correct array in $_POST!
Are you using ? If not then you should be using
$_GET, not $_POST.
$_SERVER['REQUEST_METHOD'] will have the method that you are using,
remember to use the corresponding pre-defined variables.
KJ
Stuart Felenstein wrote:
--
What are some of the things you guys do to get around the
fact that classes in php4 can't do multiple inheritance?
thnx,
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Greg Donald wrote:
On Fri, 10 Dec 2004 10:10:20 -, Shaun <[EMAIL PROTECTED]> wrote:
I have a system that scans through a CSV File and inserts each row into a
database. I have just noticed that some rows have a return character in
them - a small square - and this is causing errors in the mysql q
All the suggestions made earlier make sense. You could use a regular
expression or a str_replace() if you knew what you were looking for. And as
someone mentioned, depending on your data set, you might want to use trim() (or
the left or right variety thereof).
When dealing with a single line
1 - 100 of 134 matches
Mail list logo