php-general Digest 5 Dec 2004 13:17:28 -0000 Issue 3152

2004-12-05 Thread php-general-digest-help
php-general Digest 5 Dec 2004 13:17:28 - Issue 3152 Topics (messages 203502 through 203515): Re: executeing another files code 203502 by: Ryan A 203503 by: M. Sokolewicz 203504 by: Ryan A 203506 by: Raditha Dissanayake Stupid question 203505 by: Phpu

[PHP] GD lib not working

2004-12-05 Thread Dade Register
It seems that my install of php does not like the GD library. I've tried everything, and read past forum messages. Here's what I'm running: FreeBSD 5.2.1 Apache 2.0.52 Php 5.0.2 GD 2.0.32 Php compiles fine, and even the tests pass for the GD lib, but any GD function fails including gdinfo()

Re: [PHP] GD lib not working

2004-12-05 Thread Jason Wong
On Sunday 05 December 2004 17:37, Dade Register wrote: It seems that my install of php does not like the GD library. I've tried everything, and read past forum messages. Here's what I'm running: FreeBSD 5.2.1 Apache 2.0.52 Php 5.0.2 GD 2.0.32 Php compiles fine, and even the tests pass for

[PHP] Session variables not unsetting

2004-12-05 Thread steve
I'm having a problem with session variables. A site that works fine on my local system (PHP 4.3.4) is not working on the live server (4.1.2). In both cases, register_globals is OFF. Every page starts with session_start() and I'm setting session vars by simply assigning them to $_SESSION, eg:

[PHP] Re: PEAR::SOAP return tag trouble in migration to PEAR::SOAP from NuSOAP

2004-12-05 Thread Roland Schorr
I had the same trouble, this is another bug which causes big trouble with many SOAP-Clients. My bugfix now works well with all the clients I use, so maybe this helps you as well: See http://pear.php.net/bugs/bug.php?id=2877 Rgs - Ro!and. Jeff Rodriguez schrieb: I'm trying to migrate to

[PHP] Regex Parsing

2004-12-05 Thread [ rswfire ]
I wish to improve upon my regular expression skills. I am creating a journal object that allows me to post my journals online, while at the same time maintaining nine different levels of privacy. For example, if I give a user Level 3 access, then they would be able to see all parts of my entries

[PHP] Re: Regex Parsing

2004-12-05 Thread M. Sokolewicz
[EMAIL PROTECTED] wrote: I wish to improve upon my regular expression skills. I am creating a journal object that allows me to post my journals online, while at the same time maintaining nine different levels of privacy. For example, if I give a user Level 3 access, then they would be able to

Re: [PHP] copy() not working

2004-12-05 Thread Peter Lauri
Solution to the problem: instead of trying to write it to /image/filename I write it to ../image/filename, that solves my problem :) /Peter Peter Lauri [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Thank you. Now I am getting somewhere, but I get this error-msg now, I do not

[PHP] Re: Regex Parsing

2004-12-05 Thread [ rswfire ]
preg_match_all('#\[LEVEL([0-9])\](.*)\[/LEVEL[0-9]]#Uim', $content, $matches); You make it look so easy, thanks! That takes care of step one, but how do I make it so everything in $content where there is a level set, is replaced with ###LEVEL?### Does #Uim tell it to only get the first

[PHP] Re: Regex Parsing

2004-12-05 Thread M. Sokolewicz
[EMAIL PROTECTED] wrote: preg_match_all('#\[LEVEL([0-9])\](.*)\[/LEVEL[0-9]]#Uim', $content, $matches); You make it look so easy, thanks! That takes care of step one, but how do I make it so everything in $content where there is a level set, is replaced with ###LEVEL?### Does #Uim tell it to only

[PHP] Script wont work

2004-12-05 Thread Colin
Hi, I've done this to session.c but the my pages wont work. Is there something iam missing?why doesnt it work? char *val; int vallen; val = php_session_encode(vallen TSRMLS_CC); char *vala = (char *)calloc(sizeof(vala), strlen(val) +

Re: [PHP] GD lib not working

2004-12-05 Thread Dade Register
It's a new installation. I did restart Apache after re-compiling PHP. phpinfo() shows my config command I used is: ./configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysql=/usr/local/mysql' '--with-zlib-dir=/usr/local/lib' '--with-jpeg-dir=/usr/local/lib'

[PHP] Re: Session variables not unsetting

2004-12-05 Thread steve
Steve wrote: I'm having a problem with session variables. Never mind. Seems that the hosting company decided this week to switch from register_globals off to register_globals on. I'm not the first person to call them about this! -- @+ Steve -- PHP General Mailing List (http://www.php.net/)

[PHP] No GD Support

2004-12-05 Thread Vern
I have just installed a new Fedora Core box and do not have GD support in PHP. Can anyone tell me how to add that? The GD library is installed however when I do phpinfo() I do not get the GD support listed. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Please save me from insanity - PHP4 / OO

2004-12-05 Thread Ben
class Ob { var $prop; } class Test { function setMe($ob) { $ob-prop = $this; } } $ob = new Ob(); $test = new Test(); $test-setMe($ob); if ($ob-prop) error_log(PHP is OK); else error_log(PHP is a fucking MARE); What is my problem here? Please help! Thanks,

Re: [PHP] Please save me from insanity - PHP4 / OO

2004-12-05 Thread John Holmes
Ben wrote: class Ob { var $prop; } class Test { function setMe($ob) { $ob-prop = $this; } } $ob = new Ob(); $test = new Test(); $test-setMe($ob); if ($ob-prop) error_log(PHP is OK); else error_log(PHP is a fucking MARE); What is my problem here? Please help! How about you

[PHP] Re: Please save me from insanity - PHP4 / OO

2004-12-05 Thread Greg Beaver
Ben wrote: class Ob { var $prop; } class Test { function setMe($ob) { $ob-prop = $this; } } $ob = new Ob(); $test = new Test(); $test-setMe($ob); if ($ob-prop) error_log(PHP is OK); else error_log(PHP is a fucking MARE); What is my problem here? Please help! You've run into the

[PHP] Google like search engine with php

2004-12-05 Thread Graham Anderson
What is the proper way to build a dynamic subquery ? I want to allow the user to use AND, OR, and NOT in his/her query like $query = Hola AND Adios, OR Goodbye, NOT hello or.. WHERE (greeting LIKE %Hola% AND greeting LIKE %Adios%) OR (greeting LIKE %Goodbye%) AND (greeting NOT LIKE %hello%) I am

[PHP] Re: Please save me from insanity - PHP4 / OO

2004-12-05 Thread Ben
Thanks a lot for your responses guys. Unfortunately it still isn't working for me. I've tried both : $ob-prop = $this and $ob-prop = $this (just in case) Neither produce a PHP is OK. I'm using version 4.2.2 btw. (If ONLY I was on 5) Thanks again, Ben Greg Beaver wrote: Ben wrote:

[PHP] Re: Please save me from insanity - PHP4 / OO

2004-12-05 Thread Manuel Lemos
Hello, On 12/05/2004 03:46 PM, Ben wrote: $ob-prop = $this; It should be $ob-prop = $this; under PHP 4/Zend Engine 1. -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of PHP books and other products

[PHP] Re: Please save me from insanity - PHP4 / OO

2004-12-05 Thread Greg Beaver
Ben wrote: Thanks a lot for your responses guys. Unfortunately it still isn't working for me. I've tried both : $ob-prop = $this and$ob-prop = $this (just in case) Neither produce a PHP is OK. I'm using version 4.2.2 btw. (If ONLY I was on 5) Thanks again, Ben Greg wrote: class Test {

[PHP] Re: Please save me from insanity - PHP4 / OO

2004-12-05 Thread Greg Beaver
Ben wrote: class Ob { var $prop; } class Test { function setMe($ob) { $ob-prop = $this; } } $ob = new Ob(); $test = new Test(); $test-setMe($ob); if ($ob-prop) error_log(PHP is OK); You should use if (is_a($ob-prop, 'test')) Greg -- PHP General Mailing List

[PHP] Variables from database

2004-12-05 Thread Stuart Felenstein
I haven't try this yet but wondering if it's possible. Can I do something like this: select fieldone from table ; $myvar = $fieldone ? And more so could I do it with a where clause ? i.e. select fieldone from table where fieldone = 3 $myvar = $fieldone ? This is probably a stupid question.

[PHP] Re: No GD Support

2004-12-05 Thread Vern
In case anyone wants to know the answer to this you must install the php-gd rpm. Vern [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have just installed a new Fedora Core box and do not have GD support in PHP. Can anyone tell me how to add that? The GD library is installed

[PHP] Re: Variables from database

2004-12-05 Thread Dusty Bin
Stuart Felenstein wrote: I haven't try this yet but wondering if it's possible. Can I do something like this: select fieldone from table ; $myvar = $fieldone ? And more so could I do it with a where clause ? i.e. select fieldone from table where fieldone = 3 $myvar = $fieldone ? This is

[PHP] Coding Question

2004-12-05 Thread Al
I've searched the PHP manual and can't find an answer for this question I'd like to use the OR DIE construct; but instead of DIE I'd like to use RETURN FOO. I haven't found a way to do it. $string= file_get_contents($filename) OR die(Could not read file); $db_link= mysql_connect($host,

[PHP] Re: Please save me from insanity - PHP4 / OO

2004-12-05 Thread Ben
Thanks a lot Greg - those pesky s! Code now all working... Greg Beaver wrote: Ben wrote: class Ob { var $prop; } class Test { function setMe($ob) { $ob-prop = $this; } } $ob = new Ob(); $test = new Test(); $test-setMe($ob); if ($ob-prop) error_log(PHP is OK); You should use if

[PHP] mysql error

2004-12-05 Thread Richard Kurth
Could somebody tell me way these query gets a error 1064 and does not work. error=You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT * FROM listing WHERE `state` = 'WA' AND `type` = 'RES' query=SELECT *

Re: [PHP] Variables from database

2004-12-05 Thread Marek Kilimajer
Stuart Felenstein wrote: I haven't try this yet but wondering if it's possible. Can I do something like this: select fieldone from table ; $myvar = $fieldone ? And more so could I do it with a where clause ? i.e. select fieldone from table where fieldone = 3 $myvar = $fieldone ? This is

[PHP] Snyc Outlook Calendar with Website

2004-12-05 Thread Steve Vernon
Hiya, Any help or advice would be great. At the moment I sync my mobile with my computer (Microsoft Outlook), with all my tasks and calendar entries. I have made a PHP website with my own coded calendar system. The entries in the calendar are stored in a MySQL database. At the moment every day

Re: [PHP] Coding Question

2004-12-05 Thread Ligaya Turmelle
snip $db_link= mysql_connect($host, $user, $pw) OR die(Could not connect: . mysql_error()); /snip try: $db_link= mysql_connect($host, $user, $pw); if (!$db_link){ // do whatever if there is something wrong } maybe try something like that with the file_get_contents also? Respectfully,

[PHP] create htaccess.

2004-12-05 Thread adwinwijaya
Hello php-general, I have a question about htaccess (I cannot modify httpd.conf in the server since I just host on server, not dedicated one. I want to be able to convert from : www.mysite.com/index.php?f=module_a.php into www.mysite.com/index/module_a.php and am I able to do :

Re: [PHP] mysql error

2004-12-05 Thread Ligaya Turmelle
query=SELECT * FROM listing WHERE `state` = 'WA' AND `type` = 'RES' AND `county` = 'clark' AND (`price` '15' OR `price` = '20');; if that doesn't work - break it down into individual parts and find out where the problem is. Respectfully, Ligaya Turmelle --- Life is a game... so have

[PHP] Re: create htaccess.

2004-12-05 Thread Matthew Weier O'Phinney
* Adwinwijaya [EMAIL PROTECTED]: I have a question about htaccess (I cannot modify httpd.conf in the server since I just host on server, not dedicated one. I want to be able to convert from : www.mysite.com/index.php?f=module_a.php into www.mysite.com/index/module_a.php In you

Re: [PHP] mysql error

2004-12-05 Thread Raditha Dissanayake
Richard Kurth wrote: Could somebody tell me way these query gets a error 1064 and does not work. no. wrong list. -- Raditha Dissanayake. -- http://www.radinks.com/print/card-designer/ | Card Designer Applet

Re: [PHP] Re: create htaccess.

2004-12-05 Thread adwinwijaya
Hello Matthew, Monday, December 6, 2004, 11:33:28 AM, you wrote: MWOP In you .htaccess: MWOP File index MWOP ForceType application/x-httpd-php MWOP /File MWOP DirectoryIndex index MWOP Then, in your script, you'll need to access the PATH_INFO environment MWOP variable via

Re: [PHP] mysql error

2004-12-05 Thread Travis Conway
Try: SELECT * FROM listing WHERE listing.state = 'WA' AND listing.type = 'RES' AND listing.county = 'clark' AND (listing.price 15 OR listing.price =20) Try to not use the word type. Do not know what it is but I have some problems using it. In the event you have weird problems, try

[PHP] Sessions in Frames...confused

2004-12-05 Thread Ryan A
Hi, Reading the different articles on phpbuilder/devshed/phpfreaks etc has left me a bit confused.. will start from the beginning so you guys(and girls) can give me some advise and show me the right path again ;-) I have a normal user/pass login screen, after which I start a session for the

Re: [PHP] mysql error

2004-12-05 Thread Raditha Dissanayake
Travis Conway wrote: Try: SELECT * FROM listing WHERE listing.state = 'WA' AND listing.type = 'RES' AND listing.county = 'clark' AND (listing.price 15 OR listing.price =20) Once again you have posted to the wrong list. Please send this message to the mysql list. This is the php list.

Re: [PHP] Sessions in Frames...confused

2004-12-05 Thread Raditha Dissanayake
Ryan A wrote: Hi, Reading the different articles on phpbuilder/devshed/phpfreaks etc has left me a bit confused.. will start from the beginning so you guys(and girls) can give me some advise and show me the right path again ;-) I have a normal user/pass login screen, after which I start a session

[PHP] while inside a function

2004-12-05 Thread Louie Miranda
i have a while statement inside a function, but it seems like it dont work. is this possible? function hello() { while ($apo-fetchInto($row)) { print hello 2; } }; /eof -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Problem with code

2004-12-05 Thread Richard Kurth
I am having a problem with the code below it provides the first page with out any problem but when I select the next page it shows all the results from the first page and the results from the second page. It does the same thing on the third page also. I have been looking at it for two days and can

Re: [PHP] while inside a function

2004-12-05 Thread Raditha Dissanayake
Louie Miranda wrote: i have a while statement inside a function, but it seems like it dont work. is this possible? Add the following lines: global $apo; global $row; This will make it work for you but it's not the best solution. It's better to pass in parameters to the function rather than to

[PHP] [ANN]Webyog releases FREE edition of SQLyog

2004-12-05 Thread Ritesh Nadhani
Hello, Webyog, the creator of SQLyog - the most popular GUI for MySQL has released SQLyog v4.0. Starting from v4.0, SQLyog is available in two editions: SQLyog and SQLyog Enterprise. SQLyog is FREE for personal and commercial use. SQLyog contains all features of SQLyog Enterprise - except the

Re: [PHP] [ANN]Webyog releases FREE edition of SQLyog

2004-12-05 Thread Robert Cummings
On Mon, 2004-12-06 at 00:38, Ritesh Nadhani wrote: Hello, Webyog, the creator of SQLyog - the most popular GUI for MySQL has released SQLyog v4.0. 1. Your product isn't PHP related so bugger off. 2. The most popular GUI for MySQL?? WTF are you smoking? Cheers, Rob. --

Re: [PHP] while inside a function

2004-12-05 Thread Louie Miranda
sorry, i overlooked on something. i need to rest for a while, im working on a wrong program thats why it wont work. heh, :(. thanks again. -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [ANN]Webyog releases FREE edition of SQLyog

2004-12-05 Thread daniel
On Mon, 2004-12-06 at 00:38, Ritesh Nadhani wrote: Hello, Webyog, the creator of SQLyog - the most popular GUI for MySQL has released SQLyog v4.0. 1. Your product isn't PHP related so bugger off. 2. The most popular GUI for MySQL?? WTF are you smoking? Maybe you could have taken that

Re: [PHP] [ANN]Webyog releases FREE edition of SQLyog

2004-12-05 Thread Rory Browne
Regardless of the quality of the application, It is php-related only through PHP's relationship with MySQL. Therefore its quality as a PHP App would be relitively low. Besides all that it's spam(unless there is some unwritten agreement/convention that I'm not aware of), so

Re: [PHP] Coding Question

2004-12-05 Thread Rory Browne
If I'm not mistaken Al wanted to return something if the thing failed, without having to put it inside an if_block. I'm watching this with curiosity, because return is a language construct, and not a function, or anything that has a value. I could probably have said that better sober, and not at

Re: [PHP] [ANN]Webyog releases FREE edition of SQLyog

2004-12-05 Thread Raditha Dissanayake
[EMAIL PROTECTED] wrote: On Mon, 2004-12-06 at 00:38, Ritesh Nadhani wrote: Hello, Webyog, the creator of SQLyog - the most popular GUI for MySQL has released SQLyog v4.0. 1. Your product isn't PHP related so bugger off. 2. The most popular GUI for MySQL?? WTF are you smoking?

Re: [PHP] Coding Question

2004-12-05 Thread Jason Wong
On Monday 06 December 2004 14:19, Rory Browne wrote: If I'm not mistaken Al wanted to return something if the thing failed, without having to put it inside an if_block. I'm watching this with curiosity, because return is a language construct, and not a function, or anything that has a value.

Re: [PHP] GD lib not working

2004-12-05 Thread Jason Wong
Please do not top post. On Monday 06 December 2004 00:22, Dade Register wrote: It's a new installation. I did restart Apache after re-compiling PHP. phpinfo() shows my config command I used is: ./configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysql=/usr/local/mysql'

[PHP] php groupware api

2004-12-05 Thread Supri anto
Hello there, i'm developing an application using egroupware, i really needed the php Groupware API for that... does anyone know where should i find it.., i've try google but still can't found it.. Thanks -BEGIN GEEK CODE BLOCK- Version: 3.1 GU/IT d- s: a-- C++ UL P L++ E W++ N* o-- K-

[PHP] Source code/Zend expert required

2004-12-05 Thread Colin
Hi, I need someone who knows a good deal about editing the php source code and especially the session source code. I need one urgently to help me in my school project. Please help! contact me cokeeffe[at]gmail.com cheers -- PHP General Mailing List (http://www.php.net/) To unsubscribe,