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
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 unsubscribe, visit: http
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
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 General Mailing
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
, 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
,
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 (!strstr($password, $char)) {
$password .= $char;
$i
run:
$ php delete_tmp.php
as root, it deletes sess_89765 file.
But if I do the 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
index.php is:
?php
$username_from_iis = $_REQUEST['username'];
print('Hello ' . $username_from_iis);
?
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
= 'http://' . $_SERVER['HTTP_HOST'];
foreach($browser as $key = $val){
echo $host . img src=\dcs/ . $key . '.png' . / . ;
(...)
But this way, all it echoes is the $host variable.
What am I missing here ?
Any help would be appreciated.
Warm Regards,
Mário Gamito
--
PHP General
/: 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
/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 General Mailing List (http://www.php.net/)
To unsubscribe
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';
exec(su -c - vpopmail \/var/qmail/bin/maildirmake
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/hash.php
Password:
Any ideas ?
Warm Regards,
Mário Gamito
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
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 (http://www.php.net
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 calculates the hash and then insert it.
Warm Regards,
Mário Gamito
follows my signature.
Any help would be appreciated.
Warm Regards
--
:wq! Mário Gamito
--
div id=blocoNews
?php
include('config.php');
include('adodb/adodb.inc.php');
// connect to MySQL
$conn-debug=1;
$conn = ADONewConnection('mysql');
$conn-PConnect($host,$user,$password,$database
';
$recordSet-MoveNext();
}
echo br class=\clear\;
$recordSet-Close();
$conn-Close();
?
!-- end #secContent --
/div
Warm Regards
--
:wq! Mário Gamito
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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.
Warm Regards
--
:wq! Mário Gamito
--
pa href=recover
);
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
--
:wq! Mário Gamito
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
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
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
session_start
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.
--
:wq! Mário Gamito
--
?php
session_start
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
--
?php
if (isset($_SESSION['email'])) {
echoa
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
{
//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
/a;
to display the 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
--
?php
if (isset($_SESSION['email'])) {
$error = false;
if (isset($_GET['file'])) {
$file = basename($_GET['file
! Mário Gamito
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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 (http://www.php.net/)
To unsubscribe
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://www.php.net
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
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
!
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
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
is 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 General Mailing
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
out, please ?
Warm Regards,
Mário Gamito
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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 have adopted.
--
PHP
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 you will see
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
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
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,
Mário Gamito
Colin
'(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
):
Now, i want here a browse button, so users when clicking on it trigers
the os File Open box to choose the file to upload.
/form
My question is: what is the code i need in the form ?
And the form tag, is it allright like it is ?
Thank you in advance.
Warm regards,
Mário Gamito
--
PHP General
?
Thanking you in advance.
Warm Regards,
Mário Gamito
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
question is, how can i, in the action code, retrieve the option
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
doesn't go along.
The page that has this code knows tha value of $email variable.
How can i turn this around ?
Thanking you in advance.
Warm regards,
Mário Gamito
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
The sugestions i'm asking for are about the mechanism.
Thanking you in advance.
Warm Regards,
--
Mário Gamito
Bastard Administrator in $hell
$Users, you better make your backups
Key FingerPrint: 0xA86C640A
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
.
The sugestions i'm asking for are about the mechanism.
Thanking you in advance.
Warm Regards,
Mário Gamito
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
with an URL ending in ?code=345njkh53h23
If they click on them and the codes match, the boolean field in the DB
switches to TRUE.
I think it's a bit complicated engine for such a simple field.
Any sugestion about easying the process ?
Warm Regards,
Mário Gamito
George Pitcher wrote:
Mario,
My
'];
$code = $_GET['code'];
print($email);
print($code);
for testing, but it does print nothing.
So, i'm not getting the parameters from the URL.
I have register_globals=Off in php.ini
Why is this wrong and how to make it right ?
Thanking you in advance.
Warm Regards,
Mário Gamito
--
PHP
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
Hi Richard,
It still doesn't works.
Maybe it's because it's being launched from outside the site (i. e., the
referrer is not from the site ?).
Maybe something's in php.ini ?
Any ideas ?
Warm Regards,
Mário Gamito
Richard Davey wrote:
Hello Mário,
Friday, May 20, 2005, 4:48:07 PM, you
Hi,
I have this server with display_errors=Off in php.ini
Now that i'm developing a new site. is there some code i can insert in
the begining of a .php file to set only for this file (not sitewide)
display_errors=On ?
Thanking you in advance.
Warm regards,
Mário Gamito
--
PHP General Mailing
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
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
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
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 = a href =\.$url.\.HtmlEntities($url).\./a;
It appears the parse error is at the end of your opening link tag, so PHP
doesn't
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 = a href =\.$url.\.HtmlEntities($url).\./a;
It appears the parse error is at the end of your opening link tag, so
PHP
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 see that the
@ is switched
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 switched by %40.
Yes, because
, 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');
while (!$recordSet-EOF) {
print ('a href=\'http://www.dte.ua.pt
, 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');
while (!$recordSet-EOF) {
print ('a href=\'http://www.dte.ua.pt
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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
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,...
My son name is Manuel Ramos Gamito. Only 3 names.
Should
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 dos Reis
Gamito.
Mário is the Christian name
on line 12
and no redirection :(
How can i solve this ?
Any help would be apreciated.
Warm Regards,
Mário Gamito
?php
$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
$sub_domain = explode (., $hostname);
if ($sub_domain[1] != 'dte') {
echo
script language=\JavaScript\
window.open
'), 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
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
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.
--
Mário Gamito
Administração de
no calçadão :)
/portuguese mode
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
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
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
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 process
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 problem
Mário Gamito wrote:
Hi,
I have this site at http
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
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
smime.p7s
Description: S/MIME
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
class
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
class
79 matches
Mail list logo