Dotan Cohen <[EMAIL PROTECTED]> writes:
> I don't really like CAPTCHA's. I'm filtering the content now, which is
> in my opinion better anyway. In my university one of the computer
> science projects (for an assignment!) is to break CAPTCHA's. Jpg-> bmp
> and once it's a bmp the white noise and li
On Thu, 2005-08-25 at 00:19, George B wrote:
> Robert Cummings wrote:
> > On Thu, 2005-08-25 at 00:10, George B wrote:
> >
> >>Ok, I am doing a sort of a project right now... It is like a php chat
> >>room that records every message into a database. Now, on the first post
> >>I want it to like s
Robert Cummings wrote:
On Thu, 2005-08-25 at 00:10, George B wrote:
Ok, I am doing a sort of a project right now... It is like a php chat
room that records every message into a database. Now, on the first post
I want it to like set the name, so on first post it would say Name: and
you set you
On Thu, 2005-08-25 at 00:10, George B wrote:
> Ok, I am doing a sort of a project right now... It is like a php chat
> room that records every message into a database. Now, on the first post
> I want it to like set the name, so on first post it would say Name: and
> you set your name, then on ev
Ok, I am doing a sort of a project right now... It is like a php chat
room that records every message into a database. Now, on the first post
I want it to like set the name, so on first post it would say Name: and
you set your name, then on every other message you post it just says
Posted by an
Robert Cummings wrote:
On Wed, 2005-08-24 at 23:12, Jasper Bryant-Greene wrote:
Graham Anderson wrote:
Is there a way to loop thru all of these GET requests by:
putting the GET variables into an array
processing the variable strings with trim/striptags/etc in a loop
exploding the variables b
On Wed, 2005-08-24 at 23:12, Jasper Bryant-Greene wrote:
> Graham Anderson wrote:
> > Is there a way to loop thru all of these GET requests by:
> > putting the GET variables into an array
> > processing the variable strings with trim/striptags/etc in a loop
> > exploding the variables back out int
On Wed, 2005-08-24 at 23:06, Graham Anderson wrote:
> Is there a way to loop thru all of these GET requests by:
> putting the GET variables into an array
> processing the variable strings with trim/striptags/etc in a loop
> exploding the variables back out into separate variables
>
> otherwise th
Graham Anderson wrote:
Is there a way to loop thru all of these GET requests by:
putting the GET variables into an array
processing the variable strings with trim/striptags/etc in a loop
exploding the variables back out into separate variables
I just do this:
function process_user_input($valu
Is there a way to loop thru all of these GET requests by:
putting the GET variables into an array
processing the variable strings with trim/striptags/etc in a loop
exploding the variables back out into separate variables
otherwise this gets a bit tedious :(
many thanks in advance
g
$userID =
Hi
I am try to create a generic function that takes any mysql found set
and creates and custom tiered xml list
The below works but seems a bit kludgy :(
Code synopsis: If we are are on a new row and the first value in that
row , , is different...then do something
Is there a cleaner and more
> Chris is a dude who has helped me and a lot of others dozens of times
> on this list as he is a regular contributer to this list, he really
> knows his stuff...if you decide to go with him you'll be getting your
> money's worth for sure.
>
> If you cant afford to hire him, he has some really go
Is there a technical reason why PHP does not allow comparison operator
expressions like the following:
if (2 < $x <= 4) {}
I prefer this concise way as it is common for mathematics expressions, and
much easier to grasp physically on first glance. From what I can tell, this
expression can cur
When I run a script from a package I download, it always
bombs out on this section. I think that its getting
the wrong parameters when it tries to make the Connection.
I use PostgreSQL as my DB.Moodle is the name of the database and
the user is moodleuser. I do not have a password on this DB.
//==
General question,
Is there a technical reason why PHP does not allow comparison
operator expressions like the following:
if (2 < $x <= 4) {}
I prefer this concise way as it is common for mathematics
expressions, and much easier to grasp physically on first glance.
From what I can tell,
Pablo Gosse wrote:
> Hi, Edin. Okay. I did things a little differently, and lo and behold,
> you are correct. ini changes are now taking effect.
>
> And the hanging results I was getting earlier were indeed the system
> looking for the two dll files you mention below.
>
> Eternally grateful.
Pablo Gosse wrote:
> I've tried that and that just results in PHP grinding to a halt. Any
> requests to PHP pages simply result in "Document contains no data"
> errors.
Have you added c:\php to your system PATH?
Edin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
Pablo Gosse wrote:
> to no effect. It's simply not reading the changes. I've even commented
> out the openssl and curl lines, and am now just changing the value of
> allow_url_fopen to Off, but that's not working.
One thing at a time :)
Put php.ini in your windows dir, and it will be read from t
On Wed, 2005-08-24 at 23:30 +0200, Edin Kadibasic wrote:
> Pablo Gosse wrote:
> > I've tried that and that just results in PHP grinding to a halt. Any
> > requests to PHP pages simply result in "Document contains no data"
> > errors.
>
> Have you added c:\php to your system PATH?
>
> Edin
Yup.
When sending an attachment using phpmail the file I am trying to send
becomes a temp with a stupid name (php13c9.tmp)
Do you know is going on here?? PHP mailer attachemts are for a 'path to
file' which I am trying to provide via a file browse button ($userfile) in a
form.
Many Thanks,
R
IsSM
On Wed, 2005-08-24 at 14:05 -0400, Marco Tabini wrote:
> On 8/24/05 11:39 AM, "Pablo Gosse" <[EMAIL PROTECTED]> wrote:
>
> > Can anyone give any insight into what might be going wrong here?
>
> I think you just need to move your php.ini file to C:\WINDOWS... PHP is
> looking for it there.
>
> Ch
Yes, simplexml can do this easily. See:
http://www.php.net/simplexml
Example 7. Setting values
Data in SimpleXML doesn't have to be constant. The object allows
for manipulation of all of its elements.
movie[0]->characters->character[0]->name = 'Miss Coder';
echo $xml->asXML();
?>
The abov
Hello Mark,
first of all, thank you (all) a lot for your contributions...
>Are you sure you are connecting? As in, do you only try to bind if you
>have
>a successful connection?
(...) I try to bind only when the connection itself is established...
>Have you checked ldap_error?
"Can't contact LD
On 8/24/05 11:39 AM, "Pablo Gosse" <[EMAIL PROTECTED]> wrote:
> Can anyone give any insight into what might be going wrong here?
I think you just need to move your php.ini file to C:\WINDOWS... PHP is
looking for it there.
Cheers,
Marco
--
PHP General Mailing List (http://www.php.net/)
To u
>
> Can you include the SQL statement that is creating the error?
>
> The error basically means you are trying to put more data
> into the dB then
> you have data cells for.
>
> For instance :
>
> Good sql statement:
>
> $sql = "insert into table (name, address, city, state, zip)
> VALUES (
lastest checkout from cvs repo
tag PHP_4_4 and HEAD
when zlib.output_compression=Off, response is fine
when zlib.output_compression=On. result
in a corrupted response. showing empty page in the browser
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/uns
I get an error saying
Fatal error: Function name must be a string in
c:\Inetpub\wwwroot\ssn\php_mail.php on line 11
the code
---
IsSMTP(); // telling the class to use SMTP
$mail->Host = "mail.blue-fly.co.uk"; // SMTP server
$mail->From = "[EMAIL PROTECTE
Hi Jay,
Sorry for the headache I gave ya out of aggravation :)
Now It mails me everything Except the check box info
Here is the working mail code ( This is a different page:
http://www.primarywave.com/BrokerOutpost_Contact.php )
$value) {
${$indx}=$value;
}
foreach($HTTP_POST_VARS as $indx
Can you include the SQL statement that is creating the error?
The error basically means you are trying to put more data into the dB then
you have data cells for.
For instance :
Good sql statement:
$sql = "insert into table (name, address, city, state, zip) VALUES ('$name',
'$address', '$city',
[snip]
Column count doesn't match value count at row 1
What does that mean? I have an id auto_increment and it breaks everytime
because of that error. This has never happend before...
[/snip]
This is a MySQL problem and should be asked on a MySQL list, but having
said that...
You have specifi
Column count doesn't match value count at row 1
What does that mean? I have an id auto_increment and it breaks everytime
because of that error. This has never happend before...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
I put the whole code in .txt version at
http://www.primarywave.com/NONworkingCODE.txt
I gave group & global Writing permission aswell, edit if you like.
[/snip]
In the form you have name="InterestedNumber[]" in the e-mail bit you
have $SelectedNumber. Change them to match. If you want to p
Richard Lynch wrote:
On Tue, August 23, 2005 3:52 pm, George B wrote:
You know on forums when you make a topic right away it makes like a
new
link to your topic. How do you do that in PHP?
$_POST[new_topic]";
}
?>
http://php.net/mysql_insert_id
is probably the piece of the puzzle you were
[snip]
I put the whole code in .txt version at
http://www.primarywave.com/NONworkingCODE.txt
I gave group & global Writing permission aswell, edit if you like.
[/snip]
*smacks forehead* Hello? Is this thing on? Post only the relevant code?
Can we see the source of the one that works? Only the ma
I've done a google and can't find anything on this.
I want to parse a long list of useragent strings for a web analysis script I
am writing. I could use get_browser, but firstly this would slow down my
script quite a bit and secondly I am relying on the browscap.ini file of the
newness of whic
It's too bad you have to use Windows and IIS. Just curious but why are
they not wanting to use Linux? Do they know it's free and way less likely
to be attacked?
I've made this argument numerous times. Management seemed to be receptive,
and I thought they were starting to change their "Micro
I put the whole code in .txt version at
http://www.primarywave.com/NONworkingCODE.txt
I gave group & global Writing permission aswell, edit if you like.
Thanks,
C
/[snip]
This page is the original working version I have:
http://www.primarywave.com/BrokerOutpost_Contact.php
This is the p
[snip]
Please find the whole HTML attached.
I am sending the whole page because it has multiple PHP. The affecting
PHP I
thinking is the one retaining info what to email (Line 8 to 52)
[/snip]
Please copy and paste the code into your e-mail (only the relevant
lines) as most cannot receive attach
Please find the whole HTML attached.
I am sending the whole page because it has multiple PHP. The affecting PHP I
thinking is the one retaining info what to email (Line 8 to 52)
Thanks a lot,
C
NB: If I move table named "InterestedNumber" in an Array, how should I
incorporate it in Line 34.
Hi, folks. I'm forced to work on a project using MS Access and running
on IIS on a Windows Server 2003 box.
I've uncommented the following lines in php.ini:
extension=php_curl.dll
extension=php_openssl.dll
but even after I restart IIS I'm not seeing the changes reflect when I
view the results o
[snip]
This page is the original working version I have:
http://www.primarywave.com/BrokerOutpost_Contact.php
This is the page I want to work allowing the check box values to be
reported.
http://www.primarywave.com/BrokerOutpost_ContNAGHAM.php
I kept almost everything identical so Im at loss wh
Hi Richard ,
Jay helped me with the Global setting but the problem remains the same. Can
you enlighten please?
/[snip]
If you are going to do this, you might as well just turn
register_globals back "On"
You've got the SAME security problem -- You just are doing it to
yourself instead
[snip]
Have been given the solution and applied it to the code
\n");echo
$new_string; ?>
Why does it not work?
What is the output of the echo statement?
An unwrapped string the same as before.
[/snip]
Because you didn;t follow the instructions on
http://www.php.net/wordwrap ...set the cut (4t
[snip]
I went to the php.ini File & it opened in notepad. I had this info:
==
; You should do your best to write your scripts so that they do not
require
; register_globals to be on; Using form variables as globals can easily
lead
; to possible security pro
I went to the php.ini File & it opened in notepad. I had this info:
==
; You should do your best to write your scripts so that they do not require
; register_globals to be on; Using form variables as globals can easily
lead
; to possible security problems
[snip]
it`s working for that host, but my question is.. if a user can upload
his
file on the server, despite the fact i unset all the global variables
where
the files are stored.
[/snip]
The files are stored in the designated temporary location before and
then get deleted once the process is ov
[snip]
Have been given the solution and applied it to the code
\n");echo
$new_string; ?>
Why does it not work?
[/snip]
What is the output of the echo statement?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
""Jay Blanchard"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
[snip]
doesn't work CSS acts the same way with a long unbroken string.
[/snip]
Well, you have no way of determining how many pixels wide something can
be with PHP. You might have to use JavaScript to break up the string
Hello. I need some help. I set my php to run script.php before any php
script. I want to drop uploaded files, so I did
if ((isset($_SERVER['REQUEST_METHOD'])) &&
($_SERVER['REQUEST_METHOD']=="POST")) {
unset($_FILES);
unset($HTTP_POST_FILES);
}
} else {
}
?>
Have been given the solution and applied it to the code
\n");echo
$new_string; ?>
Why does it not work?
R.
while ($row = @mysql_fetch_array($result, MYSQL_ASSOC)){
?>
\n");echo $new; ?>
details
| edit
| delete I
keep it on list please. I'm not free personal debugging system ;-)
Marc Staiger wrote:
we have a script to create a word-document via COM which, so far,
run pretty stable under php 4.3.7
are you using apache2 with php4?
Yes !
Sorry - my mistake here : the problems are caused under PHP5. W
[snip]
doesn't work CSS acts the same way with a long unbroken string.
[/snip]
Well, you have no way of determining how many pixels wide something can
be with PHP. You might have to use JavaScript to break up the string as
the table is rendered.
--
PHP General Mailing List (http://www.php.net/)
T
http://us2.php.net/manual/en/function.wordwrap.php
--
Thanks,
John Ellingsworth
Project Leader
Virtual Curriculum
http://john.ellingsworth.org
Ross wrote:
I have a table which I put php data from a database.
If i have a name 'thisisaveryverylongfirstname' the table stetches to fit
the name.
On 8/24/05, Jay Blanchard <[EMAIL PROTECTED]> wrote:
> [snip]
> I seem to be having trouble with \n and \r in variables. I write my
> code on a linux box, and the server is linux. So I should always have
> \n\r, no? Is there a way the I could print $variable; and have it show
> me the /n and /r 's
Jay Blanchard wrote:
[top-snip, because it makes sense in the context]
On line 98 I changed from
echo "Line " . str_pad($lineNo, 4, ' ', PAD_LEFT) . ": " .
$fileLine;
to
echo "Line " . str_pad($lineNo, 4, ' ', PAD_LEFT) . ": " .
ltrim($fileLine);
to account for indented code, lines ev
I've done a google and can't find anything on this.
I want to parse a long list of useragent strings for a web analysis
script I am writing. I could use get_browser, but firstly this would
slow down my script quite a bit and secondly I am relying on the
browscap.ini file of the newness of whic
[snip]
I have a table which I put php data from a database.
If i have a name 'thisisaveryverylongfirstname' the table stetches to
fit
the name. Is there any way I can force it to wrap to a fixed width of
100px??
If I put a space in the text wraps. How can I do this at character
30
of the strin
[snip]
Its Apache server, Linux
[/snip]
Put the follwoing in a seperate page and run it from the browser. It
will give you the path to your php.ini file...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I've tried to tell the that there are Fortune 500 companies running
PHP on Windows and IIS (there are, right?).
Target, Tickmaster, Yahoo, Amazon, and the list goes on and on.
Not too sure about this:
http://uptime.netcraft.com/up/graph?site=amazon.com
http://uptime.netcraft.com/up/graph?site
I have a table which I put php data from a database.
If i have a name 'thisisaveryverylongfirstname' the table stetches to fit
the name. Is there any way I can force it to wrap to a fixed width of
100px??
If I put a space in the text wraps. How can I do this at character 30
of the string?
Or
[snip]
I tried looking in the local Root folder of my web site as well as the
remote. I don't own the server so didn't know if to look for "php.ini
file"
there.
Sorry for redundant Qs but I seem to be very lost.
On a different Note,
This page is the original working version I have:
http://www.p
I tried looking in the local Root folder of my web site as well as the
remote. I don't own the server so didn't know if to look for "php.ini file"
there.
Sorry for redundant Qs but I seem to be very lost.
On a different Note,
This page is the original working version I have:
http://www.primary
> >> I'm betting you'll have the SAME ISSUE, and that the problem has
> >> NOTHING to do with PHP whatsoever.
> >
> > And you'd win that bet. I thought that would be the proof I'd need to
> > show that it wasn't PHP, but management has some notion that PHP might
> > have somehow tainted IIS.
>
> Go
Dotan Cohen wrote:
I seem to be having trouble with \n and \r in variables. I write my
code on a linux box, and the server is linux. So I should always have
you are mixing /n and \n etc etc - stop it :-)
\n is a new line in linux
\r is a new line in (older?) version of MacOS
\r\n
> [snip]
> I seem to be having trouble with \n and \r in variables. I write my
> code on a linux box, and the server is linux. So I should always have
> \n\r, no? Is there a way the I could print $variable; and have it show
> me the /n and /r 's ? I tried with a srt_replace() on /n and on /r,
> but
I'm betting you'll have the SAME ISSUE, and that the problem has
NOTHING to do with PHP whatsoever.
And you'd win that bet. I thought that would be the proof I'd need to
show that it wasn't PHP, but management has some notion that PHP might
have somehow tainted IIS.
Gotta love a management g
[snip]
I seem to be having trouble with \n and \r in variables. I write my
code on a linux box, and the server is linux. So I should always have
\n\r, no? Is there a way the I could print $variable; and have it show
me the /n and /r 's ? I tried with a srt_replace() on /n and on /r,
but they do no
Hi there!
Thanx for the help!
And everybody else that helped me with the solution of course! :-)
/G
@varupiraten.se
- Original Message -
From: "Rory Browne" <[EMAIL PROTECTED]>
To: "Jim Moseby" <[EMAIL PROTECTED]>
Cc:
Sent: Tuesday, August 23, 2005 10:21 PM
Subject: Re: [PHP] possib
I seem to be having trouble with \n and \r in variables. I write my
code on a linux box, and the server is linux. So I should always have
\n\r, no? Is there a way the I could print $variable; and have it show
me the /n and /r 's ? I tried with a srt_replace() on /n and on /r,
but they do not get r
[top-snip, because it makes sense in the context]
On line 98 I changed from
echo "Line " . str_pad($lineNo, 4, ' ', PAD_LEFT) . ": " .
$fileLine;
to
echo "Line " . str_pad($lineNo, 4, ' ', PAD_LEFT) . ": " .
ltrim($fileLine);
to account for indented code, lines everything up neatly.
Al
Quoting Richard Lynch <[EMAIL PROTECTED]>:
Just for a test case, write a 10-line ASP script that does something
similar, if much simpler, and pound on it on the same box with the
Padcom clients.
I did that when the problem first appeared. Great minds think alike :-)
I'm betting you'll have t
[snip]
here is a new and improved version:
http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Quoting Nathan Tobik <[EMAIL PROTECTED]>:
Have you tried PHP 4.x? Give that a shot and see what effects that has
on the application.
We have used PHP with IIS and SQL Server like you said, I can say from
experience that PHP 5 had the same problems as the initial poster
described. The pages
Quoting Jim Moseby <[EMAIL PROTECTED]>:
Can they access other (non-php) pages on that server during one of these
failures?
No. I wrote an ASP page that displays the same data with the same
refresh rate. When the PHP app fails, the ASP page is also
inaccessible. I thought this proved it wasn'
hi Jay,
here is a new and improved version:
*/
/* script help message */
if (in_array('--help', $_SERVER['argv']) ||
in_array('-h', $_SERVER['argv']) ||
in_array('-?', $_SERVER['argv']))
{
echo '
Use this command to search for SQL query strings inside php files.
call from command
Quoting Miles Thompson <[EMAIL PROTECTED]>:
Rick,
Deepest sympathy.
So you have a solution which works, for everyone, but doctrine
dictates differently. I'd suspect VPN / IIS interaction.
If I was your manager, I'd take comfort from the FACT that you were
able to switch everything over to
Quoting Jay Paulson <[EMAIL PROTECTED]>:
Have you tried PHP 4.x? Give that a shot and see what effects that
has on the application.
I've recommended that as a troubleshooting step, and it's a great idea.
If it ends up working out, I'll almost be bummed because I like some of
the new feature
Just a quick note to thank everybody who has replied. I've been getting
a lot of feedback, and won't be able to reply to all of the messages
I've received, but I appreciate each and every one of them and don't
want anybody to feel left out.
Thanks again,
Rick
--
Rick Emery
"When once you have
Yes, tested and verified. It was the accelerator. They have multiple
binaries, one for each version of PHP. Matching the new binary to the
new version of PHP solved this problem.
Thanks again.
Larry
On Tue, 2005-08-23 at 20:35, Larry Brown wrote:
> Sorry, that last one went out without a comm
On 8/24/05, Richard Lynch <[EMAIL PROTECTED]> wrote:
> On Tue, August 23, 2005 1:58 am, Robin Vickery wrote:
> > But in the mean time, it's not *that* hard to learn the syntax of
> > regular expressions. OK, they're rather terse. But apart from that,
> > they're a lot simpler than a proper language
On 8/24/05, Richard Lynch <[EMAIL PROTECTED]> wrote:
> On Tue, August 23, 2005 1:58 am, Robin Vickery wrote:
> >
> > Both of these will fail to compile:
> > preg_match( '/\\7abc/', $myString);
> > preg_match( '/\7abc/', $myString);
>
> Well, duh!
>
> You'd have to use them correctly in Regular E
>How long does it take to fail?
>I get the answer immidiatly (0-1sec.)...
Are you sure you are connecting? As in, do you only try to bind if you have
a successful connection?
Have you checked ldap_error?
Are you doing an anonymous bind, or using a username and password? Try each
and see what hap
Hi!
I have XML and I would like to set some values. I almost done the whole
thing but have some problems when looping through some tags
...
I would like to set value for tag "bar" in some loop and then export
this back to XML. Is this even possible or it's better to use SimpleXML
On Tue, August 23, 2005 11:59 pm, Björn Bartels wrote:
> I built a test script with help from the manual which authenticates a
> user and does a simple test query (cn=*).
> the test script works fine, no matter what protocol version it uses,
> on
> any (internal) client computer.
> The problem occ
Hello, Richard...
>How long does it take to fail?
I get the answer immidiatly (0-1sec.)...
>Is there some sort of permission system in LDAP which allows one to
>connect, but not to "bind"?
Only clients from "192.168.*" are allowed to bind, i guess...
>These are just guesses from a VERY limited k
On Tue, August 23, 2005 1:58 am, Robin Vickery wrote:
> But in the mean time, it's not *that* hard to learn the syntax of
> regular expressions. OK, they're rather terse. But apart from that,
> they're a lot simpler than a proper language like PHP and you don't
> seem to have problems with that.
S
On Tue, August 23, 2005 1:58 am, Robin Vickery wrote:
> On 8/23/05, Richard Lynch <[EMAIL PROTECTED]> wrote:
>> The advantage that when I have to change the string to match the
>> new/altered data, and that data has, oh, I dunno, something like '
>> or
>> \ or 0, 1, 2, 3, ...9 in it, and then my Re
Hello there...
I have a problem with LDAP and need your advice...
I built a test script with help from the manual which authenticates a
user and does a simple test query (cn=*).
the test script works fine, no matter what protocol version it uses, on
any (internal) client computer.
The problem occ
88 matches
Mail list logo