[PHP] Running mount from PHP

2008-07-09 Thread Mário Gamito
ve the ownership and permissions of the mount point set correctly. As it is a dynamic application, the mount point always changes (/mnt/user1, /mnt/user2, etc.), so, /etc/fstab is not an option :( Any ideas ? Warm Regards, Mário Gamito -- PHP General Mailing List (http://www.php.net/) To unsu

[PHP] mount

2008-07-09 Thread Mário Gamito
Hi, I need to perform a mount and a umount from PHP. I've searched the manual, but didn't find anything useful. Any ideas ? Any help would be appreciated. Warm Regards, Mário Gamito -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PDF inline viewer

2008-06-20 Thread Mário Gamito
Hi, Does someone knows of a PHP software that is an inline PDF reader ? You can view the idea here: http://www.scribd.com/doc/2025925/Clinical-chemistry-II-Biomedical-Science-practical-1 Any help would be appreciated. Warm Regards, Mário Gamito -- PHP General Mailing List (http://www.php.net

[PHP] Flush file contents

2008-05-15 Thread Mário Gamito
Hi, How do I open a file and flush all it's contents to insert new ones and close again ? I've browsed through the fopen function aguments and didn't find one that do this (or I misunderstood one of them). Any help would be appreciated. Warm Regards, Mário Gamito -- PHP

[PHP] JavaScript and PHP

2008-05-14 Thread Mário Gamito
e tried putting einstein.php all inside an "echo", but the radio buttons and the submit button stopped working. Does anyone knows how to do this ? Any help would be appreciated. Warm Regards, Mário Gamito -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problems with mod_vhost_alias and PHP require

2008-05-07 Thread Mário Gamito
keditor/fckeditor.php So, there's a "gamito" hanging wrongly in the request. How can I solve this ? Any help woud be appreciated. Warm Regards, Mário Gamito -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem in a generate password function

2008-03-31 Thread Mário Gamito
ppreciated. Warm Regards, Mário Gamito -- function create_pass () { $length=10; $password = ""; $possible = "0123456789abcdefghijklmnopqrstuvxz"; $i = 0; while ($i < $length) { $char = substr($possible, mt_rand(0, strlen($possible)-1), 1); if (!strs

[PHP] Deleting file in /tmp directory

2008-03-28 Thread Mário Gamito
same has user gamito, it doesn't delete the file !!! Ideas ? Any help would be appreciated. Warm Regards, Mário Gamito -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] This beats me (variable not being passed through pages)

2008-03-24 Thread Mário Gamito
TP/1.1" 200 223 File index.php is: But index.php only shows "Hello" and not "Hello gamito" as I'd expect. Any ideias ? Any help would be appreciated. Warm Regards, Mário Gamito -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem with quotes

2008-02-21 Thread Mário Gamito
e picture, so I did: $host = 'http://' . $_SERVER['HTTP_HOST']; "foreach($browser as $key => $val){ echo $host . "" . " "; (...)" But this way, all it echoes is the $host variable. What am I missing here ? Any help would be

Re: [PHP] Help on running external command / Partially solved

2008-02-20 Thread Mário Gamito
ror: ".$err : null; > ?> No output at all and I have "display_errors = On" in php.ini Still no directory creation. If I run the file as user vpopmail it asks me for a password: # su - vpopmail $ php /home/www/hash.php Output:" [EMAIL PROTECTED] ~]$ php /home/www/ha

Re: [PHP] Help on running external command / Partially solved

2008-02-20 Thread Mário Gamito
Of course the code is: $username = 'lixo'; exec("su -c - vpopmail \"/var/qmail/bin/maildirmake /home/vpopmail/domains/wwlib.lan/\"$username"); Mário Gamito wrote: Hi, Thank you for your answers. I got it working with: "//$username = 'lixo&#x

Re: [PHP] Help on running external command / Partially solved

2008-02-20 Thread Mário Gamito
on the web server it doesn't. Directory /home/vpopmail/domains/wwlib.lan/ is owned by vpopmail.vchkpw (as well as my .php page) with 700 permission. I even tried chmoding 777 to my page, but still, it doesn't create the directory. Any ideas ? Warm Regards, Mário Gamito --

[PHP] Help on running external command

2008-02-20 Thread Mário Gamito
r/qmail/bin/maildirmake/home/vpopmail/domains/wwlib.lan/: Not a directory" Which means that the $username variable isn't being appended to the string. Any help would be appreciated. Warm Regards, Mário Gamito -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Call PHP script from MySQL

2008-02-19 Thread Mário Gamito
t; if that'd be okay. Not to judge, just to learn :) I'm inserting values in a Linux/MySQL table from an ASP.NET/C# page. I need to insert the password field with the correct hash (vpopmail). So, after the first insert leaving the password field blank, I need to invoke a PHP script that ca

[PHP] Call PHP script from MySQL

2008-02-19 Thread Mário Gamito
Hi, Is it possible to call from within MySQL an external PHP script ? I've read "MySQL Stored Procedure Programming" from O'Reilly but found nothing :( How can I do this ? Any help would be appreciated. Warm Regards, Mário Gamito -- PHP General Mailing List (htt

Re: [PHP] Where to insert a phrase in the right place

2007-04-09 Thread Mário Gamito
); $_SESSION['greeted'] is always equal to 1 as set in the beginning of the file. http://www.telbit.pt/2/login.php Warm Regards -- :wq! Mário Gamito -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Where to insert a phrase in the right place

2007-04-09 Thread Mário Gamito
ssion_start(); session_register("email"); in the beginning of the file. I've tried: if (isset($_SESSION['email'])) print('Welcome ' . $name); but obviously it prints the "Welcome" word as the same. Any ideas ? Thanks in advance. Warm Regards -- :

[PHP] Where to insert a phrase in the right place

2007-04-09 Thread Mário Gamito
he error "You didn't fill all fields, please try again." is being displayed on page load. This is my problem and to which i ask you for your help. How can i make the word "Welcome" appear only after the login ? My code follows my signature. Any help would be appreciated.

Re: [PHP] "Sense" last record

2007-04-09 Thread Mário Gamito
#x27;' . $recordSet->fields[3] . '' . '' . $recordSet->fields[1] . '' . '' . $recordSet->fields[4] . 'href=news.php?news='. $recordSet->fields[0] . '>[+]' . '' . ''; $recordSet->MoveNext();

[PHP] "Sense" last record

2007-04-09 Thread Mário Gamito
row and apply the "blocoTextoLast" class to it ? My code follows my signature. Any help would be appreciated. Warm Regards -- :wq! Mário Gamito -- debug=1; $conn = &ADONewConnection('mysql'); $conn->PConnect($host,$user,$password,$database); // get news data

Re: [PHP] PDF: error

2007-04-05 Thread Mário Gamito
4794 0 n 014842 0 n 014889 0 n 014937 0 n 014984 0 n 015033 0 n 015082 0 n 015130 0 n 015179 0 n 015228 0 n 015277 0 n 015326 " (etc...) Full code after my signature. Any help would be appreciated. -

[PHP] PDF: error

2007-04-05 Thread Mário Gamito
Hi, I've managed to make the PDF download system work. But when it opens in acrobat reader, i get the error you can see in: http://www.gamito.org/fucked-pdf-2.jpg The code follows my signature. Any help would be appreciated. Warm Regards -- :wq! Mário Gamito -- -- PHP General Ma

Re: [PHP] Problems downloading a PDF / Partially solved

2007-04-04 Thread Mário Gamito
00012850 0 n 012884 0 n 013037 0 n 013174 0 n 013704 0 n 014104 0 n 014488 0 n 014700 0 n 014747" Something must be wrong with the definition of the file type. Warm Regards -- :wq! Mário Gamito -- PHP General Mailing List (ht

Re: [PHP] Problems downloading a PDF

2007-04-04 Thread Mário Gamito
? Warm Regards -- :wq! Mário Gamito -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problems downloading a PDF

2007-04-04 Thread Mário Gamito
e link for download!!! How can i sove this puzzle ? Full code follows my signature. Thanks for all your help guys. Warm Regards, -- :wq! Mário Gamito -- Download TESTUDIO flyer"; exit; } header('Content-type: application/pdf'); header("Content-Length: &q

Re: [PHP] Problems downloading a PDF

2007-04-04 Thread Mário Gamito
ull is not readable by apache"; else { //same as before } I'm not sure if i understand you :( Warm Regards -- :wq! Mário Gamito -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problems downloading a PDF

2007-04-04 Thread Mário Gamito
Hi, Thank you all for your answers. I would say almost the opposite: I get a Page Not found. The problem is that $file variable is empty (tested with a print). Any ideas ? Warm Regards -- :wq! Mário Gamito -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Problems downloading a PDF

2007-04-04 Thread Mário Gamito
x27;ve coded in order to do the trick, but it's failing. I can't get the name of the file. Notice that the page which has the code is products-teststudio.php itself. The code follows my signature. Any help would be appreciated. Warm Regards -- :wq! Mário Gamito -- echo"rel=

Re: [PHP] Downloads for subsrcibers only

2007-04-03 Thread Mário Gamito
do this, if i may ask ? I'm much a system's administrator than a PHP programmer. Warm Regards -- :wq! Mário Gamito -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about form submitting / clarification

2007-04-03 Thread Mário Gamito
think i was misunderstood. I know how to do the error handling. What i don't know is how to display the error messages in the same page as the submit form. Warm Regards -- :wq! Mário Gamito -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Question about form submitting

2007-04-03 Thread Mário Gamito
s how do i make all these possibilities show a different error message without leaving subscribe.php ? I know that the for action must be subscribe.php, from there i'm blind as a bat. Any help would be appreciated. Warm Regards -- :wq! Mário Gamito -- PHP General Mailing List (http://w

[PHP] Sending mail through another (SMTP authenticated) host

2007-04-02 Thread Mário Gamito
Hi, How can i use the mail function to send messages through another server that has authenticated SMTP ? Any help would be appreciated. Warm Regards -- :wq! Mário Gamito -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problems with mail

2007-04-02 Thread Mário Gamito
#x27;Hello', 'Hello'); then the mail is sent ok! I'm driving nuts here. Can someone give me a hand on this, please ? Warm Regards -- :wq! Mário Gamito -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Downloads for subsrcibers only

2007-04-01 Thread Mário Gamito
d). You > have to add some logic in order to restrict access to your files. Thanks a bunch. I'll try it tomorrow at work Warm Regards -- :wq! Mário Gamito -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Downloads for subsrcibers only

2007-04-01 Thread Mário Gamito
s the best approach ? Register a session when they login and then in the PDFs page apply a if email is registered you can download the PDFs else you can't Something like this ? Or is it there a better way ? Any help would be appreciated. Warm Regards -- :wq! Mário Gamito -- PHP Gener

[PHP] Error compiling lib

2007-02-08 Thread Mário Gamito
]: *** [bundled] Error 2 make[1]: Leaving directory `/usr/local/src/imap-2006e' make: *** [slx] Error 2" Can someone help me out, please ? Warm Regards, Mário Gamito -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: How to effectuate translations

2006-09-30 Thread Mário Gamito
Hi, Yes, but what i was looking for is the best solution for the users to choose their language. Thanks for the useful link anyway. Best Regards, Mário Gamito Tony Marston wrote: > If you read > http://www.tonymarston.net/php-mysql/internationalisation.html#determine.use > r.language

Re: [PHP] Re: How to effectuate translations

2006-09-30 Thread Mário Gamito
Hi, But this allows users to choose the language or is it an automatic process from the browser language ? Regards, Mário Gamito Tony Marston wrote: > Take a look at > http://www.tonymarston.net/php-mysql/internationalisation.html which > documents the solution which I hav

[PHP] Displaying MySQL results on runtime

2006-09-27 Thread Mário Gamito
Hi, I have this code to create a database and a few tables. Is there a way to display the MySQL actions at runtime, i. e., display the MySQL commands while they are being executed ? Any help would be appreciated. Warm Regards, Mário Gamito -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Why this doesn't work ?

2005-10-24 Thread Mário Gamito
t syntax to use near '(login) FROM formacao WHERE login = 'a'' at line 1" Regards, Mário Gamito -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why this doesn't work ?

2005-10-24 Thread Mário Gamito
Hi, Sorry, i do have the table name. It just passed me while transcripting. The code is: --- $query = "SELECT COUNT (login) FROM formacao WHERE login = '$login'"; $result = mysql_query($query); mysql_fetch_row($result); --- It works perfectly on MySQL prompt. Regards,

[PHP] Why this doesn't work ?

2005-10-24 Thread Mário Gamito
gistar_action.php on line 22 Any help would be apreciated. Warm Regards, Mário Gamito -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Dummy question about gettion "select option" choosen

2005-05-29 Thread Mário Gamito
choosen by the user ? My most apologies for yet another dummy question, but i google and google, and i always end up seeing examples fulls of complexity, when i want is such a simple thing. Thanking you in advance. Warm Regards, Mário Gamito -- PHP General Mailing List (http://www.ph

[PHP] Getting parameters from a URL coming from outside the site

2005-05-20 Thread Mário Gamito
Hi, Following the previous discussion regarding confirmation of subscriptions (to all the people who replied, my thanks), i now generate an URL something like this: http://www.bar.com/[EMAIL PROTECTED]&code=vu782 This hit will come from someone's mail client. Then, in file confirma_registo_acti

[PHP] Code stoped working after upgrading from 4 to 5

2005-04-28 Thread Mário Gamito
Hi, I have this simple piece of code that worked like a chram in PHP 4.x Now that i've moved to PHP 5 it doesn't work anymore. I always get 0 for $form_ok even if all fields are filled. The variables come from a form in a previous page. Any ideas on where the problem might be ? I have "register_

[PHP] Question regarding PDF creation

2005-04-18 Thread Mário Gamito
re is that the part ,0,1, is not stringed, while C is. So, what i get in the PDF is Curriculum Vitae de Mário Gamito,0,0,C (Mário Gamito == $full_name) So, how to "unparse" the ,0,1, in the middle of the instruction ? Any help would be apreciated. Warm Regards, Mário Gamito -- PH

Re: [PHP] Parsing... the hell of PHP

2005-03-30 Thread Mário Gamito
Hi, Thank you all that answered my question. It worked. I think i'll never get used to this parsing PHP stuff :( Warm Regards, Mário Gamito [EMAIL PROTECTED] wrote: > $url = ".HtmlEntities($url)."\">"."; > > It appears the parse error is at the end of y

Re: [PHP] Parsing... the hell of PHP

2005-03-30 Thread Mário Gamito
Hi, Thank you all that answered my question. It worked. I think i'll never get used to this parsing PHP stuff :( Warm Regards, Mário Gamito [EMAIL PROTECTED] wrote: $url = ".HtmlEntities($url)."\">"."; It appears the parse error is at the end of your opening li

[PHP] Parsing... the hell of PHP

2005-03-30 Thread Mário Gamito
i get. Can't get there :( Any help would be apreciated. Warm regards, Mário Gamito -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why not @ ?

2005-03-22 Thread Mário Gamito
Hi Richard, Thanks a lot for your tip and explanation. It did worked :) Warm Regards, Mário Gamito Richard Davey wrote: Hello Mário, Tuesday, March 22, 2005, 11:42:13 AM, you wrote: MG> However, if you click and go to the respective page, you'll see that the MG> "@" is s

[PHP] Why not @ ?

2005-03-22 Thread Mário Gamito
Hi, If you care to take a peak at http://www.dte.ua.pt/cv/ and pass your mouse over the link "Mário Gamito", you'll see in the status bar that the link is: http://www.dte.ua.pt/cv/[EMAIL PROTECTED] Allright. However, if you click and go to the respective page, you'll

[PHP] Escaping

2005-03-21 Thread Mário Gamito
Links", but... it doen't, becuase i can't straight the escaping :( Any help would be apreciated. The code follows my signature. Warm Regards, Mário Gamito -- // select names to display in the right column $recordSet = &$conn->Execute('SELECT name FROM users'); whil

[PHP] Damn escaping... Grunf...

2005-03-21 Thread Mário Gamito
Links", but... it doen't, becuase i can't straight the escaping :( Any help would be apreciated. The code follows my signature. Warm Regards, Mário Gamito -- // select names to display in the right column $recordSet = &$conn->Execute('SELECT name FROM users'); whil

Re: [PHP] Re: Question about "shortening" a string

2005-03-11 Thread Mário Gamito
Hi Sokolewicz, Thanks a lot. It just working really fine :) Thank you again. Warm regards, Mário Gamito M. Sokolewicz wrote: > Mário Gamito wrote: > >> Hi, >> >> In Portgal we have big names. >> My complete name, for instance, is "Mário Augusto Machado d

[PHP] Question about "shortening" a string

2005-03-11 Thread Mário Gamito
ull big name like mine, but i want to shorten them just to the first and the last. For example, if i fill the form with "Mário Augusto Machado dos Reis Gamito", i want to change this string to only "Mário Gamito". The total number of names is not fix. Could be 3, 4, 5, 6,...

[PHP] How to ge the ones which are not

2005-03-11 Thread Mário Gamito
t, well... as i've told you, it isn't. Any ideas of how to solve this, i.e., being the regular expression (and it is), what do i have to do to get only the invalid adresses ? In short, i only want to trap the invalid ones. Any help would be apreciated. Warm Regards, Mário Gamito -- PHP

[PHP] PHP / JavaScript integration

2005-03-08 Thread Mário Gamito
f('all_not_filled') // def is a JS function in js.php ?> (...) -- How can i do this ? How to tell PHP, that def(word) is a JS function in js.php file ? I've tried include ('js.php'), etc., but got no results :( Any help would be apreciated. Best regards, Mário Gamito -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Quite a basic question

2005-03-08 Thread Mário Gamito
hp on line 12" and no redirection :( How can i solve this ? Any help would be apreciated. Warm Regards, Mário Gamito $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); $sub_domain = explode (".", $hostname); if ($sub_domain[1] != 'dte') { echo&qu

[PHP] Free library for PDF functoins ???

2005-01-18 Thread Mário Gamito
Hi, Does anyone knows of a free library to compile PHP against and have PDF functions support ? Any help would be apreciated. Warm regards, Mário Gamito -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Warnings on the bottom of the pages on Linux

2004-12-30 Thread Mário Gamito
the mood to make PHP warnings appear at the bottom too. But... ... i've browsed php.ini and didn't found any way (obvious, at least) to do the same thing in Linux. Already googled also, but nothing. Is it possible to achieve this in Linux ? Any help would be apreciated. Warm regards. --

Re: [PHP] Re: Good and free encoder for PHP5

2004-12-15 Thread Mário Gamito
Warm Regards, Mário Gamito Manuel Lemos wrote: Hello, Mário gamito said the following on 12/14/2004 08:51 AM: Does anyone around here knows a *good* and *free* encoder for PHP5 ? I used to run Turck, but it seems that somehow it has been discontinued. (At least, the last release occured about a yea

[PHP] Good and free encoder for PHP5

2004-12-14 Thread Mário Gamito
Hi, Does anyone around here knows a *good* and *free* encoder for PHP5 ? I used to run Turck, but it seems that somehow it has been discontinued. (At least, the last release occured about a year ago). Any help would be apreciated. Warm Regards. -- Mário Gamito Administração de sistemas e

Re: [PHP] PID needed to hammer squid

2004-08-25 Thread Mário Gamito
Hi, I need to kill (squid) -D pidof (squid) -D gives an error :( Regards, Mário Gamito raditha dissanayake wrote: Mário Gamito wrote: Hi, I need to restart squid from PHP, but my squi doesn't stop because a lot of stupid errors. So, i need to kill it and then start it again. killing a pr

[PHP] PID needed to hammer squid

2004-08-25 Thread Mário Gamito
1.0 8392 5060 ?S16:04 0:00 (squid) -D How can i get this pid so i can kill -9 it and then start squid again ? Any help would be appreciated. Warm Regards, Mário Gamito -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Very, very wiered problem - Part 2

2004-03-09 Thread Mário Gamito
Hi, > Is /home/vhosts/dte/ticct/include/complete_url.php readable > for the apache process? Sure :-) Warm Regards, Mário Gamito smime.p7s Description: S/MIME cryptographic signature

[PHP] Very, very wiered problem - Part 2

2004-03-09 Thread Mário Gamito
complete_url is in it's place. Any ideas ? Warm Regards, Mário Gamito > -Original Message- > From: Marek Kilimajer [mailto:[EMAIL PROTECTED] > Sent: Monday, March 08, 2004 11:34 PM > To: Mário Gamito > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Very, very wiered pro

[PHP] Very, very wiered problem

2004-03-08 Thread Mário Gamito
hough it's there. I'm running SuSE 9, with a compiled Apache 1.3.29, PHP 4.3.4, and MySQL 3.23.28 Can it be SuSE's compiler the source of the problem ? It's random character makes it so difficult to debug :-( Any ideas would be apreciated. Warm Regards, Mário Gamito

[PHP] Class not working after PHP 4.2.3

2003-07-01 Thread Mário Gamito
Hi, I have this class for sending mail, which worked until PHP 4.2.3 Since 4.3.0 it stops functioning. No error message. The mail is simply not send. I've searched everywhere and found no explanation for this behaviour. Any help would be appreciated. Warm regards, Mário Gamito

Re: [PHP] File upload: type and size question

2003-07-01 Thread Mário Gamito
Hi, I have this class for sending mail, which worked until PHP 4.2.3 Since 4.3.0 it stops functioning. No error message. The mail is simply not send. I've searched everywhere and found no explanation for this behaviour. Any help would be appreciated. Warm regards, Mário Gamito