[PHP] Re: including a file

2003-07-02 Thread Catalin Trifu
Hi, > I want to include a php located on a different server. Is this possible? > If so, what would be the pest way to do it? Read the manual http://www.php.net/manual/en/function.include.php Cheers, Catalin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

[PHP] Re: PHP5 classes

2003-07-03 Thread Catalin Trifu
hi, Read the Changes in PHP 5/Zend Engine 2.0 http://www.php.net/zend-engine-2.php The sections about constructors and destructors are self explanatory: the engine does not call autmatically the destructors nor the constructors from the parent class. Cheers, Catalin --

[PHP] Re: Foreach POST VARS problem

2003-08-15 Thread Catalin Trifu
hi, Are you sure the data is posted from HTML through POST ? try adding the lines below: > $colors=""; if(is_array($HTTP_POST_VARS) && !empty($HTTP_POST_VARS )) { > foreach($HTTP_POST_VARS as $ThisVar=>$ThisVal){ > if(ereg("color-", $ThisVar) AND $ThisVal=="on" OR $Thi

[PHP] Re: Foreach POST VARS problem

2003-08-15 Thread Catalin Trifu
btw! if you use it inside a function, you need to declare it as global! Catalin > Are you sure the data is posted from HTML > through POST ? try adding the lines below: > > > $colors=""; > if(is_array($HTTP_POST_VARS) && !empty($HTTP_POST_VARS )) { > > foreach($HTTP_POST_VARS as $

[PHP] Re: file upload problem

2003-08-23 Thread Catalin Trifu
Hi, > echo " = 'multipart/form-data'>\n"; I think that the methos should be POST not GET Second, you may want to save the file first with, move_uploaded_file (see http://de.php.net/manual/en/function.move-uploaded-file.php), then you will be able to see it. Of course you will f

[PHP] Re: parse error with mysql_connect

2003-08-24 Thread Catalin Trifu
Hi, The prototype for mysql_connect is: resource mysql_connect ( [string server [, string username [, string password [, bool new_link [, int client_flags ] ) As you can see you get parse error because the fourth argument should be boolean, not string. Cheers, Catalin 35: /

[PHP] Re: pear problem

2003-08-26 Thread Catalin Trifu
Hi, Did you added the /usr/php/pear/share/pear in the php.ini include_path option ? Besides the mime is part of Mail_Mime extension and SOAP needs some extensions too (don't remember exactly which) so check if all requirements are met. btw! what's the error message when it cras

[PHP] Re: Error with directories

2003-05-28 Thread Catalin Trifu
Hi, It seems to me that a script from /var/www/wahtever/ includes a script called algo.php which can not be found by PHP, because, probably it is in the /var/www/ dir. Either you add /var/www/ to the php.ini include_path, or when you include files you give the full pat

[PHP] Re: Help with fread

2003-05-29 Thread Catalin Trifu
Hi, As the PHP manual states you CAN NOT use filesystem functions, such as filesize, filectime, etc... on remote files, such as those opened opened through HTTP. You can however rely on the FTP functions, if you can use FTP to open the files. Cheers, Catalin "Erich Kolb" <[EMAIL

[PHP] Re: opendir(), readdir() question..

2003-05-30 Thread Catalin Trifu
Hi, You could put them into an array and sort the array. cheers, Catalin "" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > > How can i do for the moment i open and list all file there, display in the > browser the order of this files by name ?. I have this co

[PHP] Re: \n outputs \r\n ??

2003-05-30 Thread Catalin Trifu
Hi, If indeed \n puts CRLF pairs, which i doubt, you can use the hex code for LF which is 0x0A istead. Cheers, Catalin "Michael Isaacs" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Still new to PHP - any assistance would be very much appreciated... > > I am using a p

[PHP] Re: Can we use one PHP.INI directive to set the other?

2003-05-30 Thread Catalin Trifu
Hi, Simply put: it doesn't work; you have to put it by hand there, or use the ini_set function in all PHP scripts you need. Cheers, Catalin "Ananth Kesari" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > Can we use one PHP.INI directive to set the other? > > Wh

[PHP] Re: Variables not being past

2003-05-30 Thread Catalin Trifu
Hi, Check the php.ini for register_globals By default, from PHP 4.2.0 register_globals is OFF Cheers, Catalin "The Doctor" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Questions, I have a > cusotmer using a basic username and password > verifier on a php Web Pa

Re: [PHP] Cookies Probelm,

2003-05-31 Thread Catalin Trifu
Hi, Try using sessions instead of cookies. This way the array gets saved locally and not sent packed into a cookie. The only thing which passes as a cookie is the session id. Cheers, Catalin "Haseeb Iqbal" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > thanx for th

[PHP] Re: Upgrading PHP 4.1.2 to Current

2003-06-15 Thread Catalin Trifu
Hi, As I understand, you are using prepackaged PHP and Apache, the ones that come with a Linux distribution. If you want to continue using this style of RPMs you should consider looking for an upgrade on the web site for u'r Linux distro (like redhat's or mandrake's). Otherwise

[PHP] Re: [Newman] When i send an email it ...

2003-06-15 Thread Catalin Trifu
Hi, This a SMTP server error. It looks like you did not add the header FROM: "yourname" [EMAIL PROTECTED]; looks like u'r SMTP does not allow for messages without FROM header as the PHP function: mail ( string to, string subject, string message [, string additional_head

[PHP] Re: speed on XML files

2003-06-16 Thread Catalin Trifu
Hi, Receiving from where ? Cheers, Catalin "Diana Castillo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have problems receiving large xml files, they take too long, does anyone > have a solution? > thank you, > Diana > > -- PHP General Mailing List (http://www.ph

[PHP] Re: speed on XML files

2003-06-16 Thread Catalin Trifu
in message news:[EMAIL PROTECTED] > I send an xml request to a remote server and get back the xml response. > > "Catalin Trifu" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hi, > > > > Receiving from where ? > > > >

[PHP] Re: two php installations

2003-06-16 Thread Catalin Trifu
Hi, As far as I know you can not do that; but you instead install two Apache servers with different PHP modules and make them listen to different ports. Cheers, Catalin "Terje Torkelsen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > is there a way to install two phps

[PHP] Re: saving TEXTAREA data into mysql database

2003-06-21 Thread Catalin Trifu
Hi, See the manual nl2br() function. http://www.php.net/manual/en/function.nl2br.php Cheers, Catalin "Artoo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hey, > > How do you save the data from a TEXTAREA of a form into a mysql database so > that when you retrieve th

[PHP] Re: Calling PHP from Java usign CGI...

2003-06-26 Thread Catalin Trifu
Hi, I didn't quite understood what you mean by CGI in this case, but if you reffer to calling a script which resides on a server via HTTP protocol, i suggest you take a look at the java.net.* package, You can use the java.net.URLConnection to connect to the PHP script and act as a clie

[PHP] Re: Binary Blob = 65535 byte -> fwrite to a file = 7680000 Byte, why?

2003-06-26 Thread Catalin Trifu
Hi, Just a suggestion. It might be better and simpler to store the imges as files on disk and not as BLOBs and store in the DB only the reference to their path. I think this performs better. Cheers, Catalin "Gerhard Knapp" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTE

[PHP] File Uploads!

2003-06-29 Thread Catalin Trifu
Hi, This is the error I get in the log file: [error] PHP Warning: POST Content-Length of 11184886 bytes exceeds the limit of 8388608 bytes in Unknown on line 0 This is absolutely correct. The problem is this error does not reach my PHP script and I have no idea how can I tell my

Re: [PHP] File Uploads!

2003-06-29 Thread Catalin Trifu
Hi, I already tried $_FILES['userfile']['error'], but as I already said the $_FILES is empty, completely empty Cheers, Catalin "Tom Rogers" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > Sunday, June 29, 2003, 9:49:43 PM, you wrote: > CT> Hi, > > CT>

Re: Re[2]: [PHP] File Uploads!

2003-06-29 Thread Catalin Trifu
Hi, I used MAX_FILE_SIZE too in the form which uploads the file (the input field is before the file field) and I am using IE6 for testing and still the file pass through to the server. Cheers, Catalin "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sund

[PHP] Re: How do I use $HTTP_*_VARS[]

2003-06-30 Thread Catalin Trifu
Hi, I presume in the previous version you used register_globals=On the trick is that you will have to chenge most of the scripts now. Now that you have moved to 4.2.3 version, you should use the $_SERVER, $_REQUEST, $_POST, etc... variables instead of $HTTP_*_VARS Btw. It's agoo

[PHP] Re: File Uploads!

2003-06-30 Thread Catalin Trifu
MAX_FILE_SIZE, discard the upload and give you the $_FILES['userfile']['error'] = UPLOAD_ERR_FORM_SIZE I for one consider this a flaw in the engine. Anyway, hope this helps, Catalin "Catalin Trifu" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROT

[PHP] Re: Frames: how to get the url of the top frame?

2003-08-27 Thread Catalin Trifu
Hi, Server side there si no way to get the parent's URL you could however client side with JS Cheers, Catalin "Jean-Christian Imbeault" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am providing content for an other site. My content is getting shown in > side a fram

[PHP] Re: dealing with arrays

2003-08-27 Thread Catalin Trifu
Hi, Insteand of using the same value for checked, you should use different values for the checked parameter like value="entryOneChecked" value="entryTwoChecked" And it's a good idea to use quoting around variable names at least. Cheers, Catalin "Aris Santillan" <[EMAIL PROTECTED

[PHP] Re: reboot pc with PHP

2003-08-28 Thread Catalin Trifu
if you are really not interested in the security, then you can run the apache server as root; then you have root privileges for your PHP scripts. then you can use the system() function with no restrictions Cheers, Catalin "Petre Agenbag" <[EMAIL PROTECTED]> wrote in message news:[EMAI

[PHP] Re: PHP won't parse under https, but will with http

2003-08-28 Thread Catalin Trifu
Hi, Is this a virtual host ? How did you define the AddType in httpd.conf ? as global directive or for each vhost ? Also check that u'r apache listens to 443. Does pure .html page display ? Cheers, Catalin "Jason Jacobs" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTEC

[PHP] Re: Foring a file download *and* page reload

2003-08-29 Thread Catalin Trifu
Hi, You could use the wrote in message news:[EMAIL PROTECTED] > I've asked about this before but could not get a working solution. > > I have a database. Users put data in the DB :) I have a page with a list > of accessible data "block". Each "block" has a button next to it. > > When

[PHP] Re: Hello

2003-08-30 Thread Catalin Trifu
Hi, >The message is : >Warning: Unable to create >'/home/sites/site82/web/images/photos_elt/ail.jpg': Permission denied in >/home/sites/site82/web/gestion_site/bve_navigation.php on line 73 it's obvious the user under which the apache server runs does not have write permissions on /home/sit

[PHP] Frameworks

2003-08-30 Thread Catalin Trifu
Hi, Don't know if this is the place to start this, but I'd like to hear some pros and contras for some frameworks out there (MVC mostly). I mean, you have Placebo, Phrame, pehppy, aso. I'm getting a little bit dizzy by how many there are and I'd like to know your oppinions on them. Catal

[PHP] Re: Using PHP to cache a flash movie

2003-08-30 Thread Catalin Trifu
Hello, Does anyone know a method in which I can load a large flash movie in the background and only when it is done, play it. In the mean time, the user should be able to carry on surfing normally. Any ideas? Thank you, - Sid Hi, Simply put you can not! if the user moves from one page to anot

[PHP] Re: trouble with array_search

2003-08-30 Thread Catalin Trifu
Hi, You don't have to convert to string; PHP does it automatically. Did you check for the $dates array, does it really contain what you think it should. So, try to make a print_r($dates) and see if you have what you expect. FYI: array_search() returns the key of the last found element

[PHP] Re: superglobals?

2003-08-30 Thread Catalin Trifu
Stevie D Peele wrote: What do we call things like this -- $_POST['name'], $_SERVER['remote add'] Are they superglobals and where can I find a list of these? Thanks The best thing to hit the internet in years - Juno SpeedBand! Surf

[PHP] Re: trouble with array_search

2003-08-30 Thread Catalin Trifu
Hi, I printed the values out, and inserted it into a varibble to check if it finds it. In this case it works! But it only wokes if I do it like this: array('03042003'); This does not work: array(03042003); When you make array(03042003) what you get is an array like this Array ( 0 => 3042003 )

[PHP] Re: PHP SESSION timeouts

2003-08-31 Thread Catalin Trifu
Hi, No, there is not! You have to manage yourself the timeout, for instance through a timestamp, which you verify on each request. PHP does not destry sessions by itself. It's up to you to manage the "life" of a session. if($_SESSION['last_seen'] && ($_SESSION['last_seen'] < time(

[PHP] Re: Help with copy()/uploading a file

2003-08-31 Thread Catalin Trifu
Hi, Take a look here: http://de2.php.net/manual/en/features.safe-mode.php#ini.open-basedir Basically toy have opne_basedir in effect which means you can only access subdirs of the base dir, which in your case is, (I suppose) /home/.paco/campuscb/campuscorkboard.com/ So take

[PHP] Re: Error Log

2003-08-31 Thread Catalin Trifu
Hi, Look at the php.ini file. There you can define how and where to store the errors, also the level of errors youn want to show Cheers, Catalin "Seth Willits" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > This may be obvious, but I even looked in a few books and

Re: [PHP] Re: Error Log

2003-08-31 Thread Catalin Trifu
August 31, 2003, at 09:38 AM, Catalin Trifu wrote: > > > Look at the php.ini file. > > There you can define how and where to store the errors, > > also the level of errors youn want to show > > This may come as a really big shock, but, I have no php.ini file. I >

Re: [PHP] Re: calculating datetime

2003-08-31 Thread Catalin Trifu
Hi, You have to take into consideration the behaviour of the datetime data type in MySQL. Look at the documentation http://www.mysql.com/doc/en/DATETIME.html I think the field type you need should be TIMESTAMP(14) since you can use some MySQL functions to easily check for expired d

[PHP] Re: calculating datetime

2003-08-31 Thread Catalin Trifu
Hi, offset = 1day + 1hour + 10 secs = 24 * 60 * 60 + 60 * 60 + 10 (seconds) time() + offset = the time you need or $now = explode('.', date("d.m.Y.H.i.s", time()); $now is array ( 0 => the day, 1 => the month. aso) add to the elements of the array the values you need

[PHP] Re: post values from HTML to PHP

2003-08-31 Thread Catalin Trifu
Hi, Did you use a in HTML ? Notice the POST method. You can also use $_REQUEST, which hold all variable posted, either by POST or GET. Cheers, Catalin "Ted Yu" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > I found that $_POST['name'] is empty inside my PHP

[PHP] Re: Simple File Error

2003-08-31 Thread Catalin Trifu
Hi, Does the user under wich the Apache server runs (implicitly PHP) has write access to those directories ? Cheers, Catalin "Seth Willits" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Warning: imagejpeg(): Unable to open > 'thumbnails/marching/years/2000/Miscellane

Re: [PHP] Re: Simple File Error

2003-09-01 Thread Catalin Trifu
) Cheers, Catalin FYI: To find out the user used by apache you can look in httpd.conf and look for the directive User "Seth Willits" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sunday, August 31, 2003, at 04:38 PM, Catalin Trifu wrote: > > >

[PHP] Re: Unique yet Eerie

2003-09-01 Thread Catalin Trifu
Hi, I have been using PHP for some time now and I, for one, never had such problems. I'm pretty sure the problem is elsewhere. For instance, when creating the HTML form, you have to make sure everything is quoted perfectly: And then in PHP, you have to quote

[PHP] Re: parent classes

2003-09-01 Thread Catalin Trifu
Hi, If I'm not mistaking here, you can not find the parent(s) of a class without an instance and it is quite logical. Since PHP is not a compiled language, the parent is available only at runtime. Cheers, Catalin "Cristiano Duarte" <[EMAIL PROTECTED]> wrote in message news:[EMA

[PHP] Re: Optionally force refresh in another frame

2003-09-01 Thread Catalin Trifu
Hi, JavaScript reload() function. If you have wrote in message news:[EMAIL PROTECTED] > Hi all, > > I have 3 frames: > Top, Menu (menu.php?menuid=x) and Content ( Content.php?[ table=y | > article=z]) > > Menu.php displays a menu, and the selected item=x > Content.php displays eit

[PHP] Re: can someone explain...

2003-09-01 Thread Catalin Trifu
Hi, http://de.php.net/manual/en/language.references.php Cheers, Catalin "Jswalter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > this difference bewteen A and B below? > > A)$a = &new className(true, 6); > > B)$a = new className(true, 6); /* missing & on the N

Re: [PHP] Re: PHP SESSION timeouts

2003-09-03 Thread Catalin Trifu
tes only that the data is passible for garbage, collection (much like java) nothing more. As for the cookie_lifetime, doesn't work either. Cheers, Catalin "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Let me corect you. > > Catalin Tr

[PHP] gettext i18n

2003-09-04 Thread Catalin Trifu
Hi, I want to add i18n support for my web site, but it doesn't seem to work. PHP 4.3.3., Apache 1.3.28, Mandrake 9.0 Here comes the test code. As you can see I try all sorts of things. '; echo putenv("LC_ALL=de") . ''; echo setlocale(LC_ALL, "de", "german") . '';

[PHP] Re: gettext i18n

2003-09-04 Thread Catalin Trifu
> wrote in message news:[EMAIL PROTECTED] > Hello, > > Try: > > putenv("LANG=de_DE") . ''; > putenv("LC_ALL=de_DE") . ''; > setlocale(LC_ALL, "de_DE", "german") . ''; > > Desi > > &g

Re: [PHP] Re: gettext i18n

2003-09-04 Thread Catalin Trifu
Thank you! > putenv("LANG=de_DE"); > putenv("LANGUAGE=de_DE"); // better to be paranoid, works for me ;-) this one did the trick ! > putenv("LC_ALL=de_DE"); > setlocale(LC_ALL, "de_DE", "german"); > > (see some user comments in php manual) i already read the all before posting he

[PHP] Re: Creating Images

2003-09-04 Thread Catalin Trifu
Hi, RTFM: http://de.php.net/manual/en/ref.image.php Cheers, Catalin "Jed R. Brubaker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have been trying to write some image creation scripts, and although I have > a version of PHP that includes image support, I keep getting

[PHP] Re: PEAR

2003-09-05 Thread Catalin Trifu
Hi, Let's say you have PEAR installed in /usr/local/php/lib/php To use PEAR related classes, you should add /usr/local/php/lib/php to your include_path; then restart the server ;) or you can use ini_set() on top of your scripts. Cheers, Catalin "Richard Baskett" <[EMAIL P

[PHP] Re: highlighting multi term search results

2003-09-07 Thread Catalin Trifu
Hi, > function highlight($src_terms, $src_terms_int, $result) { > $i = 0; >while ($i < $src_terms_int) { >$result = preg_replace('/('.$src_terms[$i].')/si', > ''.$src_terms[$i].'', $result); Here the $result is changed to 'test' on the first search. Obviously on the second rep

[PHP] Re: sscanf error?

2003-09-07 Thread Catalin Trifu
Hi, sscanf does what it says, that is it reads parameters, which means it expects to find a string like this "33996344" and converts it into an integer; that's why you get the result you get. This code does the job, but it's ugly: :). "; print_r($lines); foreach ($lines as $line

Re: [PHP] Re: sscanf error?

2003-09-07 Thread Catalin Trifu
isn't very > clear. > I think it says that the format is equal to sprintf. And sprintf has %010d > in format that says that a var is a number with at least 10 digits, filled > with 0's. So I think that sscanf should do the job! > > > Nuno Lopes > > > > - O

[PHP] Re: question about mysqli

2003-09-07 Thread Catalin Trifu
http://de.php.net/mysqli Cheers, Catalin <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am using PHP 5 on Windows. I have downloaded the lastest from snaps. When I > try to use the mysqli functions, I get the error message: > > undefined function mysqli_connect() > > I assume

[PHP] Re: HTTP_REFERER

2003-09-12 Thread Catalin Trifu
Hi, It does support any HTTP information, and since HTTP_REFERER is part of the HTTP spec. it is supported. You can find it in the $_SERVER variable. FYI: The referer is not a reliable information. Cheers, Catalin "Louie Miranda" <[EMAIL PROTECTED]> wrote in message news:[EM

[PHP] Re: AIX + PHP Extension Module Does Not Work (giving core dump at zend_parse_parameters)

2003-09-12 Thread Catalin Trifu
Hi, This should go to the php.devel list Cheers, Catalin "Ashish Borkar" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi , > I am writing a php extension module on AIX 4.3.3 RS6000 machine.I > have compiled php as CGI.When I test my php extension module function

[PHP] Re: Setting up PHP5 alongside PHP4 on apache

2003-11-04 Thread Catalin Trifu
Luke Van Blerk wrote: Hi everyone I'd like to set up PHP5 to parse php files with a .php5 extension on Apache 1.3.28. Anybody know how to do this? Regards Luke Hi, You can set up virtual hosts on the apache server and load the php module on a per virual host base Cheers, Catalin -- PHP General

[PHP] GD2 Fonts

2003-11-28 Thread Catalin Trifu
Fonts, I am trying to use imageloadfont($PATH_TO_FONT . '/arial.ttf'); on a windowze machine. It fails without any error message. Now, the font I use is the one from the windows Fonts/ dir. I have also installed the freetype extension. Can anyone tell me how they do it with

[PHP] Re: .htaccess authentification problem

2003-11-28 Thread Catalin Trifu
Hi, When using .htaccess files the request does not reach your scripts untill Apache has done his authentication. So, I suggest you take out the .htaccess part for authentication and deal with it only from PHP; for instance with sessions: 1. Ask for user/pass on first page and

[PHP] Re: 2 (simple?) php related questions

2003-11-28 Thread Catalin Trifu
Hi, > Whats the advantage of the above and whats the idea? > isnt it much easier (and logical) to keep track of pages if you give them a > logical name? The idea behind this approach is using MVC (MVC2) architecture which gives much more flexibility to the programmer. Usually index.ph

[PHP] ImageMagick + PHP on Win32

2003-11-28 Thread Catalin Trifu
Hi, I have downloaded and installed ImageMagick (5.5.7 Q8) in c:\imagemagick added it to %PATH% I have downloaded the latest php_imagick.dll extension from kromann.info and installed it. PHP says imagick is installed properly. However, when i am trying to run any of the exa

[PHP] Re: [PHP5]__get, __set and isset()

2004-08-31 Thread Catalin Trifu
Hi, Is this really a bug. I think not. There is no variable $o->a or $a->b in the class OO there is only the variable $elem and $a and $b is a member of that array So ... The fact that PHP5 provides __set and __get magic functions does not mean that the actual variables exi

Re: [PHP] Re: [PHP5]__get, __set and isset()

2004-08-31 Thread Catalin Trifu
on __set ($prop, $val) >{ > $this->elem[$prop] = $val; >} > } > > $o = new OO(); > echo isset($o->a) ? "yes\n" : "no\n"; # Must return false and return false > effectively, cool > $o->a = 'foo'; > echo isset($o->a

[PHP] Re: problems setting up php5 on apache2 (WinXP Pro)

2004-09-10 Thread Catalin Trifu
Hi, I 2 use winxp pro at home, actually linux + windowoze and i have encountered the same problem with mysql extension. Some extensions, such as iconv, openssl depend on external libraries. btw! it's not a good idea to mess with windows\system32 folder. If you want you can ad

[PHP] Re: PHP modules

2004-09-10 Thread Catalin Trifu
http://ro.php.net/manual/en/zend.php This might be a good start. Cheers, Catalin "Benjamin Bostow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I have heard of php modules and to the sound of it it allows me to create >php functions that I don't have to have include files to ha

[PHP] Re: gettext does not translate

2004-09-11 Thread Catalin Trifu
Hi, I had really bad headaches with gettext some time ago and since then I decided to no longer use it. It's unreliable on heavy loads (mixed english + translated texts), moving the scritps to another machine means more headache, it relies on system calls which are not "isolated", whic

[PHP] Re: how to post data to java servlet

2004-09-19 Thread Catalin Trifu
Hi, $str = "DATA=abc&DATA=123&DATA=xxx" I believe you should encode the string with http://www.php.net/rawurlencode but make sure u don't encode the & and = signs. $len = strlen($str); $p = "POST /httpsmspp/servlet/sms HTTP/1.0\r\n"; $p.= "Host: 123.31.228.206\r\n"; $p.= "Content-

[PHP] Re: mail function and qmail

2004-09-26 Thread Catalin Trifu
Php Mysql wrote: mail function in php requires to use 'sendmail'. But I have only 'qmail' on the box. How I can send email in PHP? Thanks Hi, After u installed qmail, there is a qmail compatible sendmail created for you in /var/lib/qmail/bin (i think that's where it should be). As qmail

[PHP] Re: Dynamic PHP links

2005-02-13 Thread Catalin Trifu
Hi, Check out this http://phpsec.org/ Cheers, Catalin Hi, I'm new to PHP and I'd appreciate your advice a lot. I'm trying to use dynamic PHP links instead of plain HTML and I'm gonna use something like this: File "index.php": story about But a guy told me it is not preferable to use t

[PHP] php_serializer

2005-02-15 Thread Catalin Trifu
Hi, Is the php5 session serializer php_binary faster than the php one ? Or it's purpose is just to obscure the saved datas ? thanks, catalin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php SMPP

2005-04-13 Thread Catalin Trifu
Hi, If you are into C programming try kannel (www.kannel.org); they fully implement SMPP protocol into their gateway, so you could take a look at their code. Catalin Kyriacos Sakkas wrote: > Hi all, > Just wondering if anybody has had experience using SMPP with php. I > have u

[PHP] kannel library

2005-05-11 Thread Catalin Trifu
Hi, Has anyone knowledge about a kannel (www.kannel.org) php library to deal with sms and binary content messages such as wap push and nokia smart messages ? Catalin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] WAP Push

2004-04-21 Thread Catalin Trifu
Hi, Has anyone worked with Simplewire SMS SDK ? If yes, is it possible to send WAP push messages with it and if yes how. If anyone has any info about some PHP + WAP push combination i would be very grateful. Thank you, Catalin P.S. I've googled for it -- PHP General Ma

[PHP] Re: session timeout?

2004-02-24 Thread Catalin Trifu
Hi, You have to make the code yourself, After session_start you should check the session for some variable you use to check if the user is logged in eg: C. "Jake McHenry" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] How can I make my site auto log out a use

[PHP] session expired -> how to know if the session is new or old

2004-02-24 Thread Catalin Trifu
Hi, Here is the problem: The session gc runs and deletes the session data. This is good, but calling session_start in PHP obviously creates a new session. How can I know if the session was created after an old one was deleted because gc has invalidated it or it is a compl

[PHP] Re: session expired -> how to know if the session is new or old

2004-02-24 Thread Catalin Trifu
send the session id he got before sleeping. Catalin, "Jakes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > What do you need this for.? You session is only suppose to last for one > browser session > > "Catalin Trifu" <[EMAIL PROTECTED]&

Re: [PHP] Re: session expired -> how to know if the session is new or old

2004-02-24 Thread Catalin Trifu
Thanks for the response. Indeed it seems this is the only way to achieve what I want. It would be nice if the PHP guys would implement such functionality. Catalin "Stuart" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Catalin Trifu wrote

Re: [PHP] Re: session expired -> how to know if the session is newor old

2004-02-24 Thread Catalin Trifu
04-02-24 alle 15:16, Jakes ha scritto: > > What do you need this for.? You session is only suppose to last for one > > browser session > > > > "Catalin Trifu" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > Hi, > >

[PHP] Re: Transfering a file

2004-02-24 Thread Catalin Trifu
Hi, You could ftp to the other server, or even http. >From php you can open a connection to the other's ftp ot http services and transfer the file from one server to the other like this Regards, C. "Mike Koponick" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello eve

[PHP] Re: php + lynx + grep

2004-04-07 Thread Catalin Trifu
Hi, I had same problem myself once. Try adding the apache user to sudoers in /etc/sudoers if not already there Cheers, Catalin "Brian L. Ollom" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > lynx --source http://weather.noaa.gov/weather/current/KTOL.html |grep -v

[PHP] Re: Exceptions and builtin functions in PHP5

2004-04-08 Thread Catalin Trifu
Hi, I think this question is better suited to the devel list. Catalin "Tumurbaatar S." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > If I understand right, PHP5 has an exception > handling mechanism but it is only for "manual" using, i.e. > a programmer can use try/ca

[PHP] Re: Adding a new entry using PHP

2004-04-08 Thread Catalin Trifu
Hi, Check http://php.weblogs.com/adodb Catalin P.S. Welcome to PHP :) "Alistair Hayward" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I am an ASP user, now learning PHP. > > When adding a record in ASP, I do this: > > Recordset.AddNew > Field1 = whatev

[PHP] weird thing; downloading from a php script stops at exactly 2.000.000 bytes

2005-06-09 Thread Catalin Trifu
Hi, I installed php5 using the configue below. I tried with apache2 as well and same things. './configure' '--prefix=/usr/local/php5' '--with-apxs=/usr/local/apache/bin/apxs' '--disable-cgi' '--with-config-file-path=/etc/php5' '--with-dom' '--with-gd' '--enable-sockets' '--enable-ex

[PHP] Re: weird thing; downloading from a php script stops at exactly 2.000.000bytes

2005-06-09 Thread Catalin Trifu
I also use eaccelrator; However, even if I disable it completely, it still stops at 2.000.000 bytes. Catalin Catalin Trifu wrote: > Hi, > >I installed php5 using the configue below. I tried with apache2 as well > and same things. > > './configur

[PHP] Re: _construct() problem

2005-06-09 Thread Catalin Trifu
Hi, What aout __construct() ->thi shoul do the trick (read the manual) Catalin Stéphane Bruno wrote: > Hello, > > I designed a "player" class with the following properties and > constructor: > > class player { > private $properties = array('firstname' => NULL, 'lastname' => NULL)

[PHP] Re: weird thing; downloading from a php script stops at exactly 2.000.000bytes

2005-06-09 Thread Catalin Trifu
Hi, Thanks for the answer; the amount of memory configured is 64MB. readfile does no buffering and such things; it simply spits the file on the wire. Other suggestions ? C. rush wrote: > "Catalin Trifu" <[EMAIL PROTECTED]> wrote in message >

[PHP] [? BUG ?] weird thing; downloading from a php script stops at exactly 2.000.000 bytes

2005-06-09 Thread Catalin Trifu
Hi, I installed php5 using the configue below. I tried with apache2 as well and same things. './configure' '--prefix=/usr/local/php5' '--with-apxs=/usr/local/apache/bin/apxs' '--disable-cgi' '--with-config-file-path=/etc/php5' '--with-dom' '--with-gd' '--enable-sockets' '--enable-exif' '--w

Re: [PHP] [? BUG ?] weird thing; downloading from a php script stops at exactly 2.000.000 bytes

2005-06-09 Thread Catalin Trifu
across that problem, but try this > > function output_file($filename){ > $fp = fopen($filename, "r"); > while(!feof($fp)){ > echo fread($fp, 1024000); > } > } > > On 6/9/05, Catalin Trifu <[EMAIL PROTECTED]> wrote: > >>Hi, >> >&

Re: [PHP] [? BUG ?] weird thing; downloading from a php script stops at exactly 2.000.000 bytes

2005-06-10 Thread Catalin Trifu
omething like > that, but taking into account that your method is stretching the > resources, fopen/fread may be a better solution. > > I'd be curious to see the benchmarked differences - but couldn't be > bothered at this minute doing the benchmarking atm. > > On 6/10

Re: [PHP] [? BUG ?] weird thing;downloading from a php script stops at exactly 2.000.000 bytes

2005-06-11 Thread Catalin Trifu
tates readfile should be the way to spit a file out the wire. btw: $fp = fopen('somefile'); fpassthru($fp); is also stopping at 2.000.000 bytes, which definetely drives me to think there is a bug somewhere. Catalin Richard Lynch wrote: > On Thu, June 9, 2005 4:12 pm,

Re: [PHP] weird thing;downloading from a php script stops at exactly 2.000.000 bytes

2005-06-12 Thread Catalin Trifu
talin Richard Lynch wrote: > > I just noticed the eaccelerator bit in this thread. > > Just disabling eaccelerator isn't the same as not compiling it in in the > first place... > > Try that before reporting a bug to http://bugs.php.net > > On Thu, June 9,

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: MYSQLI, Class not found?

2005-06-20 Thread Catalin Trifu
Hi, Is PHP compiled with mysqli support: http://ro.php.net/mysqli Read the docs about what this extension requires. Catalin [EMAIL PROTECTED] wrote: > > Hey guys, > > I'm doing a tutorial from a book (PHP and MySQL Web Development) and I'm > having a problem... when I use

[PHP] Re: Persistant Connections and max_connections on mysql

2005-06-21 Thread Catalin Trifu
Hi, This is a database issue and has to do with the following mysql variables: interactive_timeout wait_timeout By default these variables are set to 28800 and they represent the time for which the server waits on "persistent" connection. If you have a busy site that

  1   2   >