[PHP] Cleints Machine's Network Properties(NetMask, Default Gateway)

2005-03-31 Thread Zareef Ahmed
Hi All,

Is it possible to get client's machines network properties like
Netmask, Default gateway, I can get  the IP address, but unable to get
other details.

zareef ahmed

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] use php for non-web development

2005-03-31 Thread DemonGloom
subj. its really to develop on php language applications with GUI (for 
windows/linux), but not php-gtk. 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Session problem

2005-03-31 Thread Rosen
Hi,
I have this code :


page1.php:

===
page2.php:


This script works on several linux servers, but on one doesn't work (
variable $uss in page2.php has no value ).
I think this may be problem with PHP configuration on this server ( I don't
have root password for this server ).

Have someone idea where may be the problem ?

Thanks in advance!
Rosen

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Session problem

2005-03-31 Thread Kim Madsen
Hi

> -Original Message-
> From: Rosen [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 31, 2005 11:31 AM
> To: php-general@lists.php.net
> Subject: [PHP] Session problem
> 
> Hi,
> I have this code :
> 
> 
> page1.php:
>  
> $nfo["fu"]="12";
> 
> session_start();
> session_register(nfo);

For good programmingskill always start with session_start() (one day You might 
print something before)

> $sn=session_name();
> $nn=session_id() ;
> 
> $web="page2.php?lang=en";
> $web.="&$sn=$nn";
> 
> header("Location: $web");
> ?>
> ===
> page2.php:
>  session_start();
> global $nfo;
> 
> $uss=$nfo["fu"];
> 
> echo $uss;  HERE $uss is empty!

Yeah, cause that´s _not_ what the manual says:

http://dk.php.net/manual/en/ref.session.php

It should be $_SESSION['nfo']['fu'] = 12;

-- 
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen 
Systemudvikler/systemdeveloper

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] getting check box values into an array

2005-03-31 Thread Merlin
Hi there,
I am facing a problem in getting all values from a form.
There are loads of input check boxes in there which are named:
x_1, x_2 etc.
Now I want to get that post data into an array.
Somehow like this:
for ...{
   $interests[] = $_POST[x_1];
}
The problem is that the script does not know how many x there are and it does 
not know the number. So how to get them all?

Has anybody an idea, I am lost on that one.
Thanx for any hints,
Merlin
PS: I know that there is another way in passing the checkbox values, but due to 
some JS reasons I do have to go that way.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] getting check box values into an array

2005-03-31 Thread Ken
On Thu, 31 Mar 2005 12:45:04 +0200, Merlin <[EMAIL PROTECTED]> wrote:
> Hi there,
> 
> I am facing a problem in getting all values from a form.
> There are loads of input check boxes in there which are named:
> x_1, x_2 etc.
> 
> Now I want to get that post data into an array.
> 
> Somehow like this:
> for ...{
> $interests[] = $_POST[x_1];
> }
> 
> The problem is that the script does not know how many x there are and it does
> not know the number. So how to get them all?
> 
> Has anybody an idea, I am lost on that one.
> 
> Thanx for any hints,
> 
> Merlin
> 
> PS: I know that there is another way in passing the checkbox values, but due 
> to
> some JS reasons I do have to go that way.

check the php manual for the function foreach

 foreach($_POST as $value)
 {
 $interests[] = $value;
 }

hth, sorry for the first mail i screwed up :D

ken

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Cannot connect to database when using Zend studio debugger

2005-03-31 Thread Supersky
I am learning how to use Zend studio 4.0 debugger. With internal mode, when 
I debug a program that needs a connection to a Mysql database, I get the 
message "Fatal error:  Call to undefined function mysql_connect() in 
D:\Program Files\Apache Group\Apache2\htdocs\topiclist.php".

My php version is 5.03, mysql version is 4.1.

Thanks,

Ganxh 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] getting check box values into an array

2005-03-31 Thread Merlin
Ken wrote:
On Thu, 31 Mar 2005 12:45:04 +0200, Merlin <[EMAIL PROTECTED]> wrote:
Hi there,
I am facing a problem in getting all values from a form.
There are loads of input check boxes in there which are named:
x_1, x_2 etc.
Now I want to get that post data into an array.
Somehow like this:
for ...{
   $interests[] = $_POST[x_1];
}
The problem is that the script does not know how many x there are and it does
not know the number. So how to get them all?
Has anybody an idea, I am lost on that one.
Thanx for any hints,
Merlin
PS: I know that there is another way in passing the checkbox values, but due to
some JS reasons I do have to go that way.

check the php manual for the function foreach
 foreach($_POST as $value)
 {
 $interests[] = $value;
 }
hth, sorry for the first mail i screwed up :D
ken
Thanx ken,
This did the job:
foreach($_POST as $key){
if (substr($key,0,2) == 'n_')
$interests[] = substr($key,2);
}   
Regards, merlin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Why do I get the warning messages in this case? When I execute script from shell. If I execute script from browser, no warnings.

2005-03-31 Thread Jerry Swanson
php time_test.php
PHP Warning:  Unknown(): Unable to load dynamic library './domxml.so'
- ./domxml.so: cannot open shared object file: No such file or
directory in Unknown on line 0
PHP Warning:  Unknown(): Unable to load dynamic library './imap.so' -
./imap.so: cannot open shared object file: No such file or directory
in Unknown on line 0
PHP Warning:  Unknown(): Unable to load dynamic library './ldap.so' -
./ldap.so: cannot open shared object file: No such file or directory
in Unknown on line 0
PHP Warning:  Unknown(): Unable to load dynamic library './mysql.so' -
./mysql.so: cannot open shared object file: No such file or directory
in Unknown on line 0
PHP Warning:  Unknown(): Unable to load dynamic library './odbc.so' -
./odbc.so: cannot open shared object file: No such file or directory
in Unknown on line 0
PHP Warning:  Unknown(): Unable to load dynamic library './pgsql.so' -
./pgsql.so: cannot open shared object file: No such file or directory
in Unknown on line 0
PHP Warning:  Unknown(): Unable to load dynamic library './snmp.so' -
./snmp.so: cannot open shared object file: No such file or directory
in Unknown on line 0
PHP Warning:  Unknown(): Unable to load dynamic library './xmlrpc.so'
- ./xmlrpc.so: cannot open shared object file: No such file or
directory in Unknown on line 0
Content-type: text/html
X-Powered-By: PHP/4.3.4

31


//Source Code


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] getting check box values into an array

2005-03-31 Thread Kim Madsen

> -Original Message-
> From: Merlin [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 31, 2005 12:45 PM
> 
> Hi there,
> 
> I am facing a problem in getting all values from a form.
> There are loads of input check boxes in there which are named:
> x_1, x_2 etc.

How do You create these names? See below for a smart solution.

> Now I want to get that post data into an array.
> 
> Somehow like this:
> for ...{
> $interests[] = $_POST[x_1];
> }

$interests[] = $_POST['x_1']; is correct syntax
 
> The problem is that the script does not know how many x there are and
it
> does
> not know the number. So how to get them all?
> 
> Has anybody an idea, I am lost on that one.
> 
> Thanx for any hints,
> 
> Merlin
> 
> PS: I know that there is another way in passing the checkbox values,
but
> due to
> some JS reasons I do have to go that way.

So 

 

is not an option? Cause that would be the smartest way to do it. In this
way all the checked boxes are in $_POST['interests'] and can be seen
with 

print var_dump($_POST['interests'])

You create the checkboxes with a for loop

--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/systemdeveloper

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Why do I get the warning messages in this case? When I execute script from shell. If I execute script from browser, no warnings.

2005-03-31 Thread Angelo Zanetti
either the directory or file dont exists or you dont have rights to 
access them
hope this helps
Angelo

Jerry Swanson wrote:
php time_test.php
PHP Warning:  Unknown(): Unable to load dynamic library './domxml.so'
- ./domxml.so: cannot open shared object file: No such file or
directory in Unknown on line 0
PHP Warning:  Unknown(): Unable to load dynamic library './imap.so' -
./imap.so: cannot open shared object file: No such file or directory
in Unknown on line 0
PHP Warning:  Unknown(): Unable to load dynamic library './ldap.so' -
./ldap.so: cannot open shared object file: No such file or directory
in Unknown on line 0
PHP Warning:  Unknown(): Unable to load dynamic library './mysql.so' -
./mysql.so: cannot open shared object file: No such file or directory
in Unknown on line 0
PHP Warning:  Unknown(): Unable to load dynamic library './odbc.so' -
./odbc.so: cannot open shared object file: No such file or directory
in Unknown on line 0
PHP Warning:  Unknown(): Unable to load dynamic library './pgsql.so' -
./pgsql.so: cannot open shared object file: No such file or directory
in Unknown on line 0
PHP Warning:  Unknown(): Unable to load dynamic library './snmp.so' -
./snmp.so: cannot open shared object file: No such file or directory
in Unknown on line 0
PHP Warning:  Unknown(): Unable to load dynamic library './xmlrpc.so'
- ./xmlrpc.so: cannot open shared object file: No such file or
directory in Unknown on line 0
Content-type: text/html
X-Powered-By: PHP/4.3.4
31
//Source Code

?>
 

--
Angelo Zanetti
Z Logic
[c] +27 72 441 3355
[t] +27 21 464 1363
[f] +27 21 464 1371
www.zlogic.co.za
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] PHP Cli gets screwed after OSX update :)

2005-03-31 Thread Dan Rossi
I think I have meantioned this before, but now I have noticed it. 
Whenever OSX runs an update it screws the PHP5 cli sidewways i got this 
error again

pear install HTTP_Session
dyld: /usr/bin/php Undefined symbols:
_OnUpdateLong
_OnUpdateString
_compiler_globals
_executor_globals
_sapi_globals
_sapi_module
_zend_error_cb
_zend_extensions
_zend_ini_boolean_displayer_cb
Trace/BPT trap
Any ideas ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] RE: Best Server Platform

2005-03-31 Thread Gerald Artman
Interesting comments from all.

It would seem that despite disagreements, OSX clearly can hold its own.
According to Netcraft, its does serve 4 of the top 50 sites on the
survey, 11- www.apple.com (which is mixed with Solaris), 12-
www.army.mil, 21- www.mdgcs.com and 46- apple.com (OSX Only). I note
some do not even use Apache.

Of course, if you do not like the BSD underpinnings, you can always use
Redhat or any of a number of others which I wonder if they have ever
been tested.

Jerry

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Best Server Platform

2005-03-31 Thread Jason Barnett
Gerald Artman wrote:
> Interesting comments from all.
>
> It would seem that despite disagreements, OSX clearly can hold its own.
> According to Netcraft, its does serve 4 of the top 50 sites on the
> survey, 11- www.apple.com (which is mixed with Solaris), 12-

I would *hope* that Apple would use their own product if they expect
other companies to use it for their servers as well.  I'm really
wondering what you mean / why they mix with Solaris though...

> www.army.mil, 21- www.mdgcs.com and 46- apple.com (OSX Only). I note
> some do not even use Apache.
>
> Of course, if you do not like the BSD underpinnings, you can always use

Or WinXP's BSD underpinnings?

> Redhat or any of a number of others which I wonder if they have ever
> been tested.
>
> Jerry

FUDSPAM!

You might prefer OSX over other platforms (it sure seems like you do),
but we don't need to be knocking on those other platforms here unless
you show that they deserve it *and* it's related to PHP.

For example I am a Windows user and I can rattle off several
(OS-specific) problems that I've had trying to use PHP on this platform.
 But even I haven't run any sort of regression test lately to
stress-test PHP on Windows.

So please, if you're going to spread FUD then at least have the common
decency to *show some proof* and to *APPLY IT TO PHP!*  Anything not
directly related to PHP is just SPAM on this list.

--
Teach a man to fish...

NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
STFM | http://php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
LAZY |
http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins


signature.asc
Description: OpenPGP digital signature


Re: [PHP] use php for non-web development

2005-03-31 Thread Marek Kilimajer
DemonGloom wrote:
subj. its really to develop on php language applications with GUI (for 
windows/linux), but not php-gtk. 

Go ahead and implement wxWindows extension. Or Qt, or fltk, or... :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Cannot connect to database when using Zend studio debugger

2005-03-31 Thread Richard Davey
Hello Supersky,

Thursday, March 31, 2005, 11:49:37 AM, you wrote:

S> I am learning how to use Zend studio 4.0 debugger. With internal
S> mode, when I debug a program that needs a connection to a Mysql
S> database, I get the message "Fatal error: Call to undefined
S> function mysql_connect() in D:\Program Files\Apache
S> Group\Apache2\htdocs\topiclist.php".

Sounds to me like Zend is debugging with the wrong PHP library.

mysql_connect() is a PHP4 function, it's mysqli_connect() in PHP5 (by
default anyway) - see if it helps swapping over the debug version used
in the Zend Studio properties for your project?

Best regards,

Richard Davey
-- 
 http://www.launchcode.co.uk - PHP Development Services
 "I do not fear computers. I fear the lack of them." - Isaac Asimov

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Newbie Define Paths question

2005-03-31 Thread Jackson Linux
Hi,
I've set the following:
$nscfg['url'] ='http://www.domain.com/';
$nscfg['secure_url'] ='https://domain.com/';
$nscfg['site root'] = '/Users/username/public_html/';
$nscfg['base'] = 'http://www.domain.com/';
// For use in the HTML documents
define ("URL", $nscfg['url']);
// where to find Articles
define ("ARTICLES",$nscfg['url']."articles/");
// where to find Books
define ("BOOKS", $nscfg['url']."books/");
// where to find Resume
define ("CV", $nscfg['base']."cv/");
// where to find the various types of PHP includes ie sidebars
define ("INCLUDES", $nscfg['site root']."docs/");
And things like this:

target='_blank'>click

 work great.
What am I doing wrong when I try to make this:

work?
Thanks in advance!
Jack
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] XML/HTML specific instructions

2005-03-31 Thread Satyam

"Burhan Khalid" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Satyam wrote:
>> This is just an idea I'm (quite  unsuccessfully) been working on.
>>
>> It appears to me that PHP sits between a database and a web browser.
>>
>> On the database side, something I would love to have is embedded SQL, as 
>> it exists in some other languages such as C (for example, see: 
>> http://www.csee.umbc.edu/help/oracle8/server.815/a68022/sql.htm)
>>
>> At least, what the minimum I would like is to have the very same variable 
>> types all the way from the database end to the browser end.
>>
>> Anyway, Embedded SQL is to much to ask.  What I was working on, though I 
>> got nowhere due to my lack of experience with Yacc and Lex is to have 
>> HTML or XML directly as part of the language (I will just say XML from 
>> now on, to indicate both HTML and XML) .
>
> http://www.php.net/sqlite
>

You are pointing me to SQl functions.  Embedded SQL is something completely 
different, and I would appreciate your either learning what I am talking 
about before replying or, otherwise, not replying at all.

>> You see, both PHP and XML are block structured.  Nevertheless, when we 
>> program PHP, we only see one set of blocks, those enclosed by curly 
>> braces{}.  Most IDEs even check those for pairing, and we have Code 
>> Beautifiers to indent them properly.  The other set of blocks, those 
>> enclosed by XML tags are invisible to the program, though keeping track 
>> of those blocks is just as important.
>>
>> Moreover, logic indicates that one set of blocks is compatible with the 
>> other.  That is, if you are generating an XML block within an if 
>> (condition) block, the XML block has to be closed, you can't just open it 
>> and leave it open.  When the if() block closes, the XML block has to as 
>> well. Can you point any case when this might not be so?  Don't bother, I 
>> can give you examples myself, but good programming practice can straigten 
>> that code out nicely.
>
> I don't agree with you here at all.  Why should PHP (which is not a XML 
> parsing/validating engine) give two hoots about how you are generating 
> content?
>

Not the point, anyway.

>> So, this is what I thought.  I probably re-invented the wheel and if 
>> anybody can point me to the source, I'll be just as happy.
>>
>> I would like to see a couple of  additions to PHP, which could very well 
>> be implemented as a pre-compiler, in
>> the form of two new instructions, TAG and ATT which could also be 
>> abbreviated to < and @.
>>
>> The following piece of code show how to use them:
>>
>> > @align 'center';
>> echo 'este es el texto del párrafo';
>> }
>>
>> Which would produce, after precompiled:
>>
>> echo 'este es el texto del párrafo';
>
> Here you are building a templating engine into PHP, which IMHO is not a 
> very good idea. Why? Many reasons. You'd have to compensate for other 
> forms of markup, such as XML, XHTML, the different XML "standards" 
> floating out there (like Docbook).  Others might say what about CSS? I can 
> go on and on here.
>

I gave and HTML example just to make it something familiar.  I have been 
saying XML all along and if you trouble yourself with reading any further 
before replying, yoy would see that I do mention means to comply with 
different XML schemas (which you call "standards").  CSS is an unfortunate 
case where a standard so closely related to XML technologies has a syntax so 
way out of anything related.  Should something like CSS be designed today, 
it would use XML.

>> Just in case you wonder, yes, the text is in Spanish and it is alread 
>> optimized in the sense that all the literal string segments that could be 
>> strung together has been put in just one string in just a single call to 
>> echo.
>>
>> So, the TAG or < instruction would be followed by a valid tag name and 
>> then a statement. The statement, as usual, can be replaced by a statement 
>> block, enclosed in curly braces.  I don't see any need for the tag name 
>> to be enclosed in any kind of quotes.   A variable instead of a literal 
>> tag name
>> should also be valid.  Thus:
>>
>> $p = 'p';
>> <$p { etc. }
>>
>> would do the same.  This syntax would prevent functions as a source of 
>> tag names, which would be a very rare case and taking it under 
>> consideration would really make the whole thing too cumbersome.
>>
>> The ATT (attribute) or @ instruction is to be followed by a valid 
>> attribute name and an expression providing the value. The attribute name 
>> can be the value of a variable, so that
>>
>> $attribute = 'align';
>> @$attribute 'center';
>>
>> Once again functions cannot be used.
>>
>> Why all these?
>>
>> Basically, I don't want to keep track manually of how my XML blocks are 
>> build.
>
> This is not the job of the programming language either.  PHP is not a XML 
> validating/generating engine.  Its your job (as the developer) to make 
> sure what your program creates is valid.
>
>> Even a

[PHP] Help with SQL Query String

2005-03-31 Thread Rahul S. Johari

Ave,

Simple problem.. 
Following is a statement I¹m inserting in my PHP Script... But it doesn¹t
work because I¹m not able to figure out how to put the variables with the
trim() function in the SQL insert statement:

$sql = INSERT INTO tblname (USERID,FULLNAME,SSN,STARTDATE) VALUES
(trim($row[USERID]),trim($row[FULLNAME]),trim($row[SSNO]),trim($row[STARTDAT
E]));

I can of course predefine a unique variables for each of the $row[]
variables with the trim() function and then use those variables in my INSERT
statement... But I¹m sure there is a way this statement can work, I¹m just
not able to figure it out and would love if anyway made a suggestion.

Thanks,

Rahul S. Johari
Coordinator, Internet & Administration
Informed Marketing Services Inc.
251 River Street
Troy, NY 12180

Tel: (518) 266-0909 x154
Fax: (518) 266-0909
Email: [EMAIL PROTECTED]
http://www.informed-sources.com



Re: [PHP] Newbie Define Paths question

2005-03-31 Thread Richard Davey
Hello Jackson,

Thursday, March 31, 2005, 3:20:11 PM, you wrote:

JL> What am I doing wrong when I try to make this:
JL> 

Be sure you don't define a reserved word, but to get the above working
do:

include_once(INCLUDES . 'include.php');

Best regards,

Richard Davey
-- 
 http://www.launchcode.co.uk - PHP Development Services
 "I do not fear computers. I fear the lack of them." - Isaac Asimov

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Help with SQL Query String

2005-03-31 Thread Jay Blanchard
[snip]
$sql = INSERT INTO tblname (USERID,FULLNAME,SSN,STARTDATE) VALUES
(trim($row[USERID]),trim($row[FULLNAME]),trim($row[SSNO]),trim($row[STAR
TDAT
E]));
[/snip]

Time to quote and concatenate and make pretty...

$sql = "INSERT INTO tblname (USERID,FULLNAME,SSN,STARTDATE) ";
$sql .= "VALUES ( ";
$sql .= "'" . trim($row['USERID']) . "', ";
$sql .= "'" . trim($row['FULLNAME']) . "', ";
$sql .= "'" . trim($row['SSNO']) . "', ";
$sql .= "'" . trim($row['STARTDATE']) . "' ";
$sql .= ") ";

This will make things easier to maintain as well.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Help with SQL Query String

2005-03-31 Thread Joseph Connolly
You should not just give him the code but rather tell him why.
1. trim() is a php function. MySQL does not know what to do with it. You 
need to place it 'outside' of the sql. You can also do something like this:

$userid = trim($row['USERID']);
Then use $userid in your sql.
2. Items in arrays must be in quotes.
jzf
Jay Blanchard wrote:
[snip]
$sql = INSERT INTO tblname (USERID,FULLNAME,SSN,STARTDATE) VALUES
(trim($row[USERID]),trim($row[FULLNAME]),trim($row[SSNO]),trim($row[STAR
TDAT
E]));
[/snip]
Time to quote and concatenate and make pretty...
$sql = "INSERT INTO tblname (USERID,FULLNAME,SSN,STARTDATE) ";
$sql .= "VALUES ( ";
$sql .= "'" . trim($row['USERID']) . "', ";
$sql .= "'" . trim($row['FULLNAME']) . "', ";
$sql .= "'" . trim($row['SSNO']) . "', ";
$sql .= "'" . trim($row['STARTDATE']) . "' ";
$sql .= ") ";
This will make things easier to maintain as well.
 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Simple CMS program

2005-03-31 Thread Todd Cary
This has been the one I wanted to try, but I needed to hear from someone
that could recommend it.  Now I'll do a test install on my Linux "play box".
Many thanks...
Todd
Andre Dubuc wrote:
On Wednesday 30 March 2005 08:19 pm, Josip Dzolonga wrote:
Todd Cary wrote:
When I went to a site that lists and compares CMS programs, I was
overwhelmed by at least 100 listings.  Again, I would like to rely on
personal experience.  What I am seeking is a CMS that will provide
users at my client (a Yacht Club) to update news items, and if
possible, update a calendar using a Web based editor.  Not a full
fledged portal CMS.
Also, it would be nice if it was written in PHP and use MySQL for the
server DB.  Has anyone had experience with such a CMS?
Todd

Try:
http://www.mamboserver.com
easy to install, update, etc.
Hth,
Andre
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Help with SQL Query String

2005-03-31 Thread Jay Blanchard
[snip]
You should not just give him the code but rather tell him why.

1. trim() is a php function. MySQL does not know what to do with it. You

need to place it 'outside' of the sql. You can also do something like
this:

$userid = trim($row['USERID']);

Then use $userid in your sql.

2. Items in arrays must be in quotes.
[/snip]

Ya'll bitch when I make them RTFM, ya'll bitch when I do codewhat's
a guy to do? j/k

Actually http://dev.mysql.com/doc/mysql/en/string-functions.html shows
that MySQL also has a trim function which could be applied thusly;

$sql = "INSERT INTO tblname (USERID,FULLNAME,SSN,STARTDATE) ";
$sql .= "VALUES ( ";
$sql .= "TRIM('" . $row['USERID'] . "'), ";
$sql .= "TRIM('" . $row['FULLNAME'] . "'), ";
$sql .= "TRIM('" . $row['SSNO'] . "'), ";
$sql .= "TRIM('" . $row['STARTDATE'] . "') ";
$sql .= ") ";

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Help with SQL Query String

2005-03-31 Thread John Nichel
Jay Blanchard wrote:
Ya'll bitch when I make them RTFM, ya'll bitch when I do codewhat's
a guy to do? j/k
Don't get married?  ;)
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Help with SQL Query String

2005-03-31 Thread Rahul S. Johari

Ave,

Thanks a lot folks.

I did actually mention that doing something like

$userid = trim($row['USERID']);

And then using those variables in my SQL statement would work... The only
reason I chose to make this post however and not do that was because I
wanted to know if it can be done the other way. I do understand though that
using the PHP trim() function in an SQL statemnt won't work.

However the new snip about mySQL having it's own TRIM() function is also
pretty cool. 

Thanks again all,

Rahul S. Johari
Coordinator, Internet & Administration
Informed Marketing Services Inc.
251 River Street
Troy, NY 12180

Tel: (518) 266-0909 x154
Fax: (518) 266-0909
Email: [EMAIL PROTECTED]
http://www.informed-sources.com


On 3/31/05 10:30 AM, "Jay Blanchard" <[EMAIL PROTECTED]>
wrote:

> [snip]
> You should not just give him the code but rather tell him why.
> 
> 1. trim() is a php function. MySQL does not know what to do with it. You
> 
> need to place it 'outside' of the sql. You can also do something like
> this:
> 
> $userid = trim($row['USERID']);
> 
> Then use $userid in your sql.
> 
> 2. Items in arrays must be in quotes.
> [/snip]
> 
> Ya'll bitch when I make them RTFM, ya'll bitch when I do codewhat's
> a guy to do? j/k
> 
> Actually http://dev.mysql.com/doc/mysql/en/string-functions.html shows
> that MySQL also has a trim function which could be applied thusly;
> 
> $sql = "INSERT INTO tblname (USERID,FULLNAME,SSN,STARTDATE) ";
> $sql .= "VALUES ( ";
> $sql .= "TRIM('" . $row['USERID'] . "'), ";
> $sql .= "TRIM('" . $row['FULLNAME'] . "'), ";
> $sql .= "TRIM('" . $row['SSNO'] . "'), ";
> $sql .= "TRIM('" . $row['STARTDATE'] . "') ";
> $sql .= ") ";
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Help with SQL Query String

2005-03-31 Thread Joseph Connolly
well...i would have told him to go pound sand...the php manual is great 
and so is the MySQL manual. People are just lazy.

[/snip]
Ya'll bitch when I make them RTFM, ya'll bitch when I do codewhat's
a guy to do? j/k
Actually http://dev.mysql.com/doc/mysql/en/string-functions.html shows
that MySQL also has a trim function which could be applied thusly;
$sql = "INSERT INTO tblname (USERID,FULLNAME,SSN,STARTDATE) ";
$sql .= "VALUES ( ";
$sql .= "TRIM('" . $row['USERID'] . "'), ";
$sql .= "TRIM('" . $row['FULLNAME'] . "'), ";
$sql .= "TRIM('" . $row['SSNO'] . "'), ";
$sql .= "TRIM('" . $row['STARTDATE'] . "') ";
$sql .= ") ";
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
   

 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Help with SQL Query String

2005-03-31 Thread Rahul S. Johari

On 3/31/05 12:45 PM, "Joseph Connolly" <[EMAIL PROTECTED]> wrote:

> well...i would have told him to go pound sand...the php manual is great
> and so is the MySQL manual. People are just lazy.

Ave,

"Pound sand" ..  Interesting.

And yes, both the manuals are great, and people are extremely lazy and
purposely idiotic, nonsensical and absurdly inconclusive of the inadequacies
of their lifeless brains.

Have an awesome day.

PS: Jay.. The code works great... Thanks a ton again!

Rahul S. Johari
Coordinator, Internet & Administration
Informed Marketing Services Inc.
251 River Street
Troy, NY 12180

Tel: (518) 266-0909 x154
Fax: (518) 266-0909
Email: [EMAIL PROTECTED]
http://www.informed-sources.com



>>> [/snip]
>>> 
>>> Ya'll bitch when I make them RTFM, ya'll bitch when I do codewhat's
>>> a guy to do? j/k
>>> 
>>> Actually http://dev.mysql.com/doc/mysql/en/string-functions.html shows
>>> that MySQL also has a trim function which could be applied thusly;
>>> 
>>> $sql = "INSERT INTO tblname (USERID,FULLNAME,SSN,STARTDATE) ";
>>> $sql .= "VALUES ( ";
>>> $sql .= "TRIM('" . $row['USERID'] . "'), ";
>>> $sql .= "TRIM('" . $row['FULLNAME'] . "'), ";
>>> $sql .= "TRIM('" . $row['SSNO'] . "'), ";
>>> $sql .= "TRIM('" . $row['STARTDATE'] . "') ";
>>> $sql .= ") ";
>>> 
>>> --
>>> PHP General Mailing List (http://www.php.net/)
>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>
>>> 
>> 
>>  
>> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] .htaccess config

2005-03-31 Thread Neo Theone
Hi
I got a simple problem:
I need to have allow_url_fopen on for a certain directory and so I 
wanted to control it by .htaccess file.
now I can control other php_flags like register_globals in this 
directory (so apache allows the Override) but I just simple can't get 
the following line to work:
php_flag allow_url_fopen on

any help is appreciated
neo
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] .htaccess config

2005-03-31 Thread Philip Hallstrom
allow_url_fopen can only be set in php.ini.  See here for more info:
http://us2.php.net/manual/en/ref.filesystem.php#ini.allow-url-fopen

On Thu, 31 Mar 2005, Neo Theone wrote:
Hi
I got a simple problem:
I need to have allow_url_fopen on for a certain directory and so I wanted to 
control it by .htaccess file.
now I can control other php_flags like register_globals in this directory (so 
apache allows the Override) but I just simple can't get the following line to 
work:
php_flag allow_url_fopen on

any help is appreciated
neo
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Password expiration script

2005-03-31 Thread Bosky, Dave
I'm looking for a script that would require a user to change their password
every 30 days. Does anyone use a script that has functionality similar to
what I'm looking for?

 

Thanks,

Dave

 



HTC Disclaimer:  The information contained in this message may be privileged 
and confidential and protected from disclosure. If the reader of this message 
is not the intended recipient, or an employee or agent responsible for 
delivering this message to the intended recipient, you are hereby notified that 
any dissemination, distribution or copying of this communication is strictly 
prohibited.  If you have received this communication in error, please notify us 
immediately by replying to the message and deleting it from your computer.  
Thank you.


[PHP] gmp in windows snaps

2005-03-31 Thread Jon Aston
I asked this in the windows section yesterday and received no answer.

I have copied the sample of gmp_add() from the function page and have tried
to run it from the snap that I downloaded this morning with the recommended
ini that is in the folder with it and I keep getting the error here.

PHP Fatal error:  Call to undefined function gmp_add()

do I need a dll extension or need to install gmp somehow?

Thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Create MDB File

2005-03-31 Thread René Fournier
Coincidentally, I also need a way to read a table from MySQL and write 
it out to an .MDB file on-the-fly (from within a PHP script).

The CSV export idea isn't an option in this case.
Has anyone found a way to create an MDB file (with a single table) from 
PHP?

...Rene

On 28-Mar-05, at 7:18 PM, Rory Browne wrote:
MDB suggests Access, so why not simply create a CSV, or some other
generic format file from your MySQL, and import it into access, using
COM/OLE, and save it as an MDB file.
On Mon, 28 Mar 2005 22:14:07 +0100, Shaun 
<[EMAIL PROTECTED]> wrote:
Thanks for your reply,
but this only works on Windows. I need a program that will create an 
MDB
file on the fly from a query on the MySQL database...

"Johannes Findeisen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Sorry,
i forgot that link:
http://www.convert-in.com/sql2acc.htm
On Monday 28 March 2005 22:46, Johannes Findeisen wrote:
Hello,
i had the same problem some years ago. At this time i have set up 
all
tables in Access and wrote a script which reads from MySQL and 
inserts
into
the MDB file via the ODBC connector. This works but is much work 
when
your
database is very big.

2 Years ago i had the same problem but it must go as fast as 
possible so

i
decided to buy a converteer since i didn't find anything free. They 
are
working very good. I don't know where i have buyed them but i think
there
is only one company which delivers this software.
Regards
Johannes
On Monday 28 March 2005 22:08, Shaun wrote:
Hi,
Does anyone know if its possible to create an MDB file from a Mysql
database using a PHP script, I have only managed to find Access to
Mysql
conversion programs so far...
Thanks for your help
--
# Johannes Findeisen
--
# Johannes Findeisen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: Best Server Platform

2005-03-31 Thread Gerald Artman

Interesting,

There were about a dozen or so comments on the question posed. I saw
many alternatives presented, except OSX. When presented, there were a
number of responses questioning the viability. When evidence is
presented to support the issue, the response is 'FUDSPAM' and it is not
a PHP related thread. If that were true, then all of the responses would
also be. I made no disparaging remarks of other OS's, just the
suggestion that OSX is a possible solution and worth consideration as
well. I noted a number of responses that BSD was given poor marks
because of its thread methodology. Yet, I do note that 20% of that top
50 list had BSD in the OS, so it must be fairly capable also.

Even Mr. Torvalds uses a G5 from Apple :-)

Jerry Artman

PS: According to Netcraft, the mixed site was running Solaris for many
years before Apple started replacing them with Apple servers. Makes
sense sense to me that they would all work together. There's only so
much they can garner in their pings.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] gmp in windows snaps

2005-03-31 Thread Frank M. Kromann
Hi Jon,

You need to install the gmp extension. Not sure if this is included in the
snaps builds, but you should be able to download it from my site:
http://kromann.info/php.php.

- Frank

> I asked this in the windows section yesterday and received no answer.
> 
> I have copied the sample of gmp_add() from the function page and have
tried
> to run it from the snap that I downloaded this morning with the
recommended
> ini that is in the folder with it and I keep getting the error here.
> 
> PHP Fatal error:  Call to undefined function gmp_add()
> 
> do I need a dll extension or need to install gmp somehow?
> 
> Thanks
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: Best Server Platform

2005-03-31 Thread Chris W. Parker
Gerald Artman 
on Thursday, March 31, 2005 11:50 AM said:

> Even Mr. Torvalds uses a G5 from Apple :-)

Well yeah... but he doesn't run OSX or write PHP applications. So what
does his running Linux on a PowerPC have to do with the "best server
platform"?

>From http://www.zdnet.com.au/news/0,39023165,39183867,00.htm:

"Torvald's response came quickly and succinctly. "My main machine these
days is a dual 2GHz G5 (aka PowerPC 970) - it's physically a regular
Apple Mac, although it obviously only runs Linux, so I don't think you
can call it a Mac any more ;)" he said."




Chris.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] link problem - Apache or PHP?

2005-03-31 Thread germ germ
In my HTML file the HREF tag is: google.com

When clicked, the link in then directed to:
http://10.10.1.5/test-a/ref/www.google.com

Basically it seems like it appends the link to the URL
path.

Is this a PHP or Apache problem and how do I fix it?

-Aaron




__ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail



__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Filemaker Checkbox Data Problem...

2005-03-31 Thread Nick Zukin
I've got a client who uses Filemaker Pro and I'm trying to parse some of
their data.  However, the checkbox data of theirs is giving me fits.  From
what I've read, it's supposed to save checkboxes as data separated by
carriage returns.  However, in looking at the data in EditPlus I can't
discern what they are and in trying to parse them with str_replace I've had
no luck searching for \r \n \r\n or anything else.

Anyone else had this misfortune?

TIA,

Nick

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] link problem - Apache or PHP?

2005-03-31 Thread John Nichel
germ germ wrote:
In my HTML file the HREF tag is: google.com
When clicked, the link in then directed to:
http://10.10.1.5/test-a/ref/www.google.com
Basically it seems like it appends the link to the URL
path.
Is this a PHP or Apache problem and how do I fix it?
-Aaron
It's not a 'problem' of either.  Without the 'http://' Apache assumes it 
is an releative link, and is appending it to the cwd.

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Password expiration script

2005-03-31 Thread Ryan A
Theres instant2c pro at securecents.com, but that might be like using a tank
to kill a fly :-D




On 3/31/2005 11:18:31 AM, Bosky, Dave ([EMAIL PROTECTED]) wrote:
> --_=_NextPart_001_01C53626.6CCF76C0
>
> Content-Type: text/plain
>
>
>
> I'm looking for a script that would require a user to change their
password
> every 30 days. Does anyone use a script that has functionality similar to
> what I'm
> looking for?
>
>
>
>
>
>
>
> Thanks,
>
>
>
> Dave
>
>
>
>
>
>
>
>
>
>
>
> HTC Disclaimer:  The information contained in this message may be
> privileged and confidential and protected from disclosure. If the reader
> of this message is not the intended recipient, or an employee or agent
> responsible for delivering this message to the intended recipient, you are
> hereby notified that any dissemination, distribution or copying of this
> communication is strictly prohibited.  If you have received this
> communication in error, please notify us immediately by replying to the
> message and deleting it from your computer.  Thank you.
>
>
>
> --_=_NextPart_001_01C53626.6CCF76C0--



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.8.6 - Release Date: 3/30/2005

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Filemaker Checkbox Data Problem...

2005-03-31 Thread John Nichel
Nick Zukin wrote:
I've got a client who uses Filemaker Pro and I'm trying to parse some of
their data.  However, the checkbox data of theirs is giving me fits.  From
what I've read, it's supposed to save checkboxes as data separated by
carriage returns.  However, in looking at the data in EditPlus I can't
discern what they are and in trying to parse them with str_replace I've had
no luck searching for \r \n \r\n or anything else.
If this is these 'repeating fields' I had to deal with a few months 
back, it's some special character.  You can make this character in php 
with

chr ( 29 );
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Password expiration script

2005-03-31 Thread xfedex
On Thu, 31 Mar 2005 14:18:31 -0500, Bosky, Dave <[EMAIL PROTECTED]> wrote:
> I'm looking for a script that would require a user to change their password
> every 30 days. Does anyone use a script that has functionality similar to
> what I'm looking for?
> 
> Thanks,
> 
> Dave
> 
I got do it so using a DBquery

$sql = 'SELECT TO_DAYS(NOW()) - TO_DAYS(\''.$last_pass_chg.'\');';

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Filemaker Checkbox Data Problem...

2005-03-31 Thread Nick Zukin
Just tried a str_replace using chr(29) and it didn't work.  Thanks for
trying so quickly, though.

Nick

-Original Message-
From: John Nichel [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 31, 2005 12:43 PM
To: php-general@lists.php.net
Subject: Re: [PHP] Filemaker Checkbox Data Problem...


Nick Zukin wrote:
> I've got a client who uses Filemaker Pro and I'm trying to parse some of
> their data.  However, the checkbox data of theirs is giving me fits.  From
> what I've read, it's supposed to save checkboxes as data separated by
> carriage returns.  However, in looking at the data in EditPlus I can't
> discern what they are and in trying to parse them with str_replace I've
had
> no luck searching for \r \n \r\n or anything else.

If this is these 'repeating fields' I had to deal with a few months
back, it's some special character.  You can make this character in php
with

chr ( 29 );

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Filemaker Checkbox Data Problem...

2005-03-31 Thread John Nichel
Nick Zukin wrote:
Just tried a str_replace using chr(29) and it didn't work.  Thanks for
trying so quickly, though.
Nick
Good luck.  Filemaker has some wierd stuff in it.  If you find the 
answer away from the list, please let us know, as some of us are stuck 
with working with it too. :(

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Cannot connect to database when using Zend studio debugger

2005-03-31 Thread Supersky
Dear Richard,

Thanks.

After I swaped to PHP4 option in the preference of Zend Studio, I can 
connect to the database. However, other problems arised. The problem might 
be that my PHP version installed is 5.0.3 indeed.

Best regards,

Supersky

"Richard Davey" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Hello Supersky,
>
> Thursday, March 31, 2005, 11:49:37 AM, you wrote:
>
> S> I am learning how to use Zend studio 4.0 debugger. With internal
> S> mode, when I debug a program that needs a connection to a Mysql
> S> database, I get the message "Fatal error: Call to undefined
> S> function mysql_connect() in D:\Program Files\Apache
> S> Group\Apache2\htdocs\topiclist.php".
>
> Sounds to me like Zend is debugging with the wrong PHP library.
>
> mysql_connect() is a PHP4 function, it's mysqli_connect() in PHP5 (by
> default anyway) - see if it helps swapping over the debug version used
> in the Zend Studio properties for your project?
>
> Best regards,
>
> Richard Davey
> -- 
> http://www.launchcode.co.uk - PHP Development Services
> "I do not fear computers. I fear the lack of them." - Isaac Asimov 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] upload image file to my server

2005-03-31 Thread Tomás Rodriguez Orta
Hello, hard people.

I want to do this, I like to upload image file, 
What can I do?.

somebody help me.?

best regards TOMAS




-
Este correo fue escaneado en busca de virus con el MDaemon Antivirus 2.27
en el dominio de correo angerona.cult.cu  y no se encontro ninguna coincidencia.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Filemaker Checkbox Data Problem...

2005-03-31 Thread Nick Zukin
Will do.  The only funky workaround I've found so far is just pasting the
character into a str_replace.  It appears as a little unknown character box
in both EditPlus and Dreamweaver.  What's funny, though, is that if I try to
paste it as part of the line here in Outlook 2000 like this:

$mystring = str_replace("
", ", ", $mystring);

It breaks the line up, apparently creating a carriage return.  Ugh.  I'd
sure like to find a less hacky way to do it.  I've done a lot of googling
and haven't found anything yet.

Nick

-Original Message-
From: John Nichel [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 31, 2005 1:16 PM
To: php-general@lists.php.net
Subject: Re: [PHP] Filemaker Checkbox Data Problem...


Nick Zukin wrote:
> Just tried a str_replace using chr(29) and it didn't work.  Thanks for
> trying so quickly, though.
>
> Nick

Good luck.  Filemaker has some wierd stuff in it.  If you find the
answer away from the list, please let us know, as some of us are stuck
with working with it too. :(

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] strange problem, seems to be related to the character '$'

2005-03-31 Thread Chris Francy
Hello all,

I am hoping someone can point me in the right direction to resolving an odd 
bug.  I tried searching the bugs database and groups, but I can't think of 
the terms to use while searching for my problem that the search system will 
accept.

I have a script like the below, copied from the crypt manual page
---

---

On my main web server, which is running php 4.3.10 with apache this script 
produces the following when I view the page on the web
---
 string(13) "$1Hat1hn6A1pw"
---

When I run the script from the command line [php test.php] on the exact same 
server I get
---
string(34) "$1$rasmusle$rISCgZzpwk3UhDidwXvin0"
---

I have also occasionaly seen some odd behavior where strings with dollar 
symbols $ in them won't print out correctly, but they have never seen that 
important..  Does anyone have any guesses, or hints about what the next step 
is to search for what is causing this odd behavior?  Any suggestions about a 
better place to ask?

Thanks for any help

Chris Francy
[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] upload image file to my server

2005-03-31 Thread Pablo M. Rivas
Hello Tomas:
take a look at:
 http://www.php.net/manual/en/features.file-upload.php

and for an example, take a look at.
http://www.tek-tips.com/faqs.cfm?fid=5699

Good Luck.


On Thu, 31 Mar 2005 17:48:37 -0800, Tomás Rodriguez Orta
<[EMAIL PROTECTED]> wrote:
> Hello, hard people.
> 
> I want to do this, I like to upload image file,
> What can I do?.
> 
> somebody help me.?
> 
> best regards TOMAS
> 
> -
> Este correo fue escaneado en busca de virus con el MDaemon Antivirus 2.27
> en el dominio de correo angerona.cult.cu  y no se encontro ninguna 
> coincidencia.
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


-- 
Pablo M. Rivas. http://www.pmrivas.com http://www.r3soft.com.ar
---

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Filemaker Checkbox Data Problem...

2005-03-31 Thread John Nichel
Nick Zukin wrote:
Will do.  The only funky workaround I've found so far is just pasting the
character into a str_replace.  It appears as a little unknown character box
in both EditPlus and Dreamweaver.  What's funny, though, is that if I try to
paste it as part of the line here in Outlook 2000 like this:
$mystring = str_replace("
", ", ", $mystring);
It breaks the line up, apparently creating a carriage return.  Ugh.  I'd
sure like to find a less hacky way to do it.  I've done a lot of googling
and haven't found anything yet.
Yeah, that sounds like what I went thru...'cept on my end, I didn't have 
to match the character, I had to create it...which is what the chr(29) 
made.  Have you tried setting the character to a variable, before doing 
the string replace?

$funky = chr(29);
$mystring = str_replace ( $funky, ", ", $mystring );
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] URL file-access disabled

2005-03-31 Thread Jackson Linux
Hi, ho,
I have a problem; something which works locally is complaining on the 
BSD Unix server I use:

The Code: (somewhere else I define $image_dir)


$image = ($article['image']);
$size1 = getimagesize("$image_dir"."$image");
$width1 = $size1[0];
$height1 = $size1[1];

include_once(INCLUDES . 'image.include.php');
}
?>
The Include:


The Error:
Warning: getimagesize(): URL file-access is disabled in the server 
configuration in /usr/www/users/user/articles/technology/index.htm on 
line 180

Warning: 
getimagesize(http://www.domain.com/images/combination_device.jpg): 
failed to open stream: no suitable wrapper could be found in 
/usr/www/users/user/articles/technology/index.htm on line 180

The Question:
Anything I can do within .htaccess to make this not happen? I don't 
have root access or access to php.ini, and they're loathe to change the 
configuration  on a shared servcer.

Thanks in advance,
Jack
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] LDAP questions and hair pulling

2005-03-31 Thread John E. Vincent
Hi all,
I've search google left and right. Search archive after archive for 
various tips using various search strings and I cannot for the life of 
me find an answer.

Let me explain the situation. We have an LDAP directory that our users 
are stored in. It's not AD or Novell just plain OpenLDAP.

A subsection of my tree looks like this:
dc=domain,dc=com
 ou=People
cn=John E. Vincent,ou=People,dc=domain,dc=com
   uid=foo
   [EMAIL PROTECTED]
   password=bar
 ou=Departments
ou=IT
  cn=Intranet (groupOfUniqueNames or groupOfNames)
cn=John E. Vincent (alias to above ou=People entry)

Now I've been doing LDAP authentication for quite some time in various 
apps through the ou=People,dc=domain,dc=com search base. My problem 
comes when I want access to be group based but I want the user to log in 
with his email address. All of our other web applications authenticate 
with webaddress.

Now I have Apache authentication working against these groups for things 
like SVN and WebDav. Apache follows the alias through to look up the 
email address and password.

Same for Postfix and Courier.
I just can't seem to get the right option to work in PHP. I have a 
feeling it's my search filter but I don't know. For some reason I can't 
even get an filter using ldapsearch to work properly.

Dear god, all I want to do is follow the alias and verify the entered 
email address and password for the entry (dereference it, correct?) =)

Can anyone provide any good pointers? I swear I've hit EVERY single 
google result I could for this. I've even looked at the Net_LDAP package 
but it doesn't seem to work either.

Thanks for any help that anyone can provide.
John E. Vincent
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] URL file-access disabled

2005-03-31 Thread Marek Kilimajer
$image_dir is an url (begins with http:// or similar) and 
allow_url_fopen is off on your BSD.

Do you need to access it using url wrappers? If the images are local you 
can access them using plain filesystem access

Jackson Linux wrote:
Hi, ho,
I have a problem; something which works locally is complaining on the 
BSD Unix server I use:

The Code: (somewhere else I define $image_dir)


$image = ($article['image']);
$size1 = getimagesize("$image_dir"."$image");
$width1 = $size1[0];
$height1 = $size1[1];

include_once(INCLUDES . 'image.include.php');
}
?>
The Include:


The Error:
Warning: getimagesize(): URL file-access is disabled in the server 
configuration in /usr/www/users/user/articles/technology/index.htm on 
line 180

Warning: 
getimagesize(http://www.domain.com/images/combination_device.jpg): 
failed to open stream: no suitable wrapper could be found in 
/usr/www/users/user/articles/technology/index.htm on line 180

The Question:
Anything I can do within .htaccess to make this not happen? I don't have 
root access or access to php.ini, and they're loathe to change the 
configuration  on a shared servcer.

Thanks in advance,
Jack
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Signal 11 - php-5.0.1-dev - cygwin

2005-03-31 Thread Jason Barnett
OK, so I built php-5.1.0-dev from source using cygwin / gcc.

- buildconf ran ok
- configure ran ok
- make ran ok
- make install failed.  Output was:

Installing PHP SAPI module:   cgi
Installing PHP CGI into: /usr/local/bin/
Installing PEAR environment:  /usr/local/lib/php/
Signal 11
make[1]: *** [install-pear-installer] Error 139
make: *** [install-pear] Error 2

Any tips on what's going on here?  I haven't built PHP from source
before so I would appreciate any tips / links.

I've done enough digging to figure out that Signal 11 is a Segmentation
Fault, but when I looked through the archives I didn't see anything
specific to this problem.  I'm building with cygwin, but I hope / assume
that all signals and errors should correlate to errors building on *nix.

--
Teach a man to fish...

NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
STFM | http://php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
LAZY |
http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins


signature.asc
Description: OpenPGP digital signature


Re: [PHP] URL file-access disabled

2005-03-31 Thread Jackson Linux
My provider has provided me the solution: adding
php_flag allow_url_fopen on
to the .htaccess
Apologies to the list for wasting time and bandwidth.
Jack
On 31 Mar 2005, at 17:47, Jackson Linux wrote:
Hi, ho,
I have a problem; something which works locally is complaining on the 
BSD Unix server I use:

The Code: (somewhere else I define $image_dir)


$image = ($article['image']);
$size1 = getimagesize("$image_dir"."$image");
$width1 = $size1[0];
$height1 = $size1[1];

include_once(INCLUDES . 'image.include.php');
}
?>
The Include:


The Error:
Warning: getimagesize(): URL file-access is disabled in the server 
configuration in /usr/www/users/user/articles/technology/index.htm on 
line 180

Warning: 
getimagesize(http://www.domain.com/images/combination_device.jpg): 
failed to open stream: no suitable wrapper could be found in 
/usr/www/users/user/articles/technology/index.htm on line 180

The Question:
Anything I can do within .htaccess to make this not happen? I don't 
have root access or access to php.ini, and they're loathe to change 
the configuration  on a shared servcer.

Thanks in advance,
Jack
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: Create MDB File

2005-03-31 Thread Rory Browne
I don't think it's a case of 'finding a way'. I think its a case of
writing some code.

Some pseudo code to get you started:

connect_to_mysql();
$ms_Access_handler = use_com_ole_or_odbc_to_open_an_access_db();

while( $row = get_row_from_mysql() ){
  $ms_Access_handler->insert_row($row);
}

$ms_Access_handler->save_db("filename.mdb");

Just a thought. 



On Thu, 31 Mar 2005 12:36:51 -0700, René Fournier <[EMAIL PROTECTED]> wrote:
> Coincidentally, I also need a way to read a table from MySQL and write
> it out to an .MDB file on-the-fly (from within a PHP script).
> 
> The CSV export idea isn't an option in this case.
> 
> Has anyone found a way to create an MDB file (with a single table) from
> PHP?
> 
> ...Rene
> 
> 
> On 28-Mar-05, at 7:18 PM, Rory Browne wrote:
> 
> > MDB suggests Access, so why not simply create a CSV, or some other
> > generic format file from your MySQL, and import it into access, using
> > COM/OLE, and save it as an MDB file.
> >
> >
> > On Mon, 28 Mar 2005 22:14:07 +0100, Shaun
> > <[EMAIL PROTECTED]> wrote:
> >> Thanks for your reply,
> >>
> >> but this only works on Windows. I need a program that will create an
> >> MDB
> >> file on the fly from a query on the MySQL database...
> >>
> >>
> >> "Johannes Findeisen" <[EMAIL PROTECTED]> wrote in message
> >> news:[EMAIL PROTECTED]
> >>> Sorry,
> >>>
> >>> i forgot that link:
> >>>
> >>> http://www.convert-in.com/sql2acc.htm
> >>>
> >>>
> >>> On Monday 28 March 2005 22:46, Johannes Findeisen wrote:
>  Hello,
> 
>  i had the same problem some years ago. At this time i have set up
>  all
>  tables in Access and wrote a script which reads from MySQL and
>  inserts
>  into
>  the MDB file via the ODBC connector. This works but is much work
>  when
>  your
>  database is very big.
> 
>  2 Years ago i had the same problem but it must go as fast as
>  possible so
> >>
>  i
>  decided to buy a converteer since i didn't find anything free. They
>  are
>  working very good. I don't know where i have buyed them but i think
> >> there
>  is only one company which delivers this software.
> 
>  Regards
>  Johannes
> 
>  On Monday 28 March 2005 22:08, Shaun wrote:
> > Hi,
> >
> > Does anyone know if its possible to create an MDB file from a Mysql
> > database using a PHP script, I have only managed to find Access to
> > Mysql
> > conversion programs so far...
> >
> > Thanks for your help
> 
>  --
>  # Johannes Findeisen
> >>>
> >>> --
> >>> # Johannes Findeisen
> >>
> >> --
> >> PHP General Mailing List (http://www.php.net/)
> >> To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >>
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
> >
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] hotlinking images

2005-03-31 Thread Sebastian
i have an issue with site linking directly to my images.
the problem is these images are generated on the fly with php/gd -- they're
generated each time its viewed because i have done some watermarking
manipulation and didnt want to watermaker them in a static way. they're
including the images like this:

http://mydomain.com/script.php?pic=232";>

not only is bandwidth usage increase but so does cpu because php/gd has to
process them as well.. if they're including 5 or 6 of these images on a
single page i can imagin how much cpu is being used.

how can i work around this, if at all possible?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] hotlinking images

2005-03-31 Thread Philip Hallstrom
Check the value of um... $_SERVER[HTTP_REFERER] (check my spelling).  If 
it's not from your own host, then bail out... or return a static image 
saying something along the lines of "this image stolen without permission"

-philip
On Thu, 31 Mar 2005, Sebastian wrote:
i have an issue with site linking directly to my images.
the problem is these images are generated on the fly with php/gd -- they're
generated each time its viewed because i have done some watermarking
manipulation and didnt want to watermaker them in a static way. they're
including the images like this:
http://mydomain.com/script.php?pic=232";>
not only is bandwidth usage increase but so does cpu because php/gd has to
process them as well.. if they're including 5 or 6 of these images on a
single page i can imagin how much cpu is being used.
how can i work around this, if at all possible?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Catching error from mail function?

2005-03-31 Thread Ben Cheng
Hi I'm using the mail() function to send email and I know it's failing 
because it's returning a false but how do I tell what problem is?  Is 
there an error message that I can grab that will show me why the 
function is returning false?  Any help greatly appreciated.  Thanks!

-Ben
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] hotlinking images

2005-03-31 Thread John Nichel
Sebastian wrote:
i have an issue with site linking directly to my images.
the problem is these images are generated on the fly with php/gd -- they're
generated each time its viewed because i have done some watermarking
manipulation and didnt want to watermaker them in a static way. they're
including the images like this:
http://mydomain.com/script.php?pic=232";>
not only is bandwidth usage increase but so does cpu because php/gd has to
process them as well.. if they're including 5 or 6 of these images on a
single page i can imagin how much cpu is being used.
how can i work around this, if at all possible?
Are you using apache?  This might work in a .htaccess
Deny from all
Allow from .mydomain.com
Satisfy any
If that doesn't, maybe a rewrite rule that is normally used for media...
http://www.modwest.com/help/kb1-223.html
Try just changing/adding the php extension (don't know if that will 
work, but it's worth a shot).

--
By-Tor.com
...it's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] April fool easter egg

2005-03-31 Thread Ligaya Turmelle
don't forget to open up your phpinfo to see the easter egg for today. 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] strange problem, seems to be related to the character '$'

2005-03-31 Thread Zareef Ahmed
Hi Chris, 

 I tried to reproduce the problem with vertsoin 4.3.3 and 5, and its
working fine(producing same string).
If you have not find a bug in bug database why not submit  a new bug?

anyway changing single quotes to double may help ;)


zareef ahmed 
 

On Apr 1, 2005 2:36 AM, Chris Francy <[EMAIL PROTECTED]> wrote:
> Hello all,
> 
> I am hoping someone can point me in the right direction to resolving an odd
> bug.  I tried searching the bugs database and groups, but I can't think of
> the terms to use while searching for my problem that the search system will
> accept.
> 
> I have a script like the below, copied from the crypt manual page
> ---
>  '$1$rasmusle$')); } ?>
> ---
> 
> On my main web server, which is running php 4.3.10 with apache this script
> produces the following when I view the page on the web
> ---
>  string(13) "$1Hat1hn6A1pw"
> ---
> 
> When I run the script from the command line [php test.php] on the exact same
> server I get
> ---
> string(34) "$1$rasmusle$rISCgZzpwk3UhDidwXvin0"
> ---
> 
> I have also occasionaly seen some odd behavior where strings with dollar
> symbols $ in them won't print out correctly, but they have never seen that
> important..  Does anyone have any guesses, or hints about what the next step
> is to search for what is causing this odd behavior?  Any suggestions about a
> better place to ask?
> 
> Thanks for any help
> 
> Chris Francy
> [EMAIL PROTECTED]
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


-- 
Zareef Ahmed :: A PHP Developer in India ( Delhi )
Homepage :: http://www.zareef.net

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP logo is freaked in phpinfo();

2005-03-31 Thread Dan Rossi
Is someone playing games with me I have a rabbit photo which has taken 
over the php logo in my phpinfo(), I also saw a dog in a logo on a 
mirror for the php manual :) Its kinda cute, interested how its done.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP logo is freaked in phpinfo();

2005-03-31 Thread Lars B. Jensen
Is someone playing games with me I have a rabbit photo which has taken 
over the php logo in my phpinfo(), I also saw a dog in a logo on a 
mirror for the php manual :) Its kinda cute, interested how its done.
yeah, we hacked your server and changed the logo ... just for the fun of it
--
Lars B. Jensen, Internet Architect
CareerCross Japan
Japan's premier online career resource for english speaking professionals
http://www.careercross.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Jpgraph and drop down menus examples

2005-03-31 Thread Graham Anderson
does anyone have or know of an example where:
user chooses values from a couple of drop down boxes
dateabase is queries and gives the values to jpgraph
jpgraph draws the image on the same html page
all the examples I have seen reload the whole page or go to a new page 
when jpgraph does its thing

does an example like this exist ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: upload image file to my server

2005-03-31 Thread Nadim Attari
you may use this function
http://www.alienworkers.com/misc/uploadImage.htm

Regards,
Nadim Attari

> Hello, hard people.
>
> I want to do this, I like to upload image file,
> What can I do?.
>
> somebody help me.?
>
> best regards TOMAS

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] booking

2005-03-31 Thread Rob Agar
hey up all,

anyone have a snippet for generating a unique booking reference string,
say 6-10 characters long?  The kind of thing you get when you book a
flight or whatnot online.

it's friday afternoon and I'm too dim to figure one out myself :-/

Rob Agar
Web Site Consultant
Wild Lime Media - [EMAIL PROTECTED]
Studio 1, 70 McLeod Street, Cairns 4870
Tel: 07 4081 6677  |  Fax: 07 4081 6679

Web and Software Development Services  - www.wildlime.com
Search Engine Optimisation Services - search.wildlime.com
Professional Website Hosting Services -www.hostonlime.com.au

Winner 2004 Telstra North QLD Media Awards - Best Website - Online
Content & Information 

  

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Jpgraph and drop down menus examples

2005-03-31 Thread Richard Lynch
On Thu, March 31, 2005 9:26 pm, Graham Anderson said:
> does anyone have or know of an example where:
>
> user chooses values from a couple of drop down boxes
> dateabase is queries and gives the values to jpgraph
> jpgraph draws the image on the same html page
>
> all the examples I have seen reload the whole page or go to a new page
> when jpgraph does its thing
>
> does an example like this exist ?

Well, no.

If it was drawn on the same page without hitting the server, then PHP
wouldn't be involved, and it would all be in JavaScript.

Actually, I guess you could *MAYBE* write a Java Applet/Servlet, using
keep-alive, and then have PHP create the Java objects, and then, in
theory, you could have an open connection from the browser back and forth
to PHP...

But I've never seen anybody succeed at that, and I can guarantee that
you're asking for a LOT of headaches and big problems with server/browser
interaction, and HORRIBLE performance for the end-user experience.

You might be able to find something like jpgraph for JavaScript, but then
your question wouldn't really be appropriate here.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] strange problem, seems to be related to the character '$'

2005-03-31 Thread Richard Lynch
On Thu, March 31, 2005 1:06 pm, Chris Francy said:
> I am hoping someone can point me in the right direction to resolving an
> odd
> bug.  I tried searching the bugs database and groups, but I can't think of
> the terms to use while searching for my problem that the search system
> will
> accept.
>
> I have a script like the below, copied from the crypt manual page
> ---
>  '$1$rasmusle$')); } ?>
> ---
>
> On my main web server, which is running php 4.3.10 with apache this script
> produces the following when I view the page on the web
> ---
>  string(13) "$1Hat1hn6A1pw"
> ---
>
> When I run the script from the command line [php test.php] on the exact
> same
> server I get
> ---
> string(34) "$1$rasmusle$rISCgZzpwk3UhDidwXvin0"
> ---

Here's what's happening:

When your Apache user runs this script, it is using whatsit encryption
(DES?) that uses the 2-character salt.  Which is why it starts with '$1',
the first two characters of the salt you wanted to use.

When *YOU* run it, you're getting the whatsit encryption (Blowfish?) that
you actually wanted.

This has *NOTHING* to do with dollar signs, single quotes, or double quotes.

If you 'su' to the web user (if you have root and can do that) you'd
probably find the same behaviour from the command line.

Somehow, the Apache User is not able to find, or read, or execute,
whatever it takes to use Blowfish (or whatever it is you want) but it
*CAN* find, read, and execute the thingie to do DES (2-char salt).

So what you gotta look for is something that isn't $path-ed or chmod-ed
right for the Apache User to be able to find ($path) and read/execute
(chmod) permissions.

I don't really understand how the OS find/decides what encryption
algorithms and makes them available to applications/users, but that's
definitely the broken bit, for what that's worth.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Filemaker Checkbox Data Problem...

2005-03-31 Thread Richard Lynch
On Thu, March 31, 2005 12:44 pm, Nick Zukin said:
> I've got a client who uses Filemaker Pro and I'm trying to parse some of
> their data.  However, the checkbox data of theirs is giving me fits.  From
> what I've read, it's supposed to save checkboxes as data separated by
> carriage returns.  However, in looking at the data in EditPlus I can't
> discern what they are and in trying to parse them with str_replace I've
> had
> no luck searching for \r \n \r\n or anything else.
>
> Anyone else had this misfortune?

Since you have the string in question, and the funky character is
non-printable, do this:

\n";
  }
?>

Once you know what the ASCII value is, figuring out what to do about it
gets pretty trivial.

You could also open the files in a Hex editor and find out what the
character is, but the it's not a PHP question :-)

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] gmp in windows snaps

2005-03-31 Thread Richard Lynch
On Thu, March 31, 2005 11:24 am, Jon Aston said:
> I asked this in the windows section yesterday and received no answer.
>
> I have copied the sample of gmp_add() from the function page and have
> tried
> to run it from the snap that I downloaded this morning with the
> recommended
> ini that is in the folder with it and I keep getting the error here.
>
> PHP Fatal error:  Call to undefined function gmp_add()
>
> do I need a dll extension or need to install gmp somehow?

Somewhere "out there" you'll need to find something whose name is like
"phpgmp.dll"

And, of course, it will have to have been compiled to match YOUR versions
of PHP and GMP.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Newbie Define Paths question

2005-03-31 Thread Richard Lynch
> 


In what way does it not work?

Syntax error?

WILD GUESS:
Maybe you just need parens:



I wouldn't THINK you need that, but maybe somehow the constant makes it
necessary...

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php