[PHP] char set ?

2013-09-07 Thread georg chambert
This Q is possibly rather HTML (is there a good list for that...)

anyways;
 Im in Sweden, and have done som pages with Swedish text, however our special 
(weird) characters åäö
comes out wrong when displayd in browser, would be nice if I could tag the text 
and keep the file as is rather
than changing the file format of the text (and encode the characters with some 
double/prefix notation, 
which I guess would be the main stream
anyone ?

regards
Georg

Re: [PHP] Re: PHP vs JAVA

2013-08-21 Thread georg chambert

Hi,

my I shake the subject a little; Ive been doing some PHP and found it ok 
to work with

not so much fuss, but that was PHP4, what about PHP5 ?
Dont really checked the difference but made a short-scan and found that it 
had be

screwed around with ?

Any think, should I change to 5 ?

BR georg

- Original Message - 
From: Tim Streater t...@clothears.org.uk

To: PHP List phpl...@arashidigital.com; php-general@lists.php.net
Sent: Wednesday, August 21, 2013 1:59 PM
Subject: [PHP] Re: PHP vs JAVA


On 20 Aug 2013 at 23:59, PHP List phpl...@arashidigital.com wrote:


While I don't have any references to back it up - my guess would be that
Java may be seen as more versatile in general programming terms.  A
staggering number of enterprise level web applications are built with
Java, add to that the possibility of writing Android apps with the same
knowledge.


To me the salient point is, does java has as extensive a library or set of 
interfaces to other packages (such as SQLite, mysql, etc)?



I would say that, in general, the other teacher is incorrect speaking
strictly in terms of web development.  PHP has already won that crown
many times over.  That said, when I was in University, it was difficult
to find a programming class that taught anything but Java - and that was
10yrs ago now.  I chalked it up to the education bubble not being able
to see what the rest of the world is actually doing.


Was PHP OOP-capable at the time? Perhaps the edu-bubble was simply looking 
down its nose at PHP. There being lots of courses proves nothing in and of 
itself. 20 years ago, there were lots of PC mags you could buy, which caused 
some folks to say look how much better the PC is supported than other 
platforms. Truth was, at the time, such support was needed given the mess 
of 640k limits, DOS, IRQs and the like, most of which issues have ceased to 
be relevant.


Anyway, why should one need a course to learn PHP, assuming you already know 
other languages. It's simple enough.


--
Cheers  --  Tim








--
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] PHP is Zero

2013-06-13 Thread georg

Sorry missed to post list as well


Hi Daniel,
here is wild goose

i assume you have 3 x =
in your problem formulation
which could possibly result in the akward standard C mixup;
the rightmost = first parsed and resulting in an ASSIGMENT to the variable 
with that value,
the comes the parsing of == which is the equivalence test, and see; the 
variable is
the same since it was just assigned that value; if this theory is correct 
you would

get TRUE regardless what number is following :)
/g

- Original Message - 
From: BUSCHKE Daniel daniel.busc...@nextiraone.eu

To: php-general@lists.php.net
Sent: Thursday, June 13, 2013 9:59 AM
Subject: [PHP] PHP is Zero



Hi all,
I want to start a discussion about a PHP behaviour that drives me crazy 
for years. For the beginning I would like you to guess what the result of 
the following snippet will be:


var_dump('PHP' == 0);

I know the difference of == and === but the result was unexcpected for 
me. And I hope it is also for you. The result is simply true. Why is it 
true? I guess this happens because of the conversion from 'PHP' to a 
number which will be 0 in PHP. And of course 0 equals 0. There are 
several points that I just want to drop into this mailinglist to discuss 
about:


1. Why? :)
2. Why is PHP converting the String into a Number instead of converting 
the Number into a String? (If my guess concerning the behaviour is 
correct)
3. Why is PHP throwing data away which has the developer explicit given 
to the interpreter?
4. Why does var_dump(0 == 'PHP'); has the same result as the snippet 
above? This meens that the equal operator is not explictly implemented in 
the string or integer?
5. Thats a bug I have opend: https://bugs.php.net/bug.php?id=51739 where 
I also had the same problems because 8315e839da08e2a7afe6dd12ec58245d 
was converted into float(INF) by throwing everything starting from 
da08.. away.


I am using PHP since the year 2000. This means I have 13 years of 
experience in PHP and I really would like you to NOT just answer works 
as designed. I know it works as designed but I want to discuss the 
design. Also I know that the fuzzy behaviour of type conversion is a 
main feature of PHP. I guess this is one point which makes PHP that 
successfull. But - in my opinion - the described behaviour is to fuzzy 
and just confuses developers.


Best Regards
Daniel Buschke

--
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] browser rendering

2013-06-02 Thread georg

Possibly this issue is for other fora, which you might direct me, anyways;

I have been dablling making my own little webpages, however having gotten a 
nice
result jon fireforx, I realize picture sizes gets treated very differntly on 
different browsers !!!
so the looks of the pages get very strange from smaller (Opera) and much 
bigger (Explorer)

brower !!!

any hints for mitigation ?

br georg 



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



Re: [PHP] ODBC

2013-05-19 Thread georg

Hi Negin, tnx for advice,

now however I have successfully downloaded and installed ODBC and
the things needed to connect PHP-ODBC (yum on the same actually)

however, the llinked library file that the odbcinit.ini file points to in 
order to
link the libmimodbc.so library is not found, though the file is obviously at 
that location


(apache error_log contains a complaint file not found )

so Im still not through completely

/g
- Original Message - 
From: Negin Nickparsa nickpa...@gmail.com

To: georg georg.chamb...@telia.com
Cc: David OBrien dgobr...@gmail.com; PHP General 
php-general@lists.php.net

Sent: Saturday, May 18, 2013 7:56 PM
Subject: Re: [PHP] ODBC



do you have the driver in linux?
https://www.microsoft.com/en-us/download/details.aspx?id=28160



On Tue, May 7, 2013 at 11:46 AM, georg georg.chamb...@telia.com wrote:


but isnt there some yum command that will fix things for me (download if
necessary, but I actually think
the ODBC would be in the distribution of fedora ?)

br georg

- Original Message - From: David OBrien dgobr...@gmail.com
To: georg georg.chamb...@telia.com
Cc: PHP General php-general@lists.php.net
Sent: Monday, May 06, 2013 11:06 PM
Subject: Re: [PHP] ODBC



 On Mon, May 6, 2013 at 3:32 PM, georg georg.chamb...@telia.com wrote:


 Hi,


Id like to get ODBC connection to SQL from PHP going. Ive done that on
XP,
but now Im switching
to Linux (Fedora).

My impression in that the connecting part is per the DB designers
responsibility. Im using Mimer-SQL,
but cant find any information on how to set up ODBC for that. Any 
advice

welcome.

BR georg




http://developer.mimer.com/**howto/howto_57.htmhttp://developer.mimer.com/howto/howto_57.htm




--
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] ODBC

2013-05-19 Thread georg

Hi Serge,
compliled some more info

Apache error log as:
---
[Tue May 14 17:45:11 2013] [error] [client 127.0.0.1] PHP Warning: 
odbc_connect(): SQL error: [unixODBC][Driver Manager]Can't open lib 
'/lib/libmimodbc.so' : file not found, SQL state 01000 in SQLConnect in 
/var/www/html/my2.php on line 19, referer: http://127.0.0.1/


File that is deemed missing:
---
[root@this ge]# ls -alF /lib/libmimodbc.so
lrwxrwxrwx. 1 root root 39 Apr 29 22:21 /lib/libmimodbc.so - 
/opt/MimerSQL-10.0.6J/lib/libmimodbc.so*


--- and since this seem to be a link rather than the file (for some reason, 
think I actually moved lib there---


[root@this ge]# ls -alF /opt
total 12
drwxr-xr-x. 3 root root 4096 Apr 29 22:20 ./
dr-xr-xr-x. 18 root root 4096 May 16 19:15 ../
drwxr-xr-x. 10 root root 4096 Apr 29 22:20 MimerSQL-10.0.6J/
[root@this ge]# ls -alF /opt/MimerSQL-10.0.6J/
total 40
drwxr-xr-x. 10 root root 4096 Apr 29 22:20 ./
drwxr-xr-x. 3 root root 4096 Apr 29 22:20 ../
drwxr-xr-x. 2 root root 4096 Dec 21 2011 bin/
drwxr-xr-x. 8 root root 4096 Apr 29 22:20 DbVisualizer/
drwxr-xr-x. 2 root root 4096 Dec 21 2011 doc/
drwxr-xr-x. 2 root root 4096 Dec 21 2011 examples/
drwxr-xr-x. 2 root root 4096 Dec 21 2011 include/
drwxr-xr-x. 2 root root 4096 Dec 21 2011 lib/
drwxr-xr-x. 5 root root 4096 Dec 21 2011 man/
drwxr-xr-x. 2 root root 4096 Apr 29 22:21 misc/
[root@this ge]# ls -alF /opt/MimerSQL-10.0.6J/lib
total 12516
drwxr-xr-x. 2 root root 4096 Dec 21 2011 ./
drwxr-xr-x. 10 root root 4096 Apr 29 22:20 ../
-rwxr-xr-x. 1 root root 515740 Dec 20 2011 compat.a*
-rwxr-xr-x. 1 root root 1051162 Dec 20 2011 libmimcomm.so*
-rwxr-xr-x. 1 root root 1346488 Dec 20 2011 libmimdbi.so*
-rwxr-xr-x. 1 root root 5397415 Dec 20 2011 libmimdbs.so*
-rwxr-xr-x. 1 root root 1922776 Dec 20 2011 libmimer.so*
-rwxr-xr-x. 1 root root 6416 Dec 20 2011 libmimerS.so*
-r-xr-xr-x. 1 root root 1693640 Dec 20 2011 libmimodbc.so*
-rwxr-xr-x. 1 root root 507386 Dec 20 2011 libqsqlmimer.so*
-rwxr-xr-x. 1 root root 136312 Dec 20 2011 mimjdbc3.jar*
-rwxr-xr-x. 1 root root 1252 Dec 20 2011 mimsqlxa.o*
-rwxr-xr-x. 1 root root 212423 Dec 20 2011 psmdebug.jar*
[root@this ge]# ls -alF /opt/MimerSQL-10.0.6J/lib/libmimodbc.so
-r-xr-xr-x. 1 root root 1693640 Dec 20 2011 
/opt/MimerSQL-10.0.6J/lib/libmimodbc.so*

[root@this ge]#

 so that seem to be in place ?? --

Tnx
Georg


- Original Message - 
From: Serge Fonville

To: georg
Cc: Negin Nickparsa ; PHP Mailinglist
Sent: Sunday, May 19, 2013 12:45 PM
Subject: Re: [PHP] ODBC



Hi,

I'm not really clear on what you have and haven't done, but did you check 
permissions?



HTH



Kind regards/met vriendelijke groet,


Serge Fonville


http://www.sergefonville.nl

Convince Microsoft!
They need to add TRUNCATE PARTITION in SQL Server
https://connect.microsoft.com/SQLServer/feedback/details/417926/truncate-partition-of-partitioned-table



2013/5/19 georg georg.chamb...@telia.com

Hi Negin, tnx for advice,

now however I have successfully downloaded and installed ODBC and
the things needed to connect PHP-ODBC (yum on the same actually)

however, the llinked library file that the odbcinit.ini file points to in 
order to
link the libmimodbc.so library is not found, though the file is obviously at 
that location


(apache error_log contains a complaint file not found )

so Im still not through completely

/g
- Original Message - From: Negin Nickparsa nickpa...@gmail.com
To: georg georg.chamb...@telia.com
Cc: David OBrien dgobr...@gmail.com; PHP General 
php-general@lists.php.net

Sent: Saturday, May 18, 2013 7:56 PM

Subject: Re: [PHP] ODBC



do you have the driver in linux?
https://www.microsoft.com/en-us/download/details.aspx?id=28160



On Tue, May 7, 2013 at 11:46 AM, georg georg.chamb...@telia.com wrote:


but isnt there some yum command that will fix things for me (download if
necessary, but I actually think
the ODBC would be in the distribution of fedora ?)

br georg

- Original Message - From: David OBrien dgobr...@gmail.com
To: georg georg.chamb...@telia.com
Cc: PHP General php-general@lists.php.net
Sent: Monday, May 06, 2013 11:06 PM
Subject: Re: [PHP] ODBC



On Mon, May 6, 2013 at 3:32 PM, georg georg.chamb...@telia.com wrote:


Hi,


Id like to get ODBC connection to SQL from PHP going. Ive done that on
XP,
but now Im switching
to Linux (Fedora).

My impression in that the connecting part is per the DB designers
responsibility. Im using Mimer-SQL,
but cant find any information on how to set up ODBC for that. Any advice
welcome.

BR georg




http://developer.mimer.com/**howto/howto_57.htmhttp://developer.mimer.com/howto/howto_57.htm




--
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



Re: [PHP] ODBC

2013-05-19 Thread georg
Staring at it myself;  should there be xr in the last position of the access 
definitions ?

(how does Apache process come into the system access wise ?)

tnx
georg

- Original Message - 
From: georg georg.chamb...@telia.com

To: Serge Fonville serge.fonvi...@gmail.com
Cc: php-general@lists.php.net
Sent: Sunday, May 19, 2013 1:29 PM
Subject: Re: [PHP] ODBC



Hi Serge,
compliled some more info

Apache error log as:
---
[Tue May 14 17:45:11 2013] [error] [client 127.0.0.1] PHP Warning: 
odbc_connect(): SQL error: [unixODBC][Driver Manager]Can't open lib 
'/lib/libmimodbc.so' : file not found, SQL state 01000 in SQLConnect in 
/var/www/html/my2.php on line 19, referer: http://127.0.0.1/


File that is deemed missing:
---
[root@this ge]# ls -alF /lib/libmimodbc.so
lrwxrwxrwx. 1 root root 39 Apr 29 22:21 /lib/libmimodbc.so - 
/opt/MimerSQL-10.0.6J/lib/libmimodbc.so*


--- and since this seem to be a link rather than the file (for some 
reason, think I actually moved lib there---


[root@this ge]# ls -alF /opt
total 12
drwxr-xr-x. 3 root root 4096 Apr 29 22:20 ./
dr-xr-xr-x. 18 root root 4096 May 16 19:15 ../
drwxr-xr-x. 10 root root 4096 Apr 29 22:20 MimerSQL-10.0.6J/
[root@this ge]# ls -alF /opt/MimerSQL-10.0.6J/
total 40
drwxr-xr-x. 10 root root 4096 Apr 29 22:20 ./
drwxr-xr-x. 3 root root 4096 Apr 29 22:20 ../
drwxr-xr-x. 2 root root 4096 Dec 21 2011 bin/
drwxr-xr-x. 8 root root 4096 Apr 29 22:20 DbVisualizer/
drwxr-xr-x. 2 root root 4096 Dec 21 2011 doc/
drwxr-xr-x. 2 root root 4096 Dec 21 2011 examples/
drwxr-xr-x. 2 root root 4096 Dec 21 2011 include/
drwxr-xr-x. 2 root root 4096 Dec 21 2011 lib/
drwxr-xr-x. 5 root root 4096 Dec 21 2011 man/
drwxr-xr-x. 2 root root 4096 Apr 29 22:21 misc/
[root@this ge]# ls -alF /opt/MimerSQL-10.0.6J/lib
total 12516
drwxr-xr-x. 2 root root 4096 Dec 21 2011 ./
drwxr-xr-x. 10 root root 4096 Apr 29 22:20 ../
-rwxr-xr-x. 1 root root 515740 Dec 20 2011 compat.a*
-rwxr-xr-x. 1 root root 1051162 Dec 20 2011 libmimcomm.so*
-rwxr-xr-x. 1 root root 1346488 Dec 20 2011 libmimdbi.so*
-rwxr-xr-x. 1 root root 5397415 Dec 20 2011 libmimdbs.so*
-rwxr-xr-x. 1 root root 1922776 Dec 20 2011 libmimer.so*
-rwxr-xr-x. 1 root root 6416 Dec 20 2011 libmimerS.so*
-r-xr-xr-x. 1 root root 1693640 Dec 20 2011 libmimodbc.so*
-rwxr-xr-x. 1 root root 507386 Dec 20 2011 libqsqlmimer.so*
-rwxr-xr-x. 1 root root 136312 Dec 20 2011 mimjdbc3.jar*
-rwxr-xr-x. 1 root root 1252 Dec 20 2011 mimsqlxa.o*
-rwxr-xr-x. 1 root root 212423 Dec 20 2011 psmdebug.jar*
[root@this ge]# ls -alF /opt/MimerSQL-10.0.6J/lib/libmimodbc.so
-r-xr-xr-x. 1 root root 1693640 Dec 20 2011 
/opt/MimerSQL-10.0.6J/lib/libmimodbc.so*

[root@this ge]#

 so that seem to be in place ?? --

Tnx
Georg


- Original Message - 
From: Serge Fonville

To: georg
Cc: Negin Nickparsa ; PHP Mailinglist
Sent: Sunday, May 19, 2013 12:45 PM
Subject: Re: [PHP] ODBC



Hi,

I'm not really clear on what you have and haven't done, but did you check 
permissions?



HTH



Kind regards/met vriendelijke groet,


Serge Fonville


http://www.sergefonville.nl

Convince Microsoft!
They need to add TRUNCATE PARTITION in SQL Server
https://connect.microsoft.com/SQLServer/feedback/details/417926/truncate-partition-of-partitioned-table



2013/5/19 georg georg.chamb...@telia.com

Hi Negin, tnx for advice,

now however I have successfully downloaded and installed ODBC and
the things needed to connect PHP-ODBC (yum on the same actually)

however, the llinked library file that the odbcinit.ini file points to in 
order to
link the libmimodbc.so library is not found, though the file is obviously 
at that location


(apache error_log contains a complaint file not found )

so Im still not through completely

/g
- Original Message - From: Negin Nickparsa nickpa...@gmail.com
To: georg georg.chamb...@telia.com
Cc: David OBrien dgobr...@gmail.com; PHP General 
php-general@lists.php.net

Sent: Saturday, May 18, 2013 7:56 PM

Subject: Re: [PHP] ODBC



do you have the driver in linux?
https://www.microsoft.com/en-us/download/details.aspx?id=28160



On Tue, May 7, 2013 at 11:46 AM, georg georg.chamb...@telia.com wrote:


but isnt there some yum command that will fix things for me (download if
necessary, but I actually think
the ODBC would be in the distribution of fedora ?)

br georg

- Original Message - From: David OBrien dgobr...@gmail.com
To: georg georg.chamb...@telia.com
Cc: PHP General php-general@lists.php.net
Sent: Monday, May 06, 2013 11:06 PM
Subject: Re: [PHP] ODBC



On Mon, May 6, 2013 at 3:32 PM, georg georg.chamb...@telia.com wrote:


Hi,


Id like to get ODBC connection to SQL from PHP going. Ive done that on
XP,
but now Im switching
to Linux (Fedora).

My impression in that the connecting part is per the DB designers
responsibility. Im using Mimer-SQL,
but cant find any information on how to set up ODBC for that. Any advice
welcome.

BR georg




http://developer.mimer.com/**howto/howto_57.htmhttp://developer.mimer.com

Re: [PHP] ODBC

2013-05-19 Thread georg
Hi !

just started and logged onto the machine (bitch)

I have hitherto ignored an secturity alert message that popps up when 
restarting and logging on first time

som SELinux Altert Browser which informs me that 

process: httpd has attempted this access: execute

on this file libmimodbc.so

what this security amounts to I dont know but the utility it gives me three 
options:

1. If you want to fix the lable  /optso  (what label, this i a file not 
a label...)

default label (what label ?) should be lib_t

2. If you wnat to allow httpd to have access

then there is possibility to click one of these choices to light up and make 
readable the suggested action:

you need to change the label on /opt/.so  (what darn label... again?)  

#semanage fcontext -a -t File_type '/optso'

where File_type is one of :  (then follows a huge dump of choices, among which 
is lib_t )

--
I did this supplying lib_t

think, think, think a long time, silent return, so the action should be happy, 
NO DIFFERNCE, same error log


Isnt security wondefful. It really sees to that noone can achive nothing.

/georg
  - Original Message - 
  From: Serge Fonville 
  To: georg ; PHP Mailinglist 
  Sent: Sunday, May 19, 2013 2:35 PM
  Subject: Re: [PHP] ODBC


  Hmm, I just noticed GMAIL no longer replies to all, so here is all my 
correspondence that wasn't sent to the list.



  Kind regards/met vriendelijke groet,


  Serge Fonville


  http://www.sergefonville.nl

  Convince Microsoft!
  They need to add TRUNCATE PARTITION in SQL Server
  
https://connect.microsoft.com/SQLServer/feedback/details/417926/truncate-partition-of-partitioned-table
 



  2013/5/19 Serge Fonville serge.fonvi...@gmail.com

damn, other way around

su --shell=/bin/bash - apache



Kind regards/met vriendelijke groet,


Serge Fonville


http://www.sergefonville.nl

Convince Microsoft!
They need to add TRUNCATE PARTITION in SQL Server

https://connect.microsoft.com/SQLServer/feedback/details/417926/truncate-partition-of-partitioned-table
 



2013/5/19 Serge Fonville serge.fonvi...@gmail.com

  since your root you can su apache --shell /bin/bash

  from theron you can do the same tests



  Kind regards/met vriendelijke groet,


  Serge Fonville


  http://www.sergefonville.nl

  Convince Microsoft!
  They need to add TRUNCATE PARTITION in SQL Server
  
https://connect.microsoft.com/SQLServer/feedback/details/417926/truncate-partition-of-partitioned-table
 



  2013/5/19 georg georg.chamb...@telia.com

As I said, Im a bit new to Linux, and the user and access system 
seem to me a bit .

I dont reallly know what user apache runs as, possibly this process 
status give something ?
(seem to be 8 processes, but what the user be apache ?

i have accessed php directly, when su root;

#php -r 'odbc_connect()';

give only silece, which i interprete that php actually successfully 
opens the db ?



[root@this ge]# ps aux|grep httpd

root 1377 0.0 0.7 28900 7804 ? Ss 10:50 0:00 /usr/sbin/httpd -k start

apache 1378 0.0 0.4 29032 4164 ? S 10:50 0:00 /usr/sbin/httpd -k start

apache 1379 0.0 0.4 29032 4164 ? S 10:50 0:00 /usr/sbin/httpd -k start

apache 1380 0.0 0.4 29032 4164 ? S 10:50 0:00 /usr/sbin/httpd -k start

apache 1381 0.0 0.4 29032 4164 ? S 10:50 0:00 /usr/sbin/httpd -k start

apache 1382 0.0 0.4 29032 4164 ? S 10:50 0:00 /usr/sbin/httpd -k start

apache 1383 0.0 0.4 29032 4164 ? S 10:50 0:00 /usr/sbin/httpd -k start

apache 1384 0.0 0.4 29032 4164 ? S 10:50 0:00 /usr/sbin/httpd -k start

apache 1385 0.0 0.4 29032 4164 ? S 10:50 0:00 /usr/sbin/httpd -k start

root 1387 0.0 0.0 4760 788 pts/0 S+ 10:51 0:00 grep --color=au



does this mean that the user is apache ?, and then what would that 
user have as login password?



tnx
georg


- Original Message - From: Serge Fonville 
serge.fonvi...@gmail.com
To: georg georg.chamb...@telia.com
Cc: PHP Mailinglist php-general@lists.php.net
Sent: Sunday, May 19, 2013 1:42 PM
Subject: Re: [PHP] ODBC



  could you su to the user apache runs as (possibly specifying the 
shell to
  use) and navigate to the directory?

  Kind regards/met vriendelijke groet,

  Serge Fonville

  http://www.sergefonville.nl

  Convince Microsoft!
  They need to add TRUNCATE PARTITION in SQL Server
  
https://connect.microsoft.com/SQLServer/feedback/details/417926/truncate-partition-of-partitioned-table


  2013/5/19 georg georg.chamb...@telia.com


Hi Serge,
compliled some more info

Apache error log as:
---
[Tue May 14 17:45:11 2013] [error] [client 127.0.0.1] PHP Warning:
odbc_connect(): SQL error

Re: [PHP] ODBC

2013-05-19 Thread georg
Actually who the heck has put SELinux in my machine ? 

anyone knows (is this a part of fedora ?)

/g

Re: [PHP] ODBC

2013-05-19 Thread georg
Solved. Gosch big F F-word. It was this very fantastic hidden feature 
everyone (?) longs for:


SELinux which is integral to Fedora Linux it seems
Making my system secure, from badasses like myself.

well, I found a verb;  setenforce 0  -- made it, now I have the right to do 
what should be done


possibly I one day will learn how to use it in a proper way to actually 
secure my server

and then I might even be happy about it.

realizing this has not been PHP at all, and thanks for all advice
for now

/georg

- Original Message - 
From: Serge Fonville serge.fonvi...@gmail.com

To: la...@software-horizons.com
Cc: georg georg.chamb...@telia.com; PHP Mailinglist 
php-general@lists.php.net

Sent: Sunday, May 19, 2013 5:25 PM
Subject: Re: [PHP] ODBC



better would be to allow apache acces to the module
i.e. http://www.webhostingtalk.com/showthread.php?t=711418

Kind regards/met vriendelijke groet,

Serge Fonville

http://www.sergefonville.nl

Convince Microsoft!
They need to add TRUNCATE PARTITION in SQL Server
https://connect.microsoft.com/SQLServer/feedback/details/417926/truncate-partition-of-partitioned-table


2013/5/19 Larry Martell la...@software-horizons.com


On Sun, May 19, 2013 at 9:06 AM, georg georg.chamb...@telia.com wrote:
 Actually who the heck has put SELinux in my machine ?

 anyone knows (is this a part of fedora ?)

Never used Fedora, but it's part of Red Hat and Centos, so would guess
it's also part of fedora. You can disable SELinux with this:

echo 0  /selinux/enforce






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



Re: [PHP] undef func - any more clues ?

2013-05-14 Thread georg

Thanks !

yum install php-odbc 
really did the trick.


Now Im stuck where connect gives an error in apache error_log
that it cannot find file /lib/libmimerodbc.so  which is evidently there
in exactly that place (as given in odbcini.ini for driver definition) !
A bit unexpected. (possibly an error in errorhandling ?, i.e. other cause)

/georg

- Original Message - 
From: Jim Lucas li...@cmsws.com

To: georg georg.chamb...@telia.com
Cc: a...@ashleysheridan.co.uk; php-general@lists.php.net
Sent: Tuesday, May 14, 2013 3:25 AM
Subject: Re: [PHP] undef func - any more clues ?



On 05/12/2013 10:34 AM, georg wrote:

Hi
Im not really following, I have done:
pecl list-all ; but dont find anything that has to do with ODBC

so still stuck with Apache error log saying : no such function (or eqiv
speak) odbc_connect()
tnx
Georg



I am using a CentOS 6.4 system as a work station.  So, with that said, 
the systems are similar, but still different enough that you need to 
make a few changes regarding the package names to get things working.


I also have Apache installed the I develop with.  These are the steps 
that I performed, and the order I performed them in, to get odbc working 
at the CLI and with Apache.


Here first is an example of what I got when trying to call 
odbc_connect() without the proper packages installed from the CLI.


[root@jim ~]# php -r odbc_connect();
PHP Fatal error:  Call to undefined function odbc_connect() in Command 
line code on line 1


Fatal error: Call to undefined function odbc_connect() in Command line 
code on line 1



Search for the correct package.
[root@jim ~]$ yum list php* | grep -i odbc
php-odbc.x86_64  5.3.3-22.el6 base

Install found package... (change the package name if needed)
[root@jim ~]# yum install php-odbc

...

Total download size: 428 k
Installed size: 1.2 M
Is this ok [y/N]: y

...

Running Transaction
  Installing : unixODBC-2.2.14-12.el6_3.x86_64   1/2
  Installing : php-odbc-5.3.3-22.el6.x86_64  2/2
  Verifying  : php-odbc-5.3.3-22.el6.x86_64  1/2
  Verifying  : unixODBC-2.2.14-12.el6_3.x86_64   2/2

Installed:
  php-odbc.x86_64 0:5.3.3-22.el6

Dependency Installed:
  unixODBC.x86_64 0:2.2.14-12.el6_3

Complete!

Update your locate database
[root@jim ~]# updatedb

Search for the recently installed package
[root@jim ~]# locate odbc.so | grep php
/usr/lib64/php/modules/odbc.so
/usr/lib64/php/modules/pdo_odbc.so

Re-run the first test - ah it is found...
[root@jim ~]# php -r odbc_connect();
PHP Warning:  odbc_connect() expects at least 3 parameters, 0 given in 
Command line code on line 1


Warning: odbc_connect() expects at least 3 parameters, 0 given in 
Command line code on line 1



Once you have this, you know that everything in place to get it working 
with Apache.


Now to test in the web server.  This is what I received when I viewed my 
test script via Apache and my browser.


URL: http://localhost/odbc_test.php

Fatal error: Call to undefined function odbc_connect() in 
/var/www/html/odbc_test.php on line 3



Now, to get it working with Apache, all I had to do was restart the web 
server.


[root@jim html]# service httpd restart
Stopping httpd:[  OK  ]
Starting httpd:[  OK  ]

Now, refreshing the above page gives me this.

Warning: odbc_connect() expects at least 3 parameters, 0 given in 
/var/www/html/odbc_test.php on line 3


So, it is now working.

Review my steps above, make sure you perform them as I did and you 
should be working when you are done.


Let us know if you need anything further.

--
Jim Lucas

http://www.cmsws.com/
http://www.cmsws.com/examples/


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



Re: [PHP] undef func - any more clues ?

2013-05-13 Thread georg
Hi David, and all who helped,

for now one step forward  my text message db open hit the screen.

after som brain-melting of various inputs i ad hoc came to the quite obvious 
conclusion,
try yum with what yum could be wanting:

** yum install php-odbc **

and see that magic, without knowledge of what Im really doing I got through

tnx 
/georg
  - Original Message - 
  From: georg 
  To: David OBrien 
  Sent: Sunday, May 12, 2013 9:00 PM
  Subject: Re: [PHP] undef func - any more clues ?


  found this that might be right (64  what does that stand for, i have to my 
knowledge a 32bit machine)

  how would I go about to install this ? 

  tnx
  Goerg
- Original Message - 
From: David OBrien 
To: georg 
Sent: Sunday, May 12, 2013 7:54 PM
Subject: Re: [PHP] undef func - any more clues ?



On May 12, 2013 1:35 PM, georg georg.chamb...@telia.com wrote:

 Hi
 Im not really following, I have done:
 pecl list-all ; but dont find anything that has to do with ODBC

 so still stuck with Apache error log saying : no such function (or eqiv 
speak) odbc_connect()
 tnx
 Georg

 - Original Message - From: Ashley Sheridan 
a...@ashleysheridan.co.uk
 To: georg georg.chamb...@telia.com
 Cc: James Yerge ja...@nixsecurity.org; PHP General 
php-general@lists.php.net
 Sent: Saturday, May 11, 2013 12:05 PM
 Subject: Re: [PHP] undef func - any more clues ?



 On Sat, 2013-05-11 at 11:36 +0200, georg wrote:

 Hi again,
 is there any more clues to how Apache/PHP would get hold of ODBC 
libraries ?


 (( summery; Im a bit new to linux (here Fedora 17) so Im not sure of how
 these entities get hold of each other; are they linked into same module 
or
 are they dynamically loaded
 libraries, guess that the latter. Then Im not clear over the path or
 linkage of these; that is where
 are the definitions made to link them together; there is a series of 
conf
 and ini files (and keyword) which should
 link names, and point to file names in (defined ?) directories (given by
 paths)))

 / Georg






 - Original Message - From: georg georg.chamb...@telia.com
 To: James Yerge ja...@nixsecurity.org
 Cc: PHP General php-general@lists.php.net
 Sent: Saturday, May 11, 2013 12:47 AM
 Subject: Re: [PHP] undef func


  Ok, txn ! so
  yum install php-devel
 
  worked, and got me a hole lot of pearl, however, still PHP has
  odbc_connect() call as undefined function. as per Apache error log.
 
  There was some mentioning of php.ini; could that be something here ?
 
  /georg
 
  - Original Message -  From: James Yerge 
ja...@nixsecurity.org
  To: Gabriel Ricci gabrielri...@gmail.com
  Cc: georg georg.chamb...@telia.com; Serge Fonville
  serge.fonvi...@gmail.com; Daniel Brown danbr...@php.net; 
tamouse
  mailing lists tamouse.li...@gmail.com; PHP General
  php-general@lists.php.net
  Sent: Saturday, May 11, 2013 12:12 AM
  Subject: Re: [PHP] undef func
 
 
  On 05/10/2013 06:08 PM, Gabriel Ricci wrote:
  pear isntall php-dev
 
 
  Att.
 
  Gabriel Ricci
  
 
  Website http://gabrielricci.github.com
  Follow @gabrielricci http://www.twitter.com/gabrielricci
  Facebook profile http://www.facebook.com/gabrielricci2, GitHub
  profilehttp://www.github.com/gabrielricci/
  http://code.google.com/p/syslibjs/
 
 
  On Fri, May 10, 2013 at 7:07 PM, georg georg.chamb...@telia.com 
 wrote:
 
  **
  So thanx again, closing in. It turned out that I had tried; yum 
 install
  php_pear  // i.e. with an underscore, should be with hyphen !
  so crawling a mm forward; then stuck on; pecl install pdo_odbc
//  in
  this case the undrscore is ok (!)
  which fails as
 
  Cant find php headers in /usr/include/php  followed by Error 
 phpize
  failed
 
  /georg
 
  - Original Message -
  *From:* Serge Fonville serge.fonvi...@gmail.com
  *To:* georg georg.chamb...@telia.com
  *Cc:* Gabriel Ricci gabrielri...@gmail.com ; Daniel
  Browndanbr...@php.net; tamouse
  mailing lists tamouse.li...@gmail.com ; PHP
  Generalphp-general@lists.php.net
  *Sent:* Friday, May 10, 2013 11:41 PM
  *Subject:* Re: [PHP] undef func
 
   Assuming OP is using a distro that uses yum for package 
management;
  A yum whatprovides pecl should provide the package name that 
needs  to
  be
  installed, in case of an apt based distro, this could be done  
through
  aptitude. Either way, it seems what might provide more information 
 is
  details like the commands executed, the distro used and the errors
  received
 
  HTH
 
   Kind regards/met

Re: [PHP] undef func - any more clues ?

2013-05-12 Thread georg

Hi
Im not really following, I have done:
pecl list-all ; but dont find anything that has to do with ODBC

so still stuck with Apache error log saying : no such function (or eqiv 
speak) odbc_connect()

tnx
Georg

- Original Message - 
From: Ashley Sheridan a...@ashleysheridan.co.uk

To: georg georg.chamb...@telia.com
Cc: James Yerge ja...@nixsecurity.org; PHP General 
php-general@lists.php.net

Sent: Saturday, May 11, 2013 12:05 PM
Subject: Re: [PHP] undef func - any more clues ?



On Sat, 2013-05-11 at 11:36 +0200, georg wrote:


Hi again,
is there any more clues to how Apache/PHP would get hold of ODBC 
libraries ?



(( summery; Im a bit new to linux (here Fedora 17) so Im not sure of how
these entities get hold of each other; are they linked into same module 
or

are they dynamically loaded
libraries, guess that the latter. Then Im not clear over the path or
linkage of these; that is where
are the definitions made to link them together; there is a series of conf
and ini files (and keyword) which should
link names, and point to file names in (defined ?) directories (given by
paths)))

/ Georg






- Original Message - 
From: georg georg.chamb...@telia.com

To: James Yerge ja...@nixsecurity.org
Cc: PHP General php-general@lists.php.net
Sent: Saturday, May 11, 2013 12:47 AM
Subject: Re: [PHP] undef func


 Ok, txn ! so
 yum install php-devel

 worked, and got me a hole lot of pearl, however, still PHP has
 odbc_connect() call as undefined function. as per Apache error log.

 There was some mentioning of php.ini; could that be something here ?

 /georg

 - Original Message - 
 From: James Yerge ja...@nixsecurity.org

 To: Gabriel Ricci gabrielri...@gmail.com
 Cc: georg georg.chamb...@telia.com; Serge Fonville
 serge.fonvi...@gmail.com; Daniel Brown danbr...@php.net; tamouse
 mailing lists tamouse.li...@gmail.com; PHP General
 php-general@lists.php.net
 Sent: Saturday, May 11, 2013 12:12 AM
 Subject: Re: [PHP] undef func


 On 05/10/2013 06:08 PM, Gabriel Ricci wrote:
 pear isntall php-dev


 Att.

 Gabriel Ricci
 

 Website http://gabrielricci.github.com
 Follow @gabrielricci http://www.twitter.com/gabrielricci
 Facebook profile http://www.facebook.com/gabrielricci2, GitHub
 profilehttp://www.github.com/gabrielricci/
 http://code.google.com/p/syslibjs/


 On Fri, May 10, 2013 at 7:07 PM, georg georg.chamb...@telia.com 
 wrote:


 **
 So thanx again, closing in. It turned out that I had tried; yum 
 install

 php_pear  // i.e. with an underscore, should be with hyphen !
 so crawling a mm forward; then stuck on; pecl install pdo_odbc// 
 in

 this case the undrscore is ok (!)
 which fails as

 Cant find php headers in /usr/include/php  followed by Error 
 phpize

 failed

 /georg

 - Original Message -
 *From:* Serge Fonville serge.fonvi...@gmail.com
 *To:* georg georg.chamb...@telia.com
 *Cc:* Gabriel Ricci gabrielri...@gmail.com ; Daniel
 Browndanbr...@php.net; tamouse
 mailing lists tamouse.li...@gmail.com ; PHP
 Generalphp-general@lists.php.net
 *Sent:* Friday, May 10, 2013 11:41 PM
 *Subject:* Re: [PHP] undef func

  Assuming OP is using a distro that uses yum for package management;
 A yum whatprovides pecl should provide the package name that needs 
 to

 be
 installed, in case of an apt based distro, this could be done 
 through
 aptitude. Either way, it seems what might provide more information 
 is

 details like the commands executed, the distro used and the errors
 received

 HTH

  Kind regards/met vriendelijke groet,

 Serge Fonville

 http://www.sergefonville.nl

 Convince Microsoft!
 They need to add TRUNCATE PARTITION in SQL Server

 
https://connect.microsoft.com/SQLServer/feedback/details/417926/truncate-partition-of-partitioned-table


 2013/5/10 georg georg.chamb...@telia.com

 noop, didnt take, no such package, was my reward

 /georg
   - Original Message -
   From: Gabriel Ricci
   To: georg
   Cc: Daniel Brown ; tamouse mailing lists ; PHP General
   Sent: Friday, May 10, 2013 11:06 PM
   Subject: Re: [PHP] undef func


   To have pecl, you need to install PEAR first, yum install 
 php-pear

 (or yum install php5-pear) should work.


   Then you can try pecl install pdo_odbc.



   Att.

   Gabriel Ricci
   

   Website
   Follow @gabrielricci
   Facebook profile, GitHub profile





   On Fri, May 10, 2013 at 6:03 PM, georg georg.chamb...@telia.com
 wrote:

 unfortunately that didnt take, pecl is undefined command (my 
 linux

 is
 not so strong)
 trying yum renders no such package



 - Original Message - From: Daniel Brown
 danbr...@php.net
 To: tamouse mailing lists tamouse.li...@gmail.com
 Cc: georg georg.chamb...@telia.com; PHP General 
 php-general@lists.php.net
 Sent: Friday, May 10, 2013 9:21 PM
 Subject: Re: [PHP] undef func




   On Fri, May 10, 2013 at 3:18 PM, tamouse mailing lists
   tamouse.li...@gmail.com wrote:


 Aren't DLLs

Re: [PHP] undef func - any more clues ?

2013-05-11 Thread georg

Hi again,
is there any more clues to how Apache/PHP would get hold of ODBC libraries ?


(( summery; Im a bit new to linux (here Fedora 17) so Im not sure of how
these entities get hold of each other; are they linked into same module or 
are they dynamically loaded
libraries, guess that the latter. Then Im not clear over the path or 
linkage of these; that is where
are the definitions made to link them together; there is a series of conf 
and ini files (and keyword) which should
link names, and point to file names in (defined ?) directories (given by 
paths)))


/ Georg






- Original Message - 
From: georg georg.chamb...@telia.com

To: James Yerge ja...@nixsecurity.org
Cc: PHP General php-general@lists.php.net
Sent: Saturday, May 11, 2013 12:47 AM
Subject: Re: [PHP] undef func



Ok, txn ! so
yum install php-devel

worked, and got me a hole lot of pearl, however, still PHP has 
odbc_connect() call as undefined function. as per Apache error log.


There was some mentioning of php.ini; could that be something here ?

/georg

- Original Message - 
From: James Yerge ja...@nixsecurity.org

To: Gabriel Ricci gabrielri...@gmail.com
Cc: georg georg.chamb...@telia.com; Serge Fonville 
serge.fonvi...@gmail.com; Daniel Brown danbr...@php.net; tamouse 
mailing lists tamouse.li...@gmail.com; PHP General 
php-general@lists.php.net

Sent: Saturday, May 11, 2013 12:12 AM
Subject: Re: [PHP] undef func



On 05/10/2013 06:08 PM, Gabriel Ricci wrote:

pear isntall php-dev


Att.

Gabriel Ricci


Website http://gabrielricci.github.com
Follow @gabrielricci http://www.twitter.com/gabrielricci
Facebook profile http://www.facebook.com/gabrielricci2, GitHub
profilehttp://www.github.com/gabrielricci/
http://code.google.com/p/syslibjs/


On Fri, May 10, 2013 at 7:07 PM, georg georg.chamb...@telia.com wrote:


**
So thanx again, closing in. It turned out that I had tried; yum install
php_pear  // i.e. with an underscore, should be with hyphen !
so crawling a mm forward; then stuck on; pecl install pdo_odbc// in
this case the undrscore is ok (!)
which fails as

Cant find php headers in /usr/include/php  followed by Error phpize
failed

/georg

- Original Message -
*From:* Serge Fonville serge.fonvi...@gmail.com
*To:* georg georg.chamb...@telia.com
*Cc:* Gabriel Ricci gabrielri...@gmail.com ; Daniel 
Browndanbr...@php.net; tamouse
mailing lists tamouse.li...@gmail.com ; PHP 
Generalphp-general@lists.php.net

*Sent:* Friday, May 10, 2013 11:41 PM
*Subject:* Re: [PHP] undef func

 Assuming OP is using a distro that uses yum for package management;
A yum whatprovides pecl should provide the package name that needs to 
be

installed, in case of an apt based distro, this could be done through
aptitude. Either way, it seems what might provide more information is
details like the commands executed, the distro used and the errors 
received


HTH

 Kind regards/met vriendelijke groet,

Serge Fonville

http://www.sergefonville.nl

Convince Microsoft!
They need to add TRUNCATE PARTITION in SQL Server

https://connect.microsoft.com/SQLServer/feedback/details/417926/truncate-partition-of-partitioned-table


2013/5/10 georg georg.chamb...@telia.com


noop, didnt take, no such package, was my reward

/georg
  - Original Message -
  From: Gabriel Ricci
  To: georg
  Cc: Daniel Brown ; tamouse mailing lists ; PHP General
  Sent: Friday, May 10, 2013 11:06 PM
  Subject: Re: [PHP] undef func


  To have pecl, you need to install PEAR first, yum install php-pear
(or yum install php5-pear) should work.


  Then you can try pecl install pdo_odbc.



  Att.

  Gabriel Ricci
  

  Website
  Follow @gabrielricci
  Facebook profile, GitHub profile





  On Fri, May 10, 2013 at 6:03 PM, georg georg.chamb...@telia.com
wrote:

unfortunately that didnt take, pecl is undefined command (my linux 
is

not so strong)
trying yum renders no such package



- Original Message - From: Daniel Brown 
danbr...@php.net

To: tamouse mailing lists tamouse.li...@gmail.com
Cc: georg georg.chamb...@telia.com; PHP General 
php-general@lists.php.net
Sent: Friday, May 10, 2013 9:21 PM
Subject: Re: [PHP] undef func




  On Fri, May 10, 2013 at 3:18 PM, tamouse mailing lists
  tamouse.li...@gmail.com wrote:


Aren't DLLs a Windows thing?


 Yeah, I misread the bit about MS XP and thought he was 
using XP
  for this install.  I just realized the remainder of the 
discussion

  between us was off-list, so - for posterity - my response, when
  finding out it is indeed a Linux box, is: pecl install pdo_odbc.

  --
  /Daniel P. Brown
  Network Infrastructure Manager
  http://www.php.net/

  --
  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

[PHP] undef func

2013-05-10 Thread georg
Hello !

im increasingly frustrated on my effort to get PHP/ODBC going with Apache on 
Linux (did it on MS XP, that was trixy but this is worse, nothing seem to be 
correct; utilities missing, erroneous file-directory references, crapy 
stringency in description...)

well:

undefined function odbc_connect()  is what I currently find in my Apache 
Error_log

So evidently I have sucessfully gotten at least PHP to get working, but to 
connect to ODBC

(this then would indicate that dynamical loading of libararies is not 
successful, but what...)

man tnx for clues
georg

Re: [PHP] undef func

2013-05-10 Thread georg
unfortunately that didnt take, pecl is undefined command (my linux is not so 
strong)

trying yum renders no such package



- Original Message - 
From: Daniel Brown danbr...@php.net

To: tamouse mailing lists tamouse.li...@gmail.com
Cc: georg georg.chamb...@telia.com; PHP General 
php-general@lists.php.net

Sent: Friday, May 10, 2013 9:21 PM
Subject: Re: [PHP] undef func



On Fri, May 10, 2013 at 3:18 PM, tamouse mailing lists
tamouse.li...@gmail.com wrote:


Aren't DLLs a Windows thing?


   Yeah, I misread the bit about MS XP and thought he was using XP
for this install.  I just realized the remainder of the discussion
between us was off-list, so - for posterity - my response, when
finding out it is indeed a Linux box, is: pecl install pdo_odbc.

--
/Daniel P. Brown
Network Infrastructure Manager
http://www.php.net/

--
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] undef func

2013-05-10 Thread georg
noop, didnt take, no such package, was my reward

/georg
  - Original Message - 
  From: Gabriel Ricci 
  To: georg 
  Cc: Daniel Brown ; tamouse mailing lists ; PHP General 
  Sent: Friday, May 10, 2013 11:06 PM
  Subject: Re: [PHP] undef func


  To have pecl, you need to install PEAR first, yum install php-pear (or yum 
install php5-pear) should work.


  Then you can try pecl install pdo_odbc.



  Att.

  Gabriel Ricci
  

  Website
  Follow @gabrielricci
  Facebook profile, GitHub profile





  On Fri, May 10, 2013 at 6:03 PM, georg georg.chamb...@telia.com wrote:

unfortunately that didnt take, pecl is undefined command (my linux is not 
so strong)
trying yum renders no such package



- Original Message - From: Daniel Brown danbr...@php.net
To: tamouse mailing lists tamouse.li...@gmail.com
Cc: georg georg.chamb...@telia.com; PHP General 
php-general@lists.php.net
Sent: Friday, May 10, 2013 9:21 PM
Subject: Re: [PHP] undef func




  On Fri, May 10, 2013 at 3:18 PM, tamouse mailing lists
  tamouse.li...@gmail.com wrote:


Aren't DLLs a Windows thing?


 Yeah, I misread the bit about MS XP and thought he was using XP
  for this install.  I just realized the remainder of the discussion
  between us was off-list, so - for posterity - my response, when
  finding out it is indeed a Linux box, is: pecl install pdo_odbc.

  --
  /Daniel P. Brown
  Network Infrastructure Manager
  http://www.php.net/

  -- 
  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] undef func

2013-05-10 Thread georg
So thanx again, closing in. It turned out that I had tried; yum install 
php_pear  // i.e. with an underscore, should be with hyphen !
so crawling a mm forward; then stuck on; pecl install pdo_odbc// in this 
case the undrscore is ok (!)
which fails as 

Cant find php headers in /usr/include/php  followed by Error phpize failed 

/georg
  - Original Message - 
  From: Serge Fonville 
  To: georg 
  Cc: Gabriel Ricci ; Daniel Brown ; tamouse mailing lists ; PHP General 
  Sent: Friday, May 10, 2013 11:41 PM
  Subject: Re: [PHP] undef func


  Assuming OP is using a distro that uses yum for package management;

  A yum whatprovides pecl should provide the package name that needs to be 
installed, in case of an apt based distro, this could be done through aptitude. 
Either way, it seems what might provide more information is details like the 
commands executed, the distro used and the errors received


  HTH



  Kind regards/met vriendelijke groet,


  Serge Fonville


  http://www.sergefonville.nl

  Convince Microsoft!
  They need to add TRUNCATE PARTITION in SQL Server
  
https://connect.microsoft.com/SQLServer/feedback/details/417926/truncate-partition-of-partitioned-table
 



  2013/5/10 georg georg.chamb...@telia.com

noop, didnt take, no such package, was my reward

/georg

  - Original Message -
  From: Gabriel Ricci
  To: georg
  Cc: Daniel Brown ; tamouse mailing lists ; PHP General
  Sent: Friday, May 10, 2013 11:06 PM
  Subject: Re: [PHP] undef func



  To have pecl, you need to install PEAR first, yum install php-pear (or 
yum install php5-pear) should work.


  Then you can try pecl install pdo_odbc.



  Att.

  Gabriel Ricci
  

  Website

  Follow @gabrielricci
  Facebook profile, GitHub profile






  On Fri, May 10, 2013 at 6:03 PM, georg georg.chamb...@telia.com wrote:

unfortunately that didnt take, pecl is undefined command (my linux is 
not so strong)
trying yum renders no such package



- Original Message - From: Daniel Brown danbr...@php.net
To: tamouse mailing lists tamouse.li...@gmail.com
Cc: georg georg.chamb...@telia.com; PHP General 
php-general@lists.php.net
Sent: Friday, May 10, 2013 9:21 PM
Subject: Re: [PHP] undef func




  On Fri, May 10, 2013 at 3:18 PM, tamouse mailing lists
  tamouse.li...@gmail.com wrote:


Aren't DLLs a Windows thing?


 Yeah, I misread the bit about MS XP and thought he was using XP
  for this install.  I just realized the remainder of the discussion
  between us was off-list, so - for posterity - my response, when
  finding out it is indeed a Linux box, is: pecl install pdo_odbc.

  --
  /Daniel P. Brown
  Network Infrastructure Manager
  http://www.php.net/

  --
  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] undef func

2013-05-10 Thread georg

Ok, txn ! so
yum install php-devel

worked, and got me a hole lot of pearl, however, still PHP has 
odbc_connect() call as undefined function. as per Apache error log.


There was some mentioning of php.ini; could that be something here ?

/georg

- Original Message - 
From: James Yerge ja...@nixsecurity.org

To: Gabriel Ricci gabrielri...@gmail.com
Cc: georg georg.chamb...@telia.com; Serge Fonville 
serge.fonvi...@gmail.com; Daniel Brown danbr...@php.net; tamouse 
mailing lists tamouse.li...@gmail.com; PHP General 
php-general@lists.php.net

Sent: Saturday, May 11, 2013 12:12 AM
Subject: Re: [PHP] undef func



On 05/10/2013 06:08 PM, Gabriel Ricci wrote:

pear isntall php-dev


Att.

Gabriel Ricci


Website http://gabrielricci.github.com
Follow @gabrielricci http://www.twitter.com/gabrielricci
Facebook profile http://www.facebook.com/gabrielricci2, GitHub
profilehttp://www.github.com/gabrielricci/
http://code.google.com/p/syslibjs/


On Fri, May 10, 2013 at 7:07 PM, georg georg.chamb...@telia.com wrote:


**
So thanx again, closing in. It turned out that I had tried; yum install
php_pear  // i.e. with an underscore, should be with hyphen !
so crawling a mm forward; then stuck on; pecl install pdo_odbc// in
this case the undrscore is ok (!)
which fails as

Cant find php headers in /usr/include/php  followed by Error phpize
failed

/georg

- Original Message -
*From:* Serge Fonville serge.fonvi...@gmail.com
*To:* georg georg.chamb...@telia.com
*Cc:* Gabriel Ricci gabrielri...@gmail.com ; Daniel 
Browndanbr...@php.net; tamouse
mailing lists tamouse.li...@gmail.com ; PHP 
Generalphp-general@lists.php.net

*Sent:* Friday, May 10, 2013 11:41 PM
*Subject:* Re: [PHP] undef func

 Assuming OP is using a distro that uses yum for package management;
A yum whatprovides pecl should provide the package name that needs to 
be

installed, in case of an apt based distro, this could be done through
aptitude. Either way, it seems what might provide more information is
details like the commands executed, the distro used and the errors 
received


HTH

 Kind regards/met vriendelijke groet,

Serge Fonville

http://www.sergefonville.nl

Convince Microsoft!
They need to add TRUNCATE PARTITION in SQL Server

https://connect.microsoft.com/SQLServer/feedback/details/417926/truncate-partition-of-partitioned-table


2013/5/10 georg georg.chamb...@telia.com


noop, didnt take, no such package, was my reward

/georg
  - Original Message -
  From: Gabriel Ricci
  To: georg
  Cc: Daniel Brown ; tamouse mailing lists ; PHP General
  Sent: Friday, May 10, 2013 11:06 PM
  Subject: Re: [PHP] undef func


  To have pecl, you need to install PEAR first, yum install php-pear
(or yum install php5-pear) should work.


  Then you can try pecl install pdo_odbc.



  Att.

  Gabriel Ricci
  

  Website
  Follow @gabrielricci
  Facebook profile, GitHub profile





  On Fri, May 10, 2013 at 6:03 PM, georg georg.chamb...@telia.com
wrote:

unfortunately that didnt take, pecl is undefined command (my linux 
is

not so strong)
trying yum renders no such package



- Original Message - From: Daniel Brown 
danbr...@php.net

To: tamouse mailing lists tamouse.li...@gmail.com
Cc: georg georg.chamb...@telia.com; PHP General 
php-general@lists.php.net
Sent: Friday, May 10, 2013 9:21 PM
Subject: Re: [PHP] undef func




  On Fri, May 10, 2013 at 3:18 PM, tamouse mailing lists
  tamouse.li...@gmail.com wrote:


Aren't DLLs a Windows thing?


 Yeah, I misread the bit about MS XP and thought he was using 
XP
  for this install.  I just realized the remainder of the 
discussion

  between us was off-list, so - for posterity - my response, when
  finding out it is indeed a Linux box, is: pecl install pdo_odbc.

  --
  /Daniel P. Brown
  Network Infrastructure Manager
  http://www.php.net/

  --
  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






Should be yum install php-devel

--
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] ODBC

2013-05-07 Thread georg
but isnt there some yum command that will fix things for me (download if 
necessary, but I actually think

the ODBC would be in the distribution of fedora ?)

br georg

- Original Message - 
From: David OBrien dgobr...@gmail.com

To: georg georg.chamb...@telia.com
Cc: PHP General php-general@lists.php.net
Sent: Monday, May 06, 2013 11:06 PM
Subject: Re: [PHP] ODBC



On Mon, May 6, 2013 at 3:32 PM, georg georg.chamb...@telia.com wrote:


Hi,

Id like to get ODBC connection to SQL from PHP going. Ive done that on 
XP,

but now Im switching
to Linux (Fedora).

My impression in that the connecting part is per the DB designers
responsibility. Im using Mimer-SQL,
but cant find any information on how to set up ODBC for that. Any advice
welcome.

BR georg



http://developer.mimer.com/howto/howto_57.htm




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



[PHP] ODBC

2013-05-06 Thread georg
Hi,

Id like to get ODBC connection to SQL from PHP going. Ive done that on XP, but 
now Im switching
to Linux (Fedora). 

My impression in that the connecting part is per the DB designers 
responsibility. Im using Mimer-SQL,
but cant find any information on how to set up ODBC for that. Any advice 
welcome.

BR georg

[PHP] actually HTML again; resizeing images

2013-03-17 Thread georg
Anyone knows a good reading about how and when images displayd with HTML tags 
are 
re-sized ?

tnx
georg

[PHP] modulo function

2013-03-17 Thread georg
Guess there should be one in PHP but cant find it 

(tnx for many earlier answers)

Br georg

[PHP] rather a HTML Q; however 2-FRAME

2013-03-15 Thread georg
I have a need to make a pure display in a (HTML tagged area defined by) FRAME
now so far I have only succeeded in making output into a frame by landing
a clicked tag to open the new doc (href or src) in a specified frame.
Possibly its not solvable with framework of frames.

( I know, FRAMEs are a dying breed, depressed by HTML society, sorry 
deprecated
  possibly my issue is fixable by style-sheets but I havnt gotten that far yet, 
too complex )

tnx for any input
georg

Re: [PHP] rather a HTML Q; however 2-FRAME

2013-03-15 Thread georg

Hi, yepp  thnx, so far I have got,
but now im in a situation where I have made 2nice frames one contining the 
picture
(noscroll) and i want to have a quite narrow frame at the side displaying a 
text,
however I want to fill both frames at one mouseclick... here Im utterly 
failing :(

for some time now

BR georg

- Original Message - 
From: tamouse mailing lists tamouse.li...@gmail.com

To: php-general@lists.php.net
Sent: Friday, March 15, 2013 12:00 PM
Subject: Re: [PHP] rather a HTML Q; however 2-FRAME



On Fri, Mar 15, 2013 at 5:00 AM, georg georg.chamb...@telia.com wrote:
I have a need to make a pure display in a (HTML tagged area defined by) 
FRAME

now so far I have only succeeded in making output into a frame by landing
a clicked tag to open the new doc (href or src) in a specified frame.
Possibly its not solvable with framework of frames.


Not 100% sure of what you want, but can't you just populate the frames 
directly?


frameset rows=10%,*
 frame name=upper src=upperframe.php
 frame name=lower src=lowerframe.php
/frameset

the link in the src attribute populates it initially.

You already know how to populate them with links.

( I know, FRAMEs are a dying breed, depressed by HTML society, sorry 
deprecated
  possibly my issue is fixable by style-sheets but I havnt gotten that 
far yet, too complex )


Frames are not only deprecated, they are unsupported entirely in HTML5
(not that browsers won't continue to display them; just that they
won't validate).

Leap the hurdle and start to look at Web 3.0 stuff with backbone.js,
twitter's bootstrap,  etc.

--
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] rather a HTML Q; however 2-FRAME

2013-03-15 Thread georg

To make things clearer. I already have the frames since earlier and
want to fill then again, so it is not at the initial filling of the frames
at creation.

BR georg
- Original Message - 
From: georg georg.chamb...@telia.com

To: tamouse mailing lists tamouse.li...@gmail.com
Cc: php-general@lists.php.net
Sent: Friday, March 15, 2013 2:31 PM
Subject: Re: [PHP] rather a HTML Q; however 2-FRAME



Hi, yepp  thnx, so far I have got,
but now im in a situation where I have made 2nice frames one contining the 
picture
(noscroll) and i want to have a quite narrow frame at the side displaying 
a text,
however I want to fill both frames at one mouseclick... here Im 
utterly failing :(

for some time now

BR georg

- Original Message - 
From: tamouse mailing lists tamouse.li...@gmail.com

To: php-general@lists.php.net
Sent: Friday, March 15, 2013 12:00 PM
Subject: Re: [PHP] rather a HTML Q; however 2-FRAME



On Fri, Mar 15, 2013 at 5:00 AM, georg georg.chamb...@telia.com wrote:
I have a need to make a pure display in a (HTML tagged area defined 
by) FRAME
now so far I have only succeeded in making output into a frame by 
landing

a clicked tag to open the new doc (href or src) in a specified frame.
Possibly its not solvable with framework of frames.


Not 100% sure of what you want, but can't you just populate the frames 
directly?


frameset rows=10%,*
 frame name=upper src=upperframe.php
 frame name=lower src=lowerframe.php
/frameset

the link in the src attribute populates it initially.

You already know how to populate them with links.

( I know, FRAMEs are a dying breed, depressed by HTML society, sorry 
deprecated
  possibly my issue is fixable by style-sheets but I havnt gotten that 
far yet, too complex )


Frames are not only deprecated, they are unsupported entirely in HTML5
(not that browsers won't continue to display them; just that they
won't validate).

Leap the hurdle and start to look at Web 3.0 stuff with backbone.js,
twitter's bootstrap,  etc.

--
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] rather a HTML Q; however 2-FRAME

2013-03-15 Thread georg

Actually I think you are right;

what I would have liked (as a natural extension of the depression:)
is actually a FRAME tag that stands without the FRAMESET
and which as target=framename instead of the frame defining 
name=framename

and which just displayed the src in that frame (immediatly as it does today)

Im fairly new to PHP so Im bound to bounce into some walls, tnx.

BR georg

- Original Message - 
From: Stuart Dallas stu...@3ft9.com

To: georg georg.chamb...@telia.com
Cc: PHP General 
Sent: Friday, March 15, 2013 2:38 PM
Subject: Re: [PHP] rather a HTML Q; however 2-FRAME


On 15 Mar 2013, at 13:34, georg georg.chamb...@telia.com wrote:


To make things clearer. I already have the frames since earlier and
want to fill then again, so it is not at the initial filling of the 
frames

at creation.


You want one action to change the content in two frames? For that you'll 
need to use Javascript, or reload the parent frame, neither of which involve 
PHP.


-Stuart

--
Stuart Dallas
3ft9 Ltd
http://3ft9.com/= 



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



[PHP] variable type - conversion/checking

2013-03-14 Thread georg
Hi, 

I have tried to find a way to check if a character string is possible to test 
whether it is convertible to an intger !

any suggestion ?

BR georg

[PHP] ODBC obscuring the SQL result ?

2013-03-14 Thread georg
Hi (again),

Im doing a 

   $res = odbc_prepare... with a select statement

and

   $succ =  odbc_execute($res)

im missing how to get the return information on whether I got any hit or not in 
the table 

now !! the REF MAN  is clearly sloppy;  

in writing moment i see that $succ is a boolean  (which is undefined about what 
is meant by success, retreiving ZERO rows is a success ? guess so)

HOWEVER the sloppy thing comes with the REF MAN not explicitly saying that $res 
is not only the connecting from prepare but
 also output from the execution activity !!

is that so ?  




[PHP] PHP context editor

2013-03-14 Thread georg
hello,
annyone knows of some good PHP context editor freeware ?
(tired of missing out on trivials like ; )

regards
Georg

[PHP] How to format every secound row in a database result

2005-03-30 Thread Georg
Hi!

I wish to format the output of a database select.
The result is presented in a table, in which i'd like to present everey
secound row with a different background color.
My idea was to test if the remaining number of rows where a prime number or
not, and by that determent if the background color should be white or som
ivory-like color to improve the readability in the result table...

Hope to hear from anyone with experience in similar matters...

TIA! Georg Herland, Norway

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



Re: [PHP] MySQL 4.0 + PHP 4

2003-01-22 Thread Georg Richter
On Wednesday 22 January 2003 18:52, 1LT John W. Holmes wrote:

 There's really no change from the PHP side. PHP just sends the data and
 receives something back The only change in PHP is that mysql_connect() now
 supports additional flags to connect over SSL.

Nope, I only forgot to remove a constant. SSL support will be available in 
PHP 5 (new mysql extension).

Regards

Georg



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




[PHP] cut text after saving file with php

2002-06-21 Thread Georg Buske

Hello,

I want to save a text - which is created in a selfmade javascipt editor -
into a .cnt - file with php...

It works fantastically if I work in the LAN - environment, but if I work
from outside - it's still saving, but it cuts contingent some text...!

I can't I understand why it doesn't work, perhaps anyone has an idea?!

Thank you for help...!



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