[PHP] Re: Error with system() when running convert

2004-12-20 Thread Jonathan Schwarz
Well, answering my own question, it turns out that convert is in /usr/X11R6/bin, which is not in php's path. Creating an alias in /usr/bin solved the issue. On Tue, 21 Dec 2004 00:59:40 -0500, Jonathan Schwarz <[EMAIL PROTECTED]> wrote: > I'm using some system calls to do some image processing, m

[PHP] Error with system() when running convert

2004-12-20 Thread Jonathan Schwarz
I'm using some system calls to do some image processing, mostly just resize, compress, and a few other simple tasks on some jpgs. I'm using convert, djpeg, cjpeg, mogrify, etc to accomplish this. The issue I'm running into now is that I have a command that runs fine from the command line, but not

[PHP] Re: Encryption

2004-12-20 Thread Darren Wheatley
If nobody has a better suggestion I am simply going to do a reverse check and for those that fail implement a massive hack. I really don't want to do that... Please, if you have any ideas give me a yell? D "Darren Wheatley" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hey all. >

RE: [PHP] php terminal.

2004-12-20 Thread Mike
> Since my webhosting didnt provide me with telnet access, I > would like to have a small software that created by php to do > some bash function such as lynx, ls etc ? > > thx a lot :) > Honestly, just get a new ISP that provides SSH access - many, many of them do and it's not something that s

[PHP] Help with code#2

2004-12-20 Thread karl james
Hey guys, Just to let you know I turned off my read receipt, sorry about that. I had forgot I had it on. Karl James (TheSaint) [EMAIL PROTECTED] http://theufl.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help wth coding

2004-12-20 Thread karl james
Team I am trying to teach myself php through a book I got at the store. Its kinda rough with limited programming experience. I was wondering if you could take a look at my code and tell me or write the code so it Will work and make comments in it so I know what I did wrong. Here is the links. h

[PHP] php terminal.

2004-12-20 Thread adwin wijaya
Hello all.. Since my webhosting didnt provide me with telnet access, I would like to have a small software that created by php to do some bash function such as lynx, ls etc ? thx a lot :) -- === Best Regards Adwin Wijaya www.kuya-kuya.net www.e-rhema.net ==

[PHP] Encryption

2004-12-20 Thread Darren Wheatley
Hey all. I am trying to get encryption working for my site. I have found some code and set up a test bed for it, but it fails to return the same value after the 26th item. I was hoping someone could take a look and maybe tell me why? There is very little help out there for encryption. If you know

Re: [PHP] can I compile php source

2004-12-20 Thread John Nichel
Bruce Douglas wrote: and this response was helpful to the guy who asked the original question, how i mean, aside from showing that you know how to do a link, what did you show peace... Maybe you should read the link, then _maybe_ you'll understand. Would you feel better if I posted links

[PHP] How can I write number into a execel file with COM.

2004-12-20 Thread shimuqiheb
for eg. thanks please. Shi MuQi LangFang ABC (China) °v° Tel:(86)-311-78764NN /(_)\ E-mail:[EMAIL PROTECTED] ^ ^

Re: [PHP] can I compile php source

2004-12-20 Thread Bruce Douglas
and this response was helpful to the guy who asked the original question, how i mean, aside from showing that you know how to do a link, what did you show peace... -Original Message- From: John Nichel <[EMAIL PROTECTED]> Sent: Dec 20, 2004 4:32 PM To: [EMAIL PROTECTED] Subje

Re: [PHP] script PHP to detect IP address

2004-12-20 Thread welly limston
[EMAIL PROTECTED] wrote: the REMOTE_ADDR environment variable (aka php superglobal) will give you the IPnumber of the inbound client. -- Original Message -- > From: welly limston > To: [EMAIL PROTECTED] > Date: Friday, December 17, 2004 06:17:56 PM -0800 > Subject: [PHP] scrip

[PHP] Re: imap_mail problems

2004-12-20 Thread Jonathan
Hi Paul, Didn't use imap_mail but you can check out this http://phpmailer.sourceforge.net/ I am currently using it and it works like a charm. Very easy to use and I do not have problem like yours. "Paul Aviles" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, I am having pr

[PHP] imap_mail problems

2004-12-20 Thread Paul Aviles
Hello, I am having problems with this code below. The system is a FC1 server and it is supposed to send an email collecting some information of a computer. The problem I am having is with the "<" and ">" characters. When the $header variable is created, it does not work if you add the < and > c

Re: [PHP] Setting or Getting Relative Path for PHP Includes

2004-12-20 Thread Jordi Canals
Can use a directive on your .htaccess: php_value include_path /your/include/path/here This can also be set on your httd.conf in a virtual server basis. If you have access to php.ini is better to set the include there. Regards, Jordi. On Mon, 20 Dec 2004 12:41:06 -0800, Anthony Baker <[EMAIL

[PHP] Re: An object oriented database in PHP?

2004-12-20 Thread Manuel Lemos
Hello, on 12/20/2004 04:18 PM Symbulos Partners said the following: Has anybody implemented an object oriented database in PHP yet? What you seem to be looking for is something like Metastorage which implements Object-relational mappings API. Metastorage lets you describe a model of classes of ob

Re: [PHP] checking file type on upload

2004-12-20 Thread Marek Kilimajer
Sebastian wrote: i have an upload form which i would only like to allow compressed zip files and rar files to be uploaded. currently i use if ($_FILES['userfile']['type'] != 'application/x-zip-compressed') which only seems to work in IE, doesn't work in mozila (haven't tried others) what the best w

Re: [PHP] can I compile php source

2004-12-20 Thread Michael Leung
Yes. There are a number of free php complier on web too. Please look at sf.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] can I compile php source

2004-12-20 Thread John Nichel
QT wrote: hi, is there any way to compile php source to make binary file for protecting source code? best regards Yes. http://www.catb.org/~esr/faqs/smart-questions.html -- By-Tor.com ...it's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Install PHP4 on a Apache2 + PHP5 system

2004-12-20 Thread Rick Fletcher
I have a server on which Apache2 and PHP5 are functioning well, but I also want to build in support for PHP4 because the webmail package I use isn't compatible with PHP5... So, I need to install PHP4 next to PHP5, and make my in httpd.include use PHP4 for my webmail directory... I've never run

[PHP] Re: Accessing a Char in an Array

2004-12-20 Thread Jason Barnett
So my question is: What is faster using substr or accessing the string like an array? I don't know and in this case I don't care. Both syntaxes work fine, but for me the clarity of substr for users not familiar with the array-like construct makes it a better choice. And I have been known to oc

[PHP] Re: can I compile php source

2004-12-20 Thread Jason Barnett
Qt wrote: hi, is there any way to compile php source to make binary file for protecting source code? best regards Yes. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] can I compile php source

2004-12-20 Thread QT
hi, is there any way to compile php source to make binary file for protecting source code? best regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Setting or Getting Relative Path for PHP Includes

2004-12-20 Thread Jason Barnett
As already suggested there are $_SERVER variables that can assist you here. Although if you plan on having an include file that will be included by every script in your site you could also use the __FILE__ constant. In your case the following would work: // main.inc.php, located in /home/virt

Re: [PHP] Install PHP4 on a Apache2 + PHP5 system

2004-12-20 Thread Joshua D. Drake
Rens Admiraal wrote: Hi guys, I have a server on which Apache2 and PHP5 are functioning well, but I also want to build in support for PHP4 because the webmail package I use isn't compatible with PHP5... So, I need to install PHP4 next to PHP5, and make my in httpd.include use PHP4 for my webmai

Re: [PHP] Very Odd Session Array Problem

2004-12-20 Thread Jason Barnett
Aaron Axelsen wrote: I understand the recursion part, but i dont understand why this fixes it: $quoteString = implode(",",$_SESSION['quotes'][$key]); $_SESSION['quotes'][$key] = explode(",",$quoteString); That is essentially just reading the values out, and sticking them back in. As already stated,

RE: [PHP] Setting or Getting Relative Path for PHP Includes

2004-12-20 Thread phpninja
I usually use a global variables file included in every page and map my directories that way.. example, have the file you include on each page have these line of code in it: then those directories are mapped, all you have to do is use it this way, I chose images and and include directory for an

Re: [PHP] Setting or Getting Relative Path for PHP Includes

2004-12-20 Thread Jason Wong
On Tuesday 21 December 2004 04:41, Anthony Baker wrote: > Either that, or is there a way to call this variable from the server > itself so that it's automatically -- and correctly -- set? Use a combination of one or more items from $_SERVER. -- Jason Wong -> Gremlins Associates -> www.gremlins.

Re: [PHP] Very Odd Session Array Problem

2004-12-20 Thread Aaron Axelsen
I understand the recursion part, but i dont understand why this fixes it: $quoteString = implode(",",$_SESSION['quotes'][$key]); $_SESSION['quotes'][$key] = explode(",",$quoteString); That is essentially just reading the values out, and sticking them back in. Jason Barnett wrote: > If i dont do th

[PHP] Accessing a Char in an Array

2004-12-20 Thread Justin Palmer
In an earlier thread labeled "first letter", it was suggested that substr() be used. >Check this out... http://us2.php.net/manual/en/function.substr.php. So my question is: What is faster using substr or accessing the string like an array? I know I could test this myself, but I thought someone

[PHP] Install PHP4 on a Apache2 + PHP5 system

2004-12-20 Thread Rens Admiraal
Hi guys, I have a server on which Apache2 and PHP5 are functioning well, but I also want to build in support for PHP4 because the webmail package I use isn't compatible with PHP5... So, I need to install PHP4 next to PHP5, and make my in httpd.include use PHP4 for my webmail directory... Any

[PHP] Setting or Getting Relative Path for PHP Includes

2004-12-20 Thread Anthony Baker
Hey Folks, Hoping someone can aid me with a newbie-ish question. I often use PHP includes in my files to pull in assets, but I hard code the relative path to the root html directory for the sites that I'm working on in each file. Example below: I'd like to be able to set the relative path as a

Re: [PHP] An object oriented database in PHP?

2004-12-20 Thread John Nichel
Jay Blanchard wrote: [snip] Has anybody implemented an object oriented database in PHP yet? [/snip] Yes and/or no. Maybe? -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] first letter

2004-12-20 Thread Matt M.
> $name = "John"; > > how can i echo the first letter only so the result on the browser will be "J" echo $name{0}; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] first letter

2004-12-20 Thread Mike Smith
echo $name[0]; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] first letter

2004-12-20 Thread Gerard Samuel
Ahmed Abdel-Aliem wrote: hi if i have for example this variable $name = "John"; how can i echo the first letter only so the result on the browser will be "J" can anyone help ? echo $name{0}; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] first letter

2004-12-20 Thread Sebastian
$name = "John"; echo $name{0}; you can also look into substr() - Original Message - From: "Ahmed Abdel-Aliem" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 20, 2004 12:59 PM Subject: [PHP] first letter > hi > if i have for example this variable > > $name = "John";

Re: [PHP] Using encrypted passwords

2004-12-20 Thread Jason Wong
On Tuesday 21 December 2004 02:15, symbulos partners wrote: > Sorry for the silly question, you are probably right. Perhaps it would be better if you say what you are trying to achieve. > Would it be possible to encrypt the whole file, so that the password could > not be read? Encryption is onl

RE: [PHP] An object oriented database in PHP?

2004-12-20 Thread Brandon Thompson
We use Propel for all of our development. > -Original Message- > From: symbulos partners [mailto:[EMAIL PROTECTED] > Sent: Monday, December 20, 2004 1:18 PM > To: [EMAIL PROTECTED] > Subject: [PHP] An object oriented database in PHP? > > Has anybody implemented an object oriented databa

RE: [PHP] first letter

2004-12-20 Thread Brandon Thompson
echo $name{0}; See http://us2.php.net/manual/en/function.substr.php for more... > -Original Message- > From: Ahmed Abdel-Aliem [mailto:[EMAIL PROTECTED] > Sent: Monday, December 20, 2004 1:00 PM > To: [EMAIL PROTECTED] > Subject: [PHP] first letter > > hi > if i have for example this

Re: [PHP] first letter

2004-12-20 Thread ApexEleven
[begin untested code] $name = 'John'; echo substr($fname,0,1); [end untested code] That will print the first letter of the variable $name. substr(string,int start, int length); int length is optional. On Mon, 20 Dec 2004 19:59:49 +0200, Ahmed Abdel-Aliem <[EMAIL PROTECTED]> wrote: > hi > if i

RE: [PHP] Using encrypted passwords

2004-12-20 Thread Mike
What you might want to try doing is to create a "connect.php" file that exists outside of your doc root that has the variables with your information and simply include this file when you need to connect to your DB. Now, this won't change the root problem - if someone's able to snoop your transmis

RE: [PHP] An object oriented database in PHP?

2004-12-20 Thread Jay Blanchard
[snip] Has anybody implemented an object oriented database in PHP yet? [/snip] Yes and/or no. Happy Holidays! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Very Odd Session Array Problem

2004-12-20 Thread Jason Barnett
> If i dont do that, when i do a print_r($_SESSION['quotes'][$key]) i get errors that say RECURSION and its almost like the arrays are making new If you have a SESSION['quotes'] array... and one of the elements in the array references the same SESSION['quotes'] array... then you are going to ha

Re: [PHP] convert hidden form to get url

2004-12-20 Thread Matt M.
> Sorry for not been clear. The snippet of html is code I am getting > dynamically using curl from another website. I want to then convert that > html code into a url like > http://www.somewebsite.co.uk/Availability?NUM_OF_ADTS=1&CABIN=E&B1_DAY=27. you need something to parse the html, I found th

Re: [PHP] first letter

2004-12-20 Thread Larry E . Ullman
if i have for example this variable $name = "John"; how can i echo the first letter only so the result on the browser will be "J" echo $name[0]; You could also use the substr() function. Larry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] first letter

2004-12-20 Thread hitek
Not sure if it's deprecated or not, but you can reference it as an array: echo $name[0]; or the more accepted method: echo substr($name,0,1); > > From: Ahmed Abdel-Aliem <[EMAIL PROTECTED]> > Date: 2004/12/20 Mon PM 12:59:49 EST > To: [EMAIL PROTECTED] > Subject: [PHP] first letter > > hi > if

[PHP] Re: An object oriented database in PHP?

2004-12-20 Thread Jason Barnett
Symbulos Partners wrote: Has anybody implemented an object oriented database in PHP yet? Boy you are new ;) Check out the PEAR DB package for several OO implementations. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] first letter

2004-12-20 Thread John Nichel
Ahmed Abdel-Aliem wrote: hi if i have for example this variable $name = "John"; how can i echo the first letter only so the result on the browser will be "J" can anyone help ? $name[0] -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php

Re: [PHP] first letter

2004-12-20 Thread bbonkosk
Check this out... http://us2.php.net/manual/en/function.substr.php - Original Message - From: Ahmed Abdel-Aliem <[EMAIL PROTECTED]> Date: Monday, December 20, 2004 12:59 pm Subject: [PHP] first letter > hi > if i have for example this variable > > $name = "John"; > > how can i echo the

Re: [PHP] Very Odd Session Array Problem

2004-12-20 Thread Aaron Axelsen
Let me see if i can explain this. Basically, if i dont have this chunk of code: $quoteString = implode(",",$_SESSION['quotes'][$key]); $_SESSION['quotes'][$key] = explode(",",$quoteString); If i dont do that, when i do a print_r($_SESSION['quotes'][$key]) i get errors that say RECURSION and its al

RE: [PHP] File Locking during *other* file operations

2004-12-20 Thread Richard Lynch
Robinson, Matthew wrote: > I use this code, Not all my own, some from the php manual (probably > most of it in fact) I lock the file as filename.lock so that I can muck > about with it completely and then unlock the .lock and remove it. > > M > > function LockFile($file) > { > > $LockFile

Re: [PHP] fsockopen to own server

2004-12-20 Thread Richard Lynch
Doc wrote: > On Mon, 20 Dec 2004 07:51:46 -0800, Richard Lynch wrote: >> >> WILD GUESS ALERT! >> >> What you got in /etc/hosts.allow and /etc/hosts.deny?... > > nothing in there other than default install comments. > >> Or any kind of other anti-bad-guy technology?... > > nope. > >> Does it work if

Re: [PHP] Using encrypted passwords

2004-12-20 Thread Ben
Symbulos Partners wrote: Jason Wong wrote: Why? It's not going to offer any protection. If I know your encrypted password and am able to access your database using it there is no reason for me to know what your cleartext password is. In other words if I am able to read the file containing your pass

Re: [PHP] convert hidden form to get url

2004-12-20 Thread Richard Lynch
Martin Reeves wrote: > Anyone got any suggestions on the best way to convert the snippet of code > below (which I'm dynamically collecting from another website) to a get url > (i.e. > http://www.somewebsite.co.uk/Availability?NUM_OF_ADTS=1&CABIN=E&B1_DAY=27 > ) > > http://www.somewebsite.co.uk/Avai

Re: [PHP] Using encrypted passwords

2004-12-20 Thread Richard Lynch
symbulos partners wrote: > Dear friends, > > is it possible to use encrypted passwords in php files, for connecting to > a > database? > > We do not like too much the idea of the password being in clear text. > > Example > $link = mysql_connect('localhost', 'mysql_user', 'mysql_password'); > > 'mys

Re: [PHP] Photogallery with features in php + DB

2004-12-20 Thread Richard Lynch
symbulos partners wrote: > Dear friends, > > we would like to implement a photogallery where the users can upload some > photographs,and then can rotate them. The photographs are stored in a > temporary area waiting for approval. > > The system then performs the following operations > > 1)reduces t

[PHP] An object oriented database in PHP?

2004-12-20 Thread symbulos partners
Has anybody implemented an object oriented database in PHP yet? -- symbulos partners -.- symbulos - ethical services for your organisation http://www.symbulos.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Using encrypted passwords

2004-12-20 Thread symbulos partners
Jason Wong wrote: > Why? It's not going to offer any protection. If I know your encrypted > password and am able to access your database using it there is no reason > for me to know what your cleartext password is. In other words if I am > able to read the file containing your password (whether enc

[PHP] checking file type on upload

2004-12-20 Thread Sebastian
i have an upload form which i would only like to allow compressed zip files and rar files to be uploaded. currently i use if ($_FILES['userfile']['type'] != 'application/x-zip-compressed') which only seems to work in IE, doesn't work in mozila (haven't tried others) what the best way to detect if

[PHP] first letter

2004-12-20 Thread Ahmed Abdel-Aliem
hi if i have for example this variable $name = "John"; how can i echo the first letter only so the result on the browser will be "J" can anyone help ? -- Ahmed Abdel-Aliem www.ApexScript.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

Re: [PHP] pspell on w32

2004-12-20 Thread Richard Lynch
php wrote: > Thank you for the comments. I've run my script command line and found the > following: > > Unhandled Error: C:\Aspell\dict/en-only.rws: The file > "C:\Aspell\data/iso8859-1. > dat" is not in the proper format. > > abnormal program termination > > It looks like the directory aspell

Re: [PHP] problem with PHP

2004-12-20 Thread Richard Lynch
GD-Aqua wrote: > I would like to know what this mean`s. > > PHP has encountered an Access Violation at 01650AFD It means Windows is broken, and you should switch to Linux. :-) More specifically, some programmer somewhere has done something very very very wrong in their code. Exactly which code a

php-general@lists.php.net

2004-12-20 Thread Richard Lynch
Tomas Tintera wrote: > Richard Lynch wrote: > >Perhaps something like this: > > > >function my_unset($var){ > > global $$var; > > $wasset = isset($$var); > > unset($$var); > > return $wasset; > >} > > > >my_unset(‘a‘); //unset($a); > > > > > > > >Or, in a more general way: > > > >fu

Re: [PHP] Scope issue

2004-12-20 Thread Richard Lynch
GH wrote: > Hi I am having an issue with I think it is the scope of variables: > > I have a file that I am including which has the following" > > // +-- > // | PHP Source > // +-

Re: [PHP] Re: Client does not support authentication protocol requested by server; consider upgrading MySQL client

2004-12-20 Thread Richard Lynch
Nic Begusarai wrote: > > "Nic Begusarai" <[EMAIL PROTECTED]> wrote in message news:... >> >> I just install MySql and trying to connect on localhost using PHP >> >> Error: Client does not support authentication protocol requested by > server; >> consider upgrading MySQL client >> how to correct thi

Re: [PHP] Using encrypted passwords

2004-12-20 Thread Jason Wong
On Tuesday 21 December 2004 00:03, symbulos partners wrote: > is it possible to use encrypted passwords in php files, for connecting to a > database? > > We do not like too much the idea of the password being in clear text. > > Example > $link = mysql_connect('localhost', 'mysql_user', 'mysql_passw

Re: [PHP] header information problem

2004-12-20 Thread Richard Lynch
Ahmed Abdel-Aliem wrote: > Dear Groups members. > > i am making a user protected page, the script works excellent on my > local server, but online it gives me this error : Your local server has output_buffering turned ON in php.ini Your online server does not. > Warning: Cannot modify header

Re: [PHP] PHP + MSSQL Problem

2004-12-20 Thread Richard Lynch
Alaor Barroso wrote: > I changed the php.ini and enabled the support for > MSSQL and now i can connect without errors, BUT when > make an query to an table the query return NO MATCHES, > i have sure that the SQL line is correct (i already > used it on(or in? i don't know the difference =P) > other

Re: [PHP] mixed strings

2004-12-20 Thread Richard Lynch
Ian Firla wrote: > I'm wondering if anyone knows if there's a way of sending strings of > mixed type to a UDP socket. > > I'm storing the data I need to send in an array. Parsing the array with > a foreach, I'm sending out the various pieces to the socket with fwrite. fwrite converts your input to

Re: [PHP] File Upload Problem

2004-12-20 Thread Richard Lynch
Wayne Donaho wrote: > I am trying to run a file upload using PHP as a CGI script and am running > into an odd error. > > The error I am getting is the dreaded Server Error -- Error 500 Premature > end of script headers: php.cgi Some more analysis ideas: On the very first line of your script, prin

RE: [PHP] convert hidden form to get url

2004-12-20 Thread Martin Reeves
Sorry for not been clear. The snippet of html is code I am getting dynamically using curl from another website. I want to then convert that html code into a url like http://www.somewebsite.co.uk/Availability?NUM_OF_ADTS=1&CABIN=E&B1_DAY=27. Best Regards Martin -Original Message- From: Ma

[PHP] [Repost] Recursive Directory Iterator

2004-12-20 Thread Gerard Samuel
This is my first time trying out the SPL iterators. Im trying to figure out how to recursively move over a directory. With the code that I've provided 1. Is this the correct way to use it? Im using recursive functions to go deep. I thought, that the class would do that for me somehow... 2. As

Re: [PHP] Strip of code - what could be wrong?

2004-12-20 Thread Richard Lynch
Wiberg wrote: > I'm trying to figure out some code I haven't done myself, but I don't get > what could > be wrong. Check this code out: > > the coder says he when he import files, he gets a result that the line > ends > at wrong positions... Is it 4096 that is wrong? No, the 4096 is not "wrong" I

Re: [PHP] Very Odd Session Array Problem

2004-12-20 Thread Richard Lynch
Aaron Axelsen wrote: > We have the chunk of code at the bottom of the page. It is behaving > very strangly under php 4.3.9. Basically, if it is not coded exactly as > listed below, it will not work right. The development server is running > 5.0.3, and it works fine. However, the live server has

Re: [PHP] Re: PHP 5 MySql 4.1 issue - can't connect to mysql.sock

2004-12-20 Thread Barley
Bingo. Many thanks. > Barley wrote: > > > If I run the script from a shell prompt as root, it outputs "Yes". If I run > > as any other user, it outputs "No." It also gives this error: > > Warning: mysqli_connect(): Can't connect to local MySQL server through > > socket '/var/lib/mysql/mysql.sock'

Re: [PHP] Re: sanitizing/security

2004-12-20 Thread Richard Lynch
> what about when the GET is text? just use htmlspecialchars? > just looking for some advice to help keep my apps secure. What regular expression does one use when there really isn't a whole lot you can say about the text?... I mean, say for a guestbook or bulletin board or for a person's Bio or.

RE: [PHP] File Locking during *other* file operations

2004-12-20 Thread Robinson, Matthew
I use this code, Not all my own, some from the php manual (probably most of it in fact) I lock the file as filename.lock so that I can muck about with it completely and then unlock the .lock and remove it. M function LockFile($file) { $LockFile = $file . ".lock";# Lo

Re: [PHP] Re: sanitizing/security

2004-12-20 Thread Richard Lynch
Matthew Weier O'Phinney wrote: > * Sebastian <[EMAIL PROTECTED]>: >> just a question, what is the best way to sanitize your scripts when >> you're >> using $_GET or $_REQUEST in a query? >> >> eg, i usually just do: >> >> if(is_numeric($_REQUEST['id'])) >> { >> mysql_query("SELECT id FROM table

RE: [PHP] Photogallery with features in php + DB

2004-12-20 Thread Jay Blanchard
[snip] we would like to implement a photogallery where the users can upload some photographs,and then can rotate them. The photographs are stored in a temporary area waiting for approval. [/snip] http://gallery.menalto.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: Current Member Check

2004-12-20 Thread Richard Lynch
Brad Ciszewski wrote: > if($checkEmail != "0"){ > echo("The email address has already been > registerd with an account."); > include("../includes/footer.php"); > exit; > } In addition to the egregious security hole noted by others, your basic problem is you are confusing yourself (as almost every

Re: [PHP] Performance of magic_quotes_gpc ??

2004-12-20 Thread Richard Lynch
Michael Gale wrote: > I am working on a ticket tracking system and using htmlentities and > htmlspecialchars on text that gets inserted into the database. > > code I have: > > --snip-- > if ((isset($_POST['tentry_body'])) AND strlen($_POST['tentry_body']) > 5) > { > $query .= " tentry_body =

Re: [PHP] fsockopen to own server

2004-12-20 Thread Doc
On Mon, 20 Dec 2004 07:51:46 -0800, Richard Lynch wrote: > > WILD GUESS ALERT! > > What you got in /etc/hosts.allow and /etc/hosts.deny?... nothing in there other than default install comments. > Or any kind of other anti-bad-guy technology?... nope. > Does it work if you use 127.0.0.1 for t

Re: [PHP] I really need help...

2004-12-20 Thread Richard Lynch
JoShQuNe \(TR\) wrote: > My problem is i have .txt file size of 3-5 kb with long rows. I have a > mysql table and a column > type of longtext, name "html". What I have to do is: I have to open > .txt and read inside and > insert the content to "html". My purpose is this but the problem is: I > easi

Re: [PHP] convert hidden form to get url

2004-12-20 Thread Matt M.
> Anyone got any suggestions on the best way to convert the snippet of code > below (which I'm dynamically collecting from another website) to a get url > (i.e. > http://www.somewebsite.co.uk/Availability?NUM_OF_ADTS=1&CABIN=E&B1_DAY=27 ) > > http://www.somewebsite.co.uk/Availability.cgi"; method=

Re: [PHP] Uncompressing files on server

2004-12-20 Thread Richard Lynch
Josh wrote: > I have some PHP files from a content management system. I uploaded the > compressed files to the server, but how do I un-compress them now? I am > using Filezilla. Can it be done, or do I have to uncompress the file on > my > computer and then upload? If you have a shell account (

Re: [PHP] PHP parse Excel and Access files

2004-12-20 Thread Jason Barnett
You may also want to consider OpenOffice as an alternative to these software products -- you might have better luck finding the internal formats of OpenOffice files published and more support in the OpenSource community for software that reads/writes their file formats. You know that brings up anot

Re: [PHP] mailto code for php

2004-12-20 Thread Richard Lynch
[EMAIL PROTECTED] wrote: > here is a website http://www.business-broker.co.nz/ under > "tell a friend" is the page i need help. > There is a "your email" box where you get a reply saying > thanks for telling your friend about us msg which is ok but > where we have problem is the your "friends emai

Re: [PHP] fsockopen to own server

2004-12-20 Thread Richard Lynch
Doc wrote: >> not sure what you are trying to do but it sounds like you are using unix >> domain sockets where you should be using tcp. That's why it might work >> on one machine (where web and imap are both installed) and not on the >> other where you only have the web server but the imap server i

[PHP] convert hidden form to get url

2004-12-20 Thread Martin Reeves
Hi there, Anyone got any suggestions on the best way to convert the snippet of code below (which I'm dynamically collecting from another website) to a get url (i.e. http://www.somewebsite.co.uk/Availability?NUM_OF_ADTS=1&CABIN=E&B1_DAY=27 ) http://www.somewebsite.co.uk/Availability.cgi"; method="

[PHP] Using encrypted passwords

2004-12-20 Thread symbulos partners
Dear friends, is it possible to use encrypted passwords in php files, for connecting to a database? We do not like too much the idea of the password being in clear text. Example $link = mysql_connect('localhost', 'mysql_user', 'mysql_password'); 'mysql_password' should be encrypted Thanks in

Re: [PHP] PHP parse Excel and Access files

2004-12-20 Thread Richard Lynch
kioto wrote: > How to read and get data from Excel Files and Access Files. > Can you post me articles and tutorials on the web-sites that explain > the basic concept to create an interface for PHP and this files-type. > Thanks so much to all. I believe there is a script on http://phpclasses.org to

Re: [PHP] PHP parse Excel and Access files

2004-12-20 Thread Matt M.
> How to read and get data from Excel Files and Access Files. > Can you post me articles and tutorials on the web-sites that explain > the basic concept to create an interface for PHP and this files-type. > Thanks so much to all. I am pretty sure that you an set up odbc connections to access acces

[PHP] Re: PHP parse Excel and Access files

2004-12-20 Thread kermodebear
There does appear to be a PEAR-based Excel reader located at: http://devel.akbkhome.com/svn/index.php/akpear/Spreadsheet_Excel_Reader/ However, I have not used it and cannot comment on its functionality. Good luck! -KBear Kioto wrote: > How to read and get data from Excel Files and Access Files

[PHP] Photogallery with features in php + DB

2004-12-20 Thread symbulos partners
Dear friends, we would like to implement a photogallery where the users can upload some photographs,and then can rotate them. The photographs are stored in a temporary area waiting for approval. The system then performs the following operations 1)reduces the size of the photograph so that the la

[PHP] Re: PHP parse Excel and Access files

2004-12-20 Thread Jason Barnett
Kioto wrote: How to read and get data from Excel Files and Access Files. Can you post me articles and tutorials on the web-sites that explain the basic concept to create an interface for PHP and this files-type. Thanks so much to all. MS doesn't really support what it is you want to do. As already

Re: [PHP] UPDATE

2004-12-20 Thread John Hicks
Steve Marquez wrote: I am trying to insert information into the database, have it automatically place an ID Number, then update that particular record and replace the word "delete" with the link. The "mysql_insert_id()" does seem to be working. It does put in an id number of "0" However, the code i

[PHP] Re: mailto code for php

2004-12-20 Thread David Robley
On Mon, 20 Dec 2004 19:57, [EMAIL PROTECTED] wrote: > here is a website http://www.business-broker.co.nz/ under > "tell a friend" is the page i need help. > There is a "your email" box where you get a reply saying > thanks for telling your friend about us msg which is ok but > where we have probl

[PHP] Re: PHP parse Excel and Access files

2004-12-20 Thread David Robley
On Sun, 25 Jan 2004 21:28, Kioto wrote: > How to read and get data from Excel Files and Access Files. > Can you post me articles and tutorials on the web-sites that explain > the basic concept to create an interface for PHP and this files-type. > Thanks so much to all. Export from those apps as c

[PHP] PHP parse Excel and Access files

2004-12-20 Thread kioto
How to read and get data from Excel Files and Access Files. Can you post me articles and tutorials on the web-sites that explain the basic concept to create an interface for PHP and this files-type. Thanks so much to all. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

  1   2   >