Re: [PHP] GD: º becomes $

2002-04-26 Thread heinisch
At 25.04.2002 18:03, you wrote: When I create an image, º becomes $. Actually a small $. (pratically half-sized). Maybe it's a s with a tail. I really have never seen this character before :-) An example: $im = ImageCreate (450, 500) or exit (Cannot Initialize new GD image stream);

Re: [PHP] Form validation

2002-04-26 Thread Tarjei Huse
Hi, I just thought I'd say thank's too all who responded to my question. Very good answers! I ended up using strip_tags (after someone pointed it out too me) kombinded with a couple of eregs. Tarjei John Holmes wrote: I need a function or class to validate a form with a cuple of text

Re: [PHP] Won't save session ids?

2002-04-26 Thread Johan Holst Nielsen
Kirk Johnson wrote: The coding style needs to match the register_globals setting in php.ini. register_globals on: $accountsession = $session; $accountemail = $email; session_register(accountsession); session_register(accountemail); Oh, sorry... I have just tried so many ways... but

[PHP] good php hosting environments

2002-04-26 Thread hamish
Hello, I'm looking for a really good, professional hosting environment in the uk that supports php (not in safe mode)), mysql and offers the use of a secure server and mail server. I'm looking for a client of mine who needs to rely on their site being up, and so needs a hoster who has enough

RE: [PHP] good php hosting environments

2002-04-26 Thread Brian McGarvie
havva look at 34sp.com I use them for virtually all my clients. Tho gimme a shout in siz months or so I'm going to be running a web farm ;) Brian M McGarvie, eCommerce Co-ordinator/Consultant

[PHP] how to use session data in other php scripts

2002-04-26 Thread Deval Parikh
Hi, I have one string variable in script a.php, I regester this variable to session name testsess. this link redirects to another script b.php then how i get that string var from session. basically I want to store var. serverside and use them in to different scripts. If any one help me let me

Re: [PHP] GD: º becomes $

2002-04-26 Thread hugh danaher
Another solution would be to add another imagestringup with only the O character at the right size and location. Hope this helps, Hugh - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 25, 2002 11:40 PM Subject: Re: [PHP] GD: º becomes $ At

[PHP] Combine SQL query OT

2002-04-26 Thread Richard Baskett
Is there a way I can combine these queries? $result = queryDB(SELECT count(ResumeID) FROM Resumes WHERE typeEmploy='1'); $numEmp = mysql_result($result,0); $result = queryDB(SELECT count(ResumeID) FROM Resumes WHERE typeContract='1'); $numCon = mysql_result($result,0); $result = queryDB(SELECT

[PHP] Callin PHP gurus...figure this out

2002-04-26 Thread r
Greetings All, (Special greetings go out to Steve for excellient previous help - Thanks again dude) Calling all PHP gurus, have broked my head over this but cant seem to figure this out in c,perl or java servlets. Am new to PHP so dont even know the common functions leave alone the answer to this

[PHP] Problem on Load CSV file to Mysql through PHP Script

2002-04-26 Thread Jack
Dear all I had a problem which trying to load data to Mysql Table, Here is my code in my HTML: html head titleUntitled Document/title meta http-equiv=Content-Type content=text/html; charset=big5 /head body bgcolor=#FF text=#00 ? include 'phpstudy/constant.inc';

RE: [PHP] Array function to delete

2002-04-26 Thread Ford, Mike [LSS]
-Original Message- From: Nathan [mailto:[EMAIL PROTECTED]] Sent: 25 April 2002 21:01 Apparently in 4.1.X this is true... I'd been running 4.0.6 for a long time (until 4.1.2 was released), and must have coded it in the earlier version. I stand corrected! :-) H'mmm, I think you

[PHP] Re: Session.save_path in php.ini

2002-04-26 Thread Maciej Gruszczynski
Probably the php exec couldn't find your php.ini script or it's in the wrong directory. Try to use simple phpinfo() function in your php script to check where the php.ini file should be. Default directory is something like /usr/local/php/etc/ -- Maciej Gruszczynski [EMAIL PROTECTED] Freelance

[PHP] Re: Callin PHP gurus...figure this out

2002-04-26 Thread Michael Virnstein
if you want to write into the database, i wouldn't convert newline to br. do this when you read from the database using nl2br($var) ot convert every newline in $var to br. default br after 75 characters if no br was found before. if you don't care about word-splitting, you could do the following:

Re: [PHP] Combine SQL query OT

2002-04-26 Thread php3
Addressed to: Richard Baskett [EMAIL PROTECTED] [EMAIL PROTECTED] ** Reply to note from Richard Baskett [EMAIL PROTECTED] Fri, 26 Apr 2002 01:47:17 -0700 Is there a way I can combine these queries? $result = queryDB(SELECT count(ResumeID) FROM Resumes WHERE typeEmploy='1');

[PHP] Re: Callin PHP gurus...figure this out

2002-04-26 Thread Michael Virnstein
forgot the to ' conversion: // this should do the job quite fine. $var = str_replace (\, ', $var); Regards Michael Michael Virnstein [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... if you want to write into the database, i wouldn't convert newline to br.

[PHP] Re: Callin PHP gurus...figure this out

2002-04-26 Thread Michael Virnstein
this is wrong: foreach ($lines as $line) { if (strlen($line) $maxchars) { $newtext .= substr($line, 0, $maxchars).\n; $newtext .= substr($line, $maxchars).\n; } } try this: foreach ($lines as $line) { if (strlen($line) $maxchars) { $newtext .=

[PHP] Re: Callin PHP gurus...figure this out

2002-04-26 Thread Uchendu Nwachukwu
Easy as pie. Firstly, make sure your TEXTAREA tab has the 'wrap' attribute set to 'hard'. You can set the number of characters per line by using the 'cols' attribute. So if you want to do a hard wrap every 75 characters, use TEXTAREA name=yourText wrap=hard cols=75. Next, in your PHP script,

[PHP] Re: how to use session data in other php scripts

2002-04-26 Thread Uchendu Nwachukwu
Simply do the same thing in the other script. Create a session named 'testsess' and register the variable (under the same name) to it. That variable will auttomatically take up the it was set to previously. -- Uchendu Nwachukwu newsreply AT unndunn DOT com - www.unndunn.com Deval Parikh [EMAIL

Re: [PHP] 4.2 new GLOBALS question

2002-04-26 Thread Uchendu Nwachukwu
Try simply changing '$HTTP_GET_VARS' to '$_GET'. so.. $start = isset($_GET['s']) ? $_GET['s'] : ''; -- Uchendu Nwachukwu newsreply AT unndunn DOT com - www.unndunn.com Jeff Lewis [EMAIL PROTECTED] wrote in message

[PHP] mail() Returned mail: Data format error (

2002-04-26 Thread SeanW
Using this command mail( $mailrow[email], $subject, $spamstr, From: me@mydomain\r\n Content-type: text/html; charset=us-ascii\r\n Contenet-Transfer-Encoding: 7bit\r\n MIME-Version: 1.0n );

[PHP] Counting number of value instances within an array

2002-04-26 Thread Neil Freeman
Hi guys, Is there a function I can use to count the number of instances of a value within an array. For example: $a[0] = bob; $a[1] = bob; $a[2] = fred; $a[3] = james; $a[4] = bob; $a[5] = carl; Searching for 'bob' would return 3. I've had a quick look through the array functions but didn't

Re: [PHP] Counting number of value instances within an array

2002-04-26 Thread andrey
array_count_values() HTH Best regards, Andrey Hristov - Original Message - From: Neil Freeman [EMAIL PROTECTED] To: PHP General [EMAIL PROTECTED] Sent: Friday, April 26, 2002 1:24 PM Subject: [PHP] Counting number of value instances within an array Hi guys, Is there a function I

Re: [PHP] Counting number of value instances within an array

2002-04-26 Thread Neil Freeman
Sorry - don't worry. Found the function I require. FYI : array_count_values() Neil Freeman wrote: * This Message Was Virus Checked With : SAVI 3.54 Feb 2002 Last Updated 24th April 2002

RE: [PHP] Callin PHP gurus...figure this out

2002-04-26 Thread John Holmes
Use wordwrap() to wrap the text to 75 characters and str_replace() to replace with ' www.php.net/wordwrap www.php.net/str_replace ---John Holmes... -Original Message- From: r [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 3:08 PM To: [EMAIL PROTECTED] Subject: [PHP]

Re: [PHP] good php hosting environments

2002-04-26 Thread Michael Egan
Hamish, I've been using UK Linux (www.uklinux.net) both at home and at work and they really have been excellent. From their various types of membership I think you would be able to find a level of service that you want within the price range you suggest. Best of luck, Michael hamish wrote:

php-general Digest 26 Apr 2002 13:12:28 -0000 Issue 1309

2002-04-26 Thread php-general-digest-help
php-general Digest 26 Apr 2002 13:12:28 - Issue 1309 Topics (messages 94696 through 94726): HTTP GET with Digest Auth 94696 by: Eric Re: Redirect 94697 by: Maxim Maletsky \(PHPBeginner.com\) 94698 by: John Holmes mail() not sending -- Little bit OT 94699

[PHP] PHPlib sessions without a DB?

2002-04-26 Thread Alan McKay
Folks, I was going through PHPlib for the first time to assess whether or not I can use it on a current project, and it looks pretty clear to me that you need a DB in order to use the session management. My environment will be a Windows NT 4.0 SP5 box running Apache and PHP. I have no DB on

Re: [PHP] Callin PHP gurus...figure this out

2002-04-26 Thread Michael Virnstein
nice one! didn't notice this function yet! Regards Michael John Holmes [EMAIL PROTECTED] schrieb im Newsbeitrag 000101c1ed33$e2f13c60$b402a8c0@mango">news:000101c1ed33$e2f13c60$b402a8c0@mango... Use wordwrap() to wrap the text to 75 characters and str_replace() to replace with '

Re: [PHP] PHPlib sessions without a DB?

2002-04-26 Thread Matt Williams
On Friday 26 April 2002 2:25 pm, Alan McKay wrote: Folks, I was going through PHPlib for the first time to assess whether or not I can use it on a current project, and it looks pretty clear to me that you need a DB in order to use the session management. My environment will be a Windows

Re[2]: [PHP] PHPlib sessions without a DB?

2002-04-26 Thread Maxim Derkachev
MW I've been using the session4 stuff with phplib for a while and works well, MW but this is using db storage. I wouldn't imagine there will be a problem just MW using a different session container. Session4 without Session4_custom uses native php containers, e.g. files or mm. MW As for the

Re: Re[2]: [PHP] PHPlib sessions without a DB?

2002-04-26 Thread Alan McKay
Session4 without Session4_custom uses native php containers, e.g. files or mm. Where is this session4? I pulled php-lib-stable out of CVS yesterday and do not see this anywhere. Is this part of the bleeding edge in php-lib (without the stable) in CVS? thanks, -Alan -- PHP General

Re[4]: [PHP] PHPlib sessions without a DB?

2002-04-26 Thread Maxim Derkachev
Hello Alan, Friday, April 26, 2002, 5:57:29 PM, you wrote: AM Where is this session4? AM I pulled php-lib-stable out of CVS yesterday and do not see this anywhere. AM Is this part of the bleeding edge in php-lib (without the stable) in CVS? Yes, it is not in -stable yet, as I know. -- Best

[PHP] Re: good php hosting environments

2002-04-26 Thread Mark Harwood
Try www.xcalibre.co.uk Hamish [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, I'm looking for a really good, professional hosting environment in the uk that supports php (not in safe mode)), mysql and offers the use of a secure server and mail server.

[PHP] Re: Load Balancing and PHP Sessions

2002-04-26 Thread J Smith
A better way to set this up might be to use a reverse proxy in front of www1.test.com and www2.test.com. Users would go to www.test.com and the reverse proxy would forward communications between the front-end and the servers in the back, thereby balancing the load. Cookies should still work

[PHP] Tools for stress-testing?

2002-04-26 Thread Brian McGarvie
Just wondering what the best tool/utility is to stress test PHP/IIS 5 combination obviously on win2k server? Brian M McGarvie, eCommerce Co-ordinator/Consultant [

Re: [PHP] Array function to delete

2002-04-26 Thread Liam Gibbs
But PHP builtins will do exactly this, around 3 times faster, too. :) Yup. This one with array_diff was the winner. Thanks to all for your suggestions and Lars for the working one. Liam __ Do You Yahoo!? Yahoo! Games - play chess, backgammon,

Re: [PHP] Tools for stress-testing?

2002-04-26 Thread Miguel Cruz
On Fri, 26 Apr 2002, Brian McGarvie wrote: Just wondering what the best tool/utility is to stress test PHP/IIS 5 combination obviously on win2k server? The old standard is ab (apache bench) which comes with Apache. It just sends out HTTP requests so it can be used to choke any web server.

Re: [PHP] mail() Returned mail: Data format error (

2002-04-26 Thread Miguel Cruz
On Fri, 26 Apr 2002, SeanW wrote: Using this command mail( $mailrow[email], $subject, $spamstr, From: me@mydomain\r\n Content-type: text/html; charset=us-ascii\r\n Contenet-Transfer-Encoding: 7bit\r\n

[PHP] sessions

2002-04-26 Thread Fifield, Mike
Is there a way to return the total number of sessions currently registered on a server?

Re: [PHP] sessions

2002-04-26 Thread Miguel Cruz
On Fri, 26 Apr 2002, Fifield, Mike wrote: Is there a way to return the total number of sessions currently registered on a server? You could count the files in the session store directory. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] sessions

2002-04-26 Thread Jan Peuker
If you use files you might get the contens of the folder where sessions stored and just count. Jan - Original Message - From: Fifield, Mike [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 26, 2002 5:57 PM Subject: [PHP] sessions Is there a way to return the total number of

[PHP] Code Troubles

2002-04-26 Thread Randum Ian
Hi all, Im having trouble with this code, can anyone help? --- ?php // db.php $dbhost = localhost; $dbuser = dancepo_db; $dbpass = database; function dbConnect($db=dancepo_db) { global $dbhost, $dbuser, $dbpass; $dbcnx = @mysql_connect($dbhost, $dbuser, $dbpass) or

Re: [PHP] Code Troubles

2002-04-26 Thread Erik Price
On Friday, April 26, 2002, at 12:20 PM, Randum Ian wrote: Hi all, Im having trouble with this code, can anyone help? --- ?php // db.php $dbhost = localhost; $dbuser = dancepo_db; $dbpass = database; function dbConnect($db=dancepo_db) { global $dbhost, $dbuser, $dbpass;

Re: [PHP] Code Troubles

2002-04-26 Thread Randum Ian
The trouble I got with it is the code is chucking back the The site database is unavailable. error and it is indeed available. I have used other scripts at the same time and they are pumping it back. It is not a way of coding I have used before and wondered if it was the code? I am simply

Re: [PHP] Code Troubles

2002-04-26 Thread Miguel Cruz
It helps to say what sort of trouble you're having; i.e., provide symptoms, exact text of error messages, etc. miguel On Fri, 26 Apr 2002, Randum Ian wrote: Hi all, Im having trouble with this code, can anyone help? --- ?php // db.php $dbhost = localhost; $dbuser = dancepo_db;

Re: [PHP] Code Troubles

2002-04-26 Thread Chris Wesley
if ($db!= and !@mysql_select_db($db)) die(The site database is unavailable.); you probably want an or before that die(). g.luck, ~Chris /\ \ / Microsoft Security Specialist:

Re: [PHP] Code Troubles

2002-04-26 Thread Miguel Cruz
Why not take the @ off @mysql_select_db($db) so that you can see which particular error is being returned? Or print mysql_error(). miguel On Fri, 26 Apr 2002, Randum Ian wrote: The trouble I got with it is the code is chucking back the The site database is unavailable. error and it is

Re: [PHP] Code Troubles

2002-04-26 Thread Miguel Cruz
On Fri, 26 Apr 2002, Chris Wesley wrote: if ($db!= and !@mysql_select_db($db)) die(The site database is unavailable.); you probably want an or before that die(). How would that work? miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Code Troubles

2002-04-26 Thread Chris Wesley
if( $db ){ mysql_select_db($db) or die(The site database is unavailable.); } To debug, use print( mysql_error ) instead of die to figure out what's going on. It's not that far of a leap in logic. ~Chris /\ \ /

[PHP] Mail responders

2002-04-26 Thread Dennis Gearon
All these lists that have addresses to subscribe, unsubscribe, etc, how do they work? Are they using a cron job to poll the mail inbox through sendmail? Does all mail not to a specific address at the site go to a 'catchall' address, which is then polled? -- If You want to buy computer parts,

Re: [PHP] Mail responders

2002-04-26 Thread Miguel Cruz
On Fri, 26 Apr 2002, Dennis Gearon wrote: All these lists that have addresses to subscribe, unsubscribe, etc, how do they work? Are they using a cron job to poll the mail inbox through sendmail? Does all mail not to a specific address at the site go to a 'catchall' address, which is then

[PHP] passing vars. betn. php and javascript

2002-04-26 Thread Pushkar Pradhan
I need to pass an array from php to javascript, change the ordering of the elements in javasc.. pass this reordered array back to php script? Is it possible to do this and if so can anyone send me the basic code, I've never written javascript? Thanks, -Pushkar S. Pradhan -- PHP General

[PHP] MySQL results

2002-04-26 Thread Nookie
Hello, I have a question: does anyone know how to divide MySQL results to pages and display on a website in 1 2 3 4 form? Greetings, Simon Kosok http://www.shakira-online.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL results

2002-04-26 Thread Julie Meloni
N Hello, I have a question: does anyone know how to divide MySQL results to N pages and display on a website in 1 2 3 4 form? Use LIMIT within your SELECT statement: http://www.mysql.com/doc/S/E/SELECT.html - Julie -- Julie Meloni -- [EMAIL PROTECTED] -- www.thickbook.com Find Sams Teach

Re: [PHP] Mail responders

2002-04-26 Thread Dennis Gearon
How is that done on the box? Miguel Cruz wrote: On Fri, 26 Apr 2002, Dennis Gearon wrote: All these lists that have addresses to subscribe, unsubscribe, etc, how do they work? Are they using a cron job to poll the mail inbox through sendmail? Does all mail not to a specific address at

Re: [PHP] Mail responders

2002-04-26 Thread JSheble
How would you set this up via PHP? I've wanted to do this, but I always thought it was something specific to SendMail, and in a hosted environment, mucking about with SendMail generally isn't allowed... I'd like to send an email to something like [EMAIL PROTECTED] but have a PHP script get

Re: [PHP] Mail responders

2002-04-26 Thread Miguel Cruz
1) Make sure you have built the CGI versions of PHP. 2) Create a PHP script file that begings with a bangpath invocation of the PHP CGI binary. So, if your standalone PHP were located in /usr/local/bin/php, your PHP file would start with: #!/usr/local/bin/php -q 3) In your script, use fopen,

Re: [PHP] Mail responders

2002-04-26 Thread Richard Emery
You must have control over the Message Transfer Agent (MTA), such as SendMail. Or, if your host uses qmail MTA, you set it up using the dot-qmail files in your user directory. - Original Message - From: Dennis Gearon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 26, 2002

Re: [PHP] passing vars. betn. php and javascript

2002-04-26 Thread Jason Wong
On Saturday 27 April 2002 00:56, Pushkar Pradhan wrote: I need to pass an array from php to javascript, change the ordering of the elements in javasc.. pass this reordered array back to php script? Is it possible to do this and if so can anyone send me the basic code, I've never written

Re: [PHP] Mail responders

2002-04-26 Thread Jason Wong
On Saturday 27 April 2002 01:13, JSheble wrote: How would you set this up via PHP? I've wanted to do this, but I always thought it was something specific to SendMail, and in a hosted environment, mucking about with SendMail generally isn't allowed... I'd like to send an email to something

Re: [PHP] passing vars. betn. php and javascript

2002-04-26 Thread Pushkar Pradhan
In my php I had 4 buttons, up, down, top and bottom: After detecting which element and which button was clicked I changed the element position by using array_slice, shift, unshift, array_merge etc.. I'm not sure what I'll do it JS On Saturday 27 April 2002 00:56, Pushkar Pradhan wrote: I need

[PHP] good php editor for the mac

2002-04-26 Thread Tom Beidler
Could someone suggest a good php editor for the mac? I'm currently using Dreamweaver because I like the site management and a wysiwyg html editor. But otherwise it's a bummer because it doesn't support php. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] passing vars. betn. php and javascript

2002-04-26 Thread Jason Wong
On Saturday 27 April 2002 01:23, Pushkar Pradhan wrote: In my php I had 4 buttons, up, down, top and bottom: After detecting which element and which button was clicked I changed the element position by using array_slice, shift, unshift, array_merge etc.. I'm not sure what I'll do it JS

[PHP] fsockopen

2002-04-26 Thread wm
this might be a stupid question, but what the hell... can a web page be called and diplayed using the fsockopen and fputs/fgets functions? so instead of just using a normal href call i use a script and fsockopen (not header(Location: ) ) etc.? thanks. -- PHP General Mailing List

Re: [PHP] good php editor for the mac

2002-04-26 Thread Jackson Miller
There is a PHP plugin for Dreamweaver from AlphaSigma. http://www.alphasigma.com -Jackson On Fri, 2002-04-26 at 13:33, Tom Beidler wrote: Could someone suggest a good php editor for the mac? I'm currently using Dreamweaver because I like the site management and a wysiwyg html editor. But

RE: [PHP] passing vars. betn. php and javascript

2002-04-26 Thread Leotta, Natalie (NCI/IMS)
Is there any reason that you have to use JS to redo the array? I did something like this once and had the buttons monitored by JS, then when you click it set a hidden var (with a name like sort) and submitted the page. Then my PHP read in everything and redrew the graph based on what we were

[PHP] auto_increment

2002-04-26 Thread webmaster
I'm using PHP v.4.0.6. and PostgreSQL 7.2. Does any one know the equivilant of auto_increment for postgresSQL? For example when creating a table: $query = CREATE table $tablename (id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, firstname TEXT, lastname TEXT, emailaddress TEXT, ); this

[PHP] passing authorization code

2002-04-26 Thread wm
hi, .htaccess file requires user and pass. anybody know how to pass this info with a script so that the user is allowed into the directory? not in the url either. not user:[EMAIL PROTECTED] needs to be transparent. the reason i want to do this is so that somebody can't path directly to a .mov

RE: [PHP] fsockopen

2002-04-26 Thread Vail, Warren
I haven't tried this, but why don't you just use fopen with a URL, especially if you don't what to have to deal with the http header. I would think that if you do the fsockopen to port 80, you will need to use the handshake protocol required by that server which involves the get/put http

Re: [PHP] passing authorization code

2002-04-26 Thread Mark Gallagher
delurk wm wrote: .htaccess file requires user and pass. anybody know how to pass this info with a script so that the user is allowed into the directory? not in the url either. not user:[EMAIL PROTECTED] needs to be transparent. the reason i want to do this is so that somebody can't

Re: [PHP] passing vars. betn. php and javascript

2002-04-26 Thread Kevin Stone
This sounds susspiciously like a Javascript question to me. :) I wrote a PHP/Javascript system a while back that prints out an event calendar on a client page. The Javascript is copypaste so you can have the calendar show up on any web page anywhere in the world. It works like this.. The

RE: [PHP] passing authorization code

2002-04-26 Thread John Holmes
Place the .mov files outside of your web folders, and write a PHP file that'll control the outputting of them. You would link to the .php file just like you would a .mov file, but you have the PHP check for a session or something to verify that the user should be able to view the .mov file. If

RE: [PHP] passing vars. betn. php and javascript

2002-04-26 Thread Pushkar Pradhan
Actually I was frustrated trying to redirect to a new page and not being able to pass the array along to the new page usign header(), I won't get the array in my new page. Also I thought JS would be faster since the client can submit after doing as many reorderings as he/she wants. Is there any

Re: [PHP] good php editor for the mac

2002-04-26 Thread Richard Baskett
I would definitely use the Dreamweaver/BBEdit combination. Dreamweaver for your wysiwyg layout and then BBEdit for your hard core coding. BBEdit is the best programmers program out there. And Dreamweaver.. Well I hear they will be coming out with a new OS X version soon that will rock your

Re: [PHP] good php editor for the mac

2002-04-26 Thread Erik Price
On Friday, April 26, 2002, at 01:33 PM, Tom Beidler wrote: Could someone suggest a good php editor for the mac? I'm currently using Dreamweaver because I like the site management and a wysiwyg html editor. But otherwise it's a bummer because it doesn't support php. The ultimate Mac

Re: [PHP] good php editor for the mac

2002-04-26 Thread Kevin Stone
I'm told, BBEdit for MacOSX is solid, although I haven't used it. I used to work in BBEdit on OS9. It was the best PERL editors I've ever used. The Mac's seamless integration with the interpretor is something that I really miss. But at the time the Mac did not support PHP so I was forced to

RE: [PHP] Mail responders

2002-04-26 Thread Steve
snip I'd like to send an email to something like [EMAIL PROTECTED] but have a PHP script get the mail and operate on it... snip You might want to reference an article from the May issue of Sysadmin Magazine ( http://www.sysadminmag.com/ ) title 'Using Email to Perform UNIX System Monitoring

Re: [PHP] passing vars. betn. php and javascript

2002-04-26 Thread Pushkar Pradhan
Believe me I certainly don't want to ask a JS ques. here, I am reading tutorials on the web! I already accomplished reordering using PHP, I gave up on php since I wasn't able to pass arrays betn. pages using header(). In PHP when user moves each element and submits up, down, top or bottom there

Re: [PHP] passing vars. betn. php and javascript

2002-04-26 Thread Kevin Stone
Okay I'm beginning to understand. I don't think you have to use Javascript in this situation you jsut have to be a little clever about how you build your URL string. You can send an array through the URL by splitting up each value like this.. $url =

Re: [PHP] passing vars. betn. php and javascript

2002-04-26 Thread Erik Price
On Friday, April 26, 2002, at 02:15 PM, Pushkar Pradhan wrote: Believe me I certainly don't want to ask a JS ques. here, I am reading tutorials on the web! I already accomplished reordering using PHP, I gave up on php since I wasn't able to pass arrays betn. pages using header(). If your

Re: [PHP] Why is imageTTFtext function useless?(again)

2002-04-26 Thread Jim
Your problem doesn't have anything to do with PHP. The error says that libgd doesn't offer freetype support, so you need to get a more current version of gd. Regards, Jim Heffner No idea, check your config.log and see why it is failing. On Thu, 25 Apr 2002, zhaoxd wrote: Whatever I

Re: [PHP] good php editor for the mac

2002-04-26 Thread Jess Planck
BBEdit is by far one of the best basic text editors I have ever seen on any platform. I use 6.1 (waiting on for an upgrade), and it runs OK on 10.1.4. It would be great to see some tight PHP environment to work in, but I have yet to see it. All BBEdit needs is some sort of ProjectBuilder

[PHP] Microsoft Word PHP

2002-04-26 Thread Vladislav Kulchitski
Hi, Can anybody help me with this problem? Basically, I have thousands of MS Word documents. What I need to do is to design an interface that will let you submit more of them into the database, and it should index all these documents, like extract keywords. Is this possible at all via PHP? Also

Re: [PHP] passing vars. betn. php and javascript

2002-04-26 Thread Pushkar Pradhan
Great! It works fine. Thanks to Kevin, Erik, Miguel and all others who responded to this query since yesterday. I have $QUERY_STRING in my php 4.0.6. On Fri, 26 Apr 2002, Kevin Stone wrote: Okay I'm beginning to understand. I don't think you have to use Javascript in this situation you

[PHP] Variables not set

2002-04-26 Thread Liam Gibbs
I have a problem with my variables not being set. I have a file I use for constants and functions, structured like so: $this = this; $that = that; . . . function this() { $h = $this; $i = $that; } function that() { } Now, when I run this(), $this isn't set (even though it's above it in

Re: [PHP] Variables not set

2002-04-26 Thread Pushkar Pradhan
On Fri, 26 Apr 2002, Liam Gibbs wrote: Shouldn't you be using GLOBAL to access $this, $that inside functions? I have a problem with my variables not being set. I have a file I use for constants and functions, structured like so: $this = this; $that = that; . . . function this() {

Re: [PHP] Variables not set

2002-04-26 Thread Rasmus Lerdorf
Please read http://www.php.net/manual/en/language.variables.scope.php On Fri, 26 Apr 2002, Liam Gibbs wrote: I have a problem with my variables not being set. I have a file I use for constants and functions, structured like so: $this = this; $that = that; . . . function this() {

RE: [PHP] Variables not set

2002-04-26 Thread Steve Bradwell
I'm pretty new to php but I think your this() function you need to say: $h = $$this; $i = $$that; which means the value of the var. Sorry if I'm wrong. -Steve -Original Message- From: Liam Gibbs [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 3:13 PM To: [EMAIL PROTECTED]

RE: [PHP] Variables not set

2002-04-26 Thread Steve Bradwell
Ha, Sorry wrong instance here, ya global or pass the vars to the function. -Original Message- From: Steve Bradwell [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 3:13 PM To: 'Liam Gibbs'; [EMAIL PROTECTED] Subject: RE: [PHP] Variables not set I'm pretty new to php but I think

Re: [PHP] Microsoft Word PHP

2002-04-26 Thread Miguel Cruz
On Fri, 26 Apr 2002, Vladislav Kulchitski wrote: Can anybody help me with this problem? Basically, I have thousands of MS Word documents. What I need to do is to design an interface that will let you submit more of them into the database, and it should index all these documents, like extract

[PHP] Sessions with register_globals = off

2002-04-26 Thread Padraig Kitterick
Am in need of help or I will loose my sanity!!! Im runnin Php 4.1.2 with Apache 1.3.22 on Win32 with register_globals set to off. My script is as follows: ? session_start(); $myVar = Something; $HTTP_SESSION_VARS[mySessionVar] = $myVar; ? If I check the cookie, its completely empty. Now if

[PHP] web application development question

2002-04-26 Thread Erik Price
For those of you who write web applications (in any language), what do you recommend as the best way to store arbitrary atomic data for the web application? in other words, data that doesn't really need to be stored in a relational database, as it does not really relate to anything? In the

Re: [PHP] web application development question

2002-04-26 Thread Jason Wong
On Saturday 27 April 2002 03:50, Erik Price wrote: For those of you who write web applications (in any language), what do you recommend as the best way to store arbitrary atomic data for the web application? in other words, data that doesn't really need to be stored in a relational database,

RE: [PHP] Sessions with register_globals = off

2002-04-26 Thread John Holmes
Make sure you are using session_start() on each page and you should be using $_SESSION[var] = value;, not $HTTP_SESSION_VARS... ---John Holmes... -Original Message- From: Padraig Kitterick [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 12:16 PM To: [EMAIL PROTECTED]

Re: [PHP] web application development question

2002-04-26 Thread Richard Baskett
I usually have an info.inc file that has all these variables that I might need to change. Then include it in the files that use those variables and if I ever need to change one of them I just change it in the include file and it updates everything that way.. Rick Beauty of whatever kind, in

Re: [PHP] Sessions with register_globals = off

2002-04-26 Thread Erik Price
On Friday, April 26, 2002, at 03:16 PM, Padraig Kitterick wrote: This is annoying as everyhwhere I read about sessions, Im told that if register_globals is off, I shouldnt use session_register(), all I need to do is: $HTTP_SESSION_VARS[myVar] = $myVar; This is not what the

RE: [PHP] web application development question

2002-04-26 Thread John Holmes
Agreed, this is how I would recommend you do it. I would be careful naming your include files with an .inc extension, though, since .inc isn't parsed by PHP and will be shown as plain text when pulled up in a web browser. I normally name them something like config.inc.php or database.inc.php,

[PHP] Re: web application development question

2002-04-26 Thread Julio Nobrega Trabalhando
I let them in a database and a nice administration page so people can change. There are a lot of more information that you can store, such as last time of change, and previous values (so peopel can rollback them), who changed, description of the value, related to other values, and there always

Re: [PHP] web application development question

2002-04-26 Thread Richard Baskett
By the way.. You can include a little script in your .htaccess file or your httpd.conf file so that it will not show .inc files just like it does for .ht files. That's a great idea for the $_CONF array.. That will help me keep some of my variables straight and where they come from :) Cheers!

Re: [PHP] Variables not set

2002-04-26 Thread Miguel Cruz
On Fri, 26 Apr 2002, Liam Gibbs wrote: I have a problem with my variables not being set. I have a file I use for constants and functions, structured like so: $this = this; $that = that; . . . function this() { $h = $this; $i = $that; } function that() { } Now, when I

  1   2   >