[PHP] Client Side PHP

2003-02-06 Thread Pete
Has any one ever considered creating browser / client-side php to replace Javascript and vb?? One language across the whole web ;-) Posted this question in the evangelism so I'd be interested in more reaction: Pete -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: counter freezes whole site!

2003-02-06 Thread Pete
Pag wrote: Hi, I am having a serious problem on my site. It was working fine until a day ago, when it simply freezes. After i made a few checks i realized it loops on this code. I tried everything but i cant understand why and i am going crazy trying to figure it out! This code is supp

Re: [PHP] Client Side PHP

2003-02-06 Thread Pete
Think thje user base will be quite big if we got it together. How many oho programmers are there who struggle with Javascript - me included ;-) Anyway the opensourcness of php would make the plugins more efficient for each browser. pete Maxim Maletsky wrote: Goetz Lohmann <[EMAIL PROTEC

[PHP] Re: Cannot add header information

2003-02-19 Thread Pete
G wrote: I have a script which adds header information to a different page, on my server I get a Cannot add header information - headers already sent by. But on other servers it works fine, does any1 know why?? below - yes its a space ?> -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: MySQL GMT --> Local time

2002-11-06 Thread Pete
AYS(date_col) <= 30; Pete Jason wrote: My logging application is feeding a MySQL database with data records that are time stamped with GMT time. I would like to query the database for records matching local time(eg. all records created on oct 17,2002 local time). I would prefer if the records co

[PHP] Install Prob PHP4

2001-05-15 Thread Pete
Hi, i try to install PHP4 under Suse Linux 7.1 When i use the "configure" command i get the following error message: "checking lex output file root... ./configure: lex: command not found" "configure: error: cannot find output from lex; giving up" this is the command i used: ./configure --enabl

[PHP] phpmyadmin and UTF

2004-07-27 Thread Pete
Guten Morgen habe gerade im Apache den Default Zeichensatz auf UTF-8 gesetzt und in der phpmyadmin ebenfalls. In der phpadmin GUI habe ich de-utf-8 ausgewählt. Nun kommt folgende Fehlermeldung von phpmyadmin: "Die PHP-Erweiterungen iconv und recode, welche für die Zeichensatzkonvertierung be

[PHP] Re: phpmyadmin and UTF

2004-07-27 Thread Pete
Sorry, here is the English version: I have just set the Apache Default Char Set to UTF-8. Same thing in the phpmyadmin config file. I chose de-utf-8 in the phpmyadmin GUI. When I try to look at a particular database the following error comes up. "Can not load iconv or recode extension needed f

[PHP] Error message

2004-08-23 Thread Pete
Hi List, I am getting a strange error notice for the following config file: 'mysql', 'username' => 'root', 'password' => 'secretpass', 'hostspec' => 'localhost', 'database' => 'mydb', ); $options = array( 'debug' => 2, 'portability' => DB_PORTABILITY_ALL, ); /**

[PHP] mod-rewrite

2004-10-17 Thread Pete
URLS? And if absolute is absolutely necessary, should I include the domain name? -- Pete Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mod-rewrite

2004-10-17 Thread Pete
Wow - this is *really* spooky! When I wrote that, with RewriteRule "relative URLS within that page no longer work correctly", I had not realised that those within PHP worked ok, whereas those in raw HTML didn't... -- Pete Clark -- PHP General Mailing List (http://w

[PHP] Generating MySQL Tables

2004-10-04 Thread Pete
ields are 'a paragraph full'), and work from there. Of course, it doesn't need to be fast to run. -- Pete Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Send variable in include()

2004-10-20 Thread Pete
clude 'http://www.example.com/guestbook.php?option=view&offset=$offset'; - guestbook.php - $offset gets value "$offset" instead of "0" $option has correct value, "view" How do I write my include so it works? Would appriciate som help. Regards

Re: [PHP] php sessions question

2004-10-21 Thread Pete
N['user_level'] = $user_level; >> >> >You should only save the userId in the session, everything else should >be retrieved from your database using that id. I normally do as you have suggested here - but why do you suggest that this method is better? -- Pete Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What is the GD library and what can I do with it ?

2004-05-11 Thread Pete
Hello Rob, > What is your local environment? (OS, PHP version, etc.) > If you're running windows, most likely all you will have to do is change > your php.ini. The OS used is Windows XP. Thank you very much. Webmaster For all usenet/forum/mailinglist users: http://www.netmeister.org/news/lear

[PHP] What is the GD library and what can I do with it ?

2004-05-11 Thread Pete
Hi, What is the GD library ? How can I install it. I have PHP integrated as a module. Judging by the discussion that people have here the GD library sounds interesting. How do I know if my shared host has it ? Thank you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] What is the GD library and what can I do with it ?

2004-05-11 Thread Pete
Thank you Tom for the info. I just checked. GD Supportenabled GD Version1.6.2 or higher FreeType Supportenabled FreeType Linkagewith freetype GIF read Support enabled GIF Create Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled Unfortunately I don't have it on my local

[PHP] Best way to creat multilingual sites. With gettxt ?

2004-05-14 Thread Pete
Hi, I have been trying all sorts of techniques on our multilingual website. First I had include files german.inc.php with was just a huge list of varibales: $trans['thankyou']="Danke"; //etc After that I put all into a database. Now someone told be about gettxt in some forum. He said that this

[PHP] Regular expressions

2004-02-03 Thread pete
Hi there, I have serious probems resolving regular expressions. I wish to replace a substring with a given pattern with results of a function with a backreference used as argument. SAMPLE: function check_this_out($somevalue) { $url_array = ''; $i=0; $query = "SELECT SomeRow FROM SomeTable W

Re: [PHP] Regular expressions

2004-02-03 Thread pete
Thank you very much Jochem and John. It works like a charm now, and I was beginning to grow weary after experimenting with result sets for almost 10 hours now. How would you - by the way - concatenate text to the replacement string? ;-Pete On Tue, 3 Feb 2004 14:15:00 -0500, [EMAIL PROTECTED

[PHP] Problems with mail function

2004-11-08 Thread Pete
n't arrive. The client has PHP Version 4.3.1 on Windows NT localhost 5.2 build 3790 -- Pete Clark http://www.hotcosta.com http://www.spanishholidaybookings.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] help with html through php

2004-11-21 Thread Pete
as 123.php or >123.phtml abc.html can continue to be abc.html > >> >>Again I realize this is a complete newbie question but I appreciate any >>help you have. >> >>Todd A further point (since you are newbie ) is to remember that abc.html will not normally be a co

[PHP] php & ajax

2006-02-15 Thread pete
ello all, Im a beginner at php. but I was able to get this script to work. Now I am looking to have it automatically refresh itself using ajax every 10 seconds. Can somebody explain or show me how to do this. Thank you. PHP Code: | | |$httpfile = file_get_contents('http://www.game-monitor.c

[PHP] ExpertRating launches PHP Certification Exam

2002-12-12 Thread Pete Patil
Good news for the PHP developer community- http://www.expertrating.com";>ExpertRating, the global skills assessment provider has launched an online PHP Certification exam. Candidates who pass the exam will be mailed a hardcopy certificate of accomplishment. The launch of this exam has generat

Re: [PHP] Random String Generation

2003-03-12 Thread Pete James
tion script takes the user_id they passed in and hashes it with the secret key again. The result should match the ID they passed. Easy and pretty secure. HTH. Pete. Mike Walth wrote: > > Hello: > > What I am trying to do is to create a email verification routine with PHP. > When peo

Re: [PHP] Char check

2003-03-12 Thread Pete James
Try is_numeric()? Boaz Yahav wrote: > > Maybe this can help > > Check int / integer - checking if a variable is an integer or not. The > php is_int() function does not check if the string value is integer or > not. > http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1705 > > How to

Re: [PHP] changing the brightness of an images

2003-03-12 Thread Pete James
Although I don't know how to do this myself, one of the places I've seen it done is in JpGraph (www.aditus.nu). The function that does it is AdjBackgroundImage($bright, $contrast, $saturation) in jpgraph.php. You could try taking a look at the source? Pete. Dimitar Haral

[Fwd: Re: [PHP] inserting parameters into URLs dynamically]

2003-03-14 Thread Pete James
You could use output buffering to do the rewriting for you. IF you use ob_start('my_function'); at the top of your page, where my_function is the name of a callback function This function might look like this: function my_function($buffer) { return $buffer . '?x=foo&y=bar'; } That's it.

[PHP] Re: dynamic classes or dynamic extends ?

2003-07-02 Thread Pete Morganic
off tangent slightly - Have u looked at smarty templates smarty.php.net Must admit I played with ITX and a few others but smarty wins for me pete Torsten Rosenberger wrote: Hello i plan to reorganize my CMS code. The idee is to only use classes for the hole system. There should be a Core class

[PHP] Re: Quickie - manipulating strings

2003-07-02 Thread Pete Morganic
th character from the end of string. Example 2. Using a negative start have fun Pete Matt Macleod wrote: Hi, I need to manipulate a string to insert a space 3 characters from the right end. eg: turn 'ng23fgh' into 'ng23 fgh', or 'hfdgskfjgh23kj' into 'h

[PHP] Re: outputting xml declaration

2003-07-02 Thread Pete Morganic
print ''; Steven Apostolou wrote: Hello, The folowing code gives an error: print ""; This is probably because I print a questionmark? How can I avoid that an error is generated? Besides it's not an error in the way that it gives an errorstring but it writes the output in the error_log of apach

[PHP] Re: web based mail client

2003-07-03 Thread Pete Morganic
There's loads of email clients here http://www.hotscripts.com/PHP/Scripts_and_Programs/Email_Systems/Web-based_Email/index.html Greg Brant wrote: hi, im the lead developer for a small online magazine / community we want to set up an e-mail service where our users can create their own mail accoun

[PHP] Re: Database question

2003-07-03 Thread Pete Morganic
definately do NOT recommend this path- Just make an include file at the top of each page pete Hardik Doshi wrote: Hi Group, Currently i am connecting the underlying database server from every php page. To reduce the connection overhead i am thinking to store the PEAR DB object into the registry

[PHP] Re: Please Help.. cgi.force_redirect does not work

2003-07-04 Thread Pete Morganic
what is the cgi error message ? Scott Fletcher wrote: Hi! To make the long story short, we use IIS 5.0 with PHP 4.0.6 for a while. Then we builted a new database server, SQL-2000 and point the website to the new server. Then we notice the problem with the CGI error. So, we last week downloa

[PHP] Re: imap_header timing out

2003-07-08 Thread Pete Morganic
see the set_time_limit(); function http://uk2.php.net/manual/en/function.set-time-limit.php increase to around a minute or make the mailbox read them back in pages with 10 at a time for example Pete Amer Neely wrote: I've a script reading a mailbox using $InBox = imap_open($Host,$User,

[PHP] numbers to text

2003-07-11 Thread Pete Morganic
Anyone know of a class or function that converts numbers to readable text eg inputing the number would output text as in 120 = one hundred and twenty 3600 = three thousand six hundred tia pete -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: numbers to text

2003-07-11 Thread Pete Morganic
>?> just not even be bothered with Google I did but didnt find any Thanks ;-) pete Brian McGarvie wrote: Anyone know of a class or function that converts numbers to readable text Oh how old... coud you just not even be bothered with Google or any other search engine? To save you the t

[PHP] Re: php mysql array question

2003-07-11 Thread Pete Morganic
I use the PEAR db http://pear.php.net/manual/en/package.database.php This returns arrays - examples here http://pear.php.net/manual/en/package.database.db.intro-fetch.php look at the Quick data retreaval down the page pete Larry Brown wrote: Is there any php function to pull a query into an

[PHP] Re: Send mail using external server

2003-07-14 Thread Pete Morganic
http://phpmailer.sourceforge.net/ This is what I use and makes life much much easier Pete Maria Garcia Suarez wrote: Hi there! I'm developing a program that has a kind of mail client from where users can send mails and get a blind copy in their e-mail boxes. The program uses mail() in

[PHP] Re: reposting in textarea

2003-07-14 Thread Pete Morganic
You can use the $_POST variavle in the text area eg Artoo wrote: How do you repost data in a textarea field of a form? I've set up a session variable named old_data and want to repost the data into the textarea of a form so it can be re-editied. Thanks -- PHP General Mailing List (http://w

[PHP] Re: Templates...

2003-07-15 Thread Pete Morganic
Have u looked at smarty.php.net ?? It sounds like your reinventing the wheel Pete Donatas wrote: Does anyone know any other way used in template engines for loops but creating array first and passing it to template class? This is rather annoying and it makes work slower and code harder to read

[PHP] Re: getallheaders() in PHP 4.2.3

2003-07-16 Thread Pete Morganic
Sorry not to answer your question below however I am intrested in Netware.. Just to satisfisy mu curiosity. What version are u running ? what Web server and what database ?? I love netware, however most customers dont !! pete Ananth Kesari wrote: Hi, For some reason, getallheaders() is not

[PHP] Re: Shell_exec() [ or what else? ] to kill root-started FTP daemon

2003-07-22 Thread Pete Morganic
check out the linux "sudo" command pete R evėŹĘår{óv ņń wrote: Hello. I am trying to restart my FTP daemon by killing it and then starting it using the shell_exec() function: shell_exec('kill '.$pid ); Shell_exec does nothing by this - when i do ps -ef later, i see the d

Re: [PHP] IE Issues

2003-07-22 Thread Pete Morganic
Why is the font tag evil and depreciated ??? confused pete Steve Magruder wrote: Curt Zirzow wrote: Dont use the font tag.. they are evil... and besides depricated. And they're deprecated too. :) Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] IE Issues

2003-07-22 Thread Pete Morganic
so which tag should i use .. ??? tia pete Nelson rodriguez-Pena wrote: Hi Pete, Why is the font tag evil and depreciated ??? confused pete Because it is a presentational element and HTML is headed to structural content instead of visual formating. Structure is for HTML, presentation is for

Re: [PHP] Are left joins more efficient?

2003-07-25 Thread Pete James
.id=table2.id; then that is dependent on your database. I can't comment on MySQL, but PostgreSQL, for instance, will usually optimize the second query better. But it is highly dependent on what you're doing and where you're doing it. HTH. Pete. [EMAIL PROTECTED] wrote, On 2003/

Re: [PHP] mysqldump

2003-07-25 Thread Pete James
Sorry to be a stickler... but _technically_ the backtick is shorthand for shell_exec(). exec and passthru are a little different. Mike Migurski wrote, On 2003/Jul/25 11:12 AM: Thanks for the replies guys but the main reason I'm doing this is because most times I don't have access to the servers,

[PHP] Re: Mail Authentication or redirection of SMTP server

2003-07-28 Thread Pete Morganic
I used to have similar problem and that was when I was using the php mail() command.. Have a look at phpmailer http://phpmailer.sourceforge.net/ This deals witha lot of the peculiarities with mail servers.. Pete Ron Allen wrote: Here is my problem. When I send emails locally theough the

[PHP] Re: CGI Timeout

2003-07-29 Thread Pete Morganic
increase the time limit http://uk.php.net/manual/en/function.set-time-limit.php Imran wrote: Hi, i facing a error during uploading a big size file (abt 200 MB). i incred = upload file size in php.ini and also incred connection time in IIS (web = server), but i getting again this below written err

Re: [PHP] capturing reloads

2003-07-30 Thread Pete James
t operation (welcome page, etc) header("Location: {$_SERVER['SCRIPT_NAME']}?screen=default"); } ?> HTH. Pete Curt Zirzow wrote, On 2003/Jul/30 8:58 AM: * Thus wrote Diana Castillo ([EMAIL PROTECTED]): anyone know how to catch if someone has reloaded a page? The wa

Re: [PHP] Re: looking for some kind of CMS breakthough (slightlyOT)

2003-07-30 Thread Pete James
Why not use a wysiwyg edit box? There are quite a few of them... unless you don't want to restrict your users too much. http://www.labs4.com/htmleditbox/2.0/demo.php Mark wrote, On 2003/Jul/30 11:11 AM: But isn't this just defining your own version of something like bbcode? And wouldn't you be

Re: [PHP] Sharing PHP(Apache) session with JSP session (Tomcat)

2003-08-14 Thread Pete James
Check out http://php.net/session_set_save_handler, and save your session data in a database, or leave it as is and access the session file directly. Here's an example of sharing php sessions with perl... it may provide some ideas. http://search.cpan.org/author/MIYAGAWA/PHP-Session-0.20/lib/PHP/

Re: [PHP] A faster way to Redirect pages

2003-03-17 Thread Pete James
Try zero seconds? Poon, Kelvin (Infomart) wrote: Hi, I know this topic was discussed but I deleted my previous mail so I can't go back and review them. My question is, is there a faster way to redirect html pages other than just using ? Is there any way we can do that in php so that it redire

Re: [PHP] A faster way to Redirect pages

2003-03-17 Thread Pete James
header(), session_start(), etc. can go anywhere in a page (after any content) as long as you start the page using output buffering (ob_start()). Example (bad example) follows: ob_start() print this; print that; if ($forgot) { // oops need to redirect header('Location: foo.php'); } print t

Re: [PHP] What is the difference: include()

2003-03-17 Thread Pete James
Only that you can embed vars in the second one. if $foo='bar'; include('somefile_{$foo}'); will include the file 'somefile{$foo}', where include("somefile_{$foo}"); will include the file 'somefile_bar' HTH. Charles Kline wrote: What is the difference as in... why one or the other? include('some

Re: [PHP] What's this _FILE junk?

2003-03-17 Thread Pete James
Is your form enctype set? Like so: Liam Gibbs wrote: This line: when clicking submit, produces nothing. I print_r $_FILES["imprintpicture"], I try to echo $_FILES["imprintpicture"]["name"] or ["tmp_name"] and nothing comes up. Any reason? -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] How to manipulate a Access database(MDB file) with PHP.

2003-03-17 Thread Pete James
This was answered just this morning. Please do some research before asking questions. -- the answer from this morning I just tried putting "PHP and Microsoft Access" into Google. The first item has the text "This code is useful for those who want to use a *Microsoft* *Access* database with a

Re: [PHP] Session problem

2003-03-17 Thread Pete James
HTH. Pete. shaun wrote: Hi, I get the following error when using using the following script to authenticate a user. The login form is inside a frameset, is this whats causing th eproblem, and is there a way round this? Warning: Cannot send session cookie - headers already sent by (output started at

Re: [PHP] Mailing List Digest

2003-03-18 Thread Pete James
It is sent twice a day and contains all of the messages sent during that period. It's so that you don't get 200+ messages a day in your inbox. Tom Sommer wrote: What does the mailing list digest contain, compared to a normal subscription? What is the difference? -- PHP General Mailing List (

Re: [PHP] no phun intended!!!

2003-03-18 Thread Pete James
riate comments like this does nothing for the community's perception, and IMO destroys credibility. If I was a female coder, I would take great offense to these comments... but maybe that's just me. Respectfully, Pete. Steve Keller wrote: At 3/9/2003 09:11 AM, Niels Andersen wrote: >

Re: [PHP] no phun intended!!!

2003-03-18 Thread Pete James
Steve Keller wrote: Sexist and inappropriate? You would be offended because I insulted geeks? Actually, it was not so much your comment that offended me, but the fact that you chose to reprint his. > If I was a female coder, I would take great offense to these comments... but maybe that's just

Re: [PHP] Using PHP to get a word count of a MSword doc

2003-03-18 Thread Pete James
The tokenizer that Erik was referring to is actually a PHP lexer, not a general tokenizer. Perhaps you would be looking for the strtok() function? www.php.net/strtok Brad Wright wrote: Erik, thanks, are you able to pint me to some good reference sources on tokenizer's... i have never come acro

Re: [PHP] Cleaning user data

2003-03-19 Thread Pete James
data, just less-dangerous data. HTH. Pete. rotsky wrote: I'd like to canvas opinions about what's needed to clean user input. I'm using an HTML form where users enter simple things like name and phone number, but also a couple of small text areas for address and a message (up to 50

Re: [PHP] convert VARCHAR 10 to DATETIME

2003-03-19 Thread Pete James
Could you use a function like strtotime()? freaky deaky wrote: this question is not strictly php related, but i thought possibly someone on this list might have dealt with this type of problem before. i am exporting a database out of filemakerpro 5 as a comma delimited file, and importing the

Re: [PHP] Session Data

2003-03-21 Thread Pete James
If your session id is not stored in a cookie (if url rewriting is on), then the $url page may not be getting your session id, and thus is starting a new, empty one? Tony Bibbs wrote: I'm wrapping up an MVC implementation for PHP. Everything is working splendidly except that redirects seem to b

[PHP] A cool PHP tool - Pusher

2003-03-28 Thread Pete James
Some of you may like to stay on top of the PHP world (as well as countless other worlds) without having to do too much work. To you I would suggest checking out http://www.shaman.ca/pusher/ There are a number of news feeds here from various PHP sites. Cheers, Pete. -- PHP General Mailing

Re: [PHP] A cool PHP tool - Pusher

2003-03-28 Thread Pete James
kind of volume subscribers have to deal with. I was not meaning to spam. I felt it was PHP-related and useful to PHP developers. Again, I apologize if I've wasted your time. I will not attempt to continue this thread. Thanks, Pete. BTW. After some re-factoring I may release the code to th

Re: [PHP] Re: A cool PHP tool - Pusher

2003-03-28 Thread Pete James
Agreed. Now it allows searching and browsing without sign-up. Thanks, Pete Manuel Lemos wrote: Hello, On 03/29/2003 01:22 AM, Pete James wrote: Some of you may like to stay on top of the PHP world (as well as countless other worlds) without having to do too much work. To you I would suggest

Re: [PHP] Re: XML+XSLT or Smarty again??

2003-03-31 Thread Pete James
This xml+html+xslt paradigm provides great separation, especially when viewed in light of the traditional xslt=html+code method. I've used it with good success. http://www.xml.com/pub/a/2000/07/26/xslt/xsltstyle.html HTH. Pete. -- http://www.shaman.ca/pusher A news aggregator with

Re: [PHP] Re: XML+XSLT or Smarty again??

2003-03-31 Thread Pete James
. I think that people may sometimes waste more time trying to maximize the division between presentation and logic than it's worth. Well written PHP scripts can be almost as good a template as any (by separating the HTML and just using embedded variables). HTH, Pete. -- http://www.sha

Re: [PHP] if statment

2003-03-31 Thread Pete James
Also, take a look at isset() and empty() http://php.net/empty http://php.net/isset Jennifer Goodie wrote: so change it to "" -Original Message- From: Tim Haskins [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 12:12 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] if statment My bad, I

Re: [PHP] trigger error and set error handling in an object

2003-04-04 Thread Pete James
return $GLOBALS['_ERROR_HANDLER_OBJECT']-> $GLOBALS['_ERROR_HANDLER_METHOD']($type, $message, $file, $line, $vars); } // start handling errors set_error_handler('eh'); -- snip -- This uses a trick wrapping the

Re: [PHP] PHP syntax colouring on documentation

2003-04-04 Thread Pete James
yword #006600 #006600 highlight.string#CC #CC HTH. Pete Randum Ian wrote: Hi there, I am currently writing a number of guides on PHP, SMARTY and Syntax and I was wondering if there is a set schema for the colouring of code within these guides. Is there a website that can give me an

Re: [PHP] RedHat

2003-04-05 Thread Pete James
better to contact the PHP group about their licenses, or RedHat about their releases. Pete. Larry E. Ullman wrote: Where would I go on the redHat site to ask when they are going to upgrade to PHP 4.3 and MySQL 4.x (now in production). Our CS dept. won't install them for me until RedHat b

[PHP] Re: shorthand "if" notation

2003-06-12 Thread Pete Morganic
Its a ternary operator look at http://www.phpbuilder.com/board/showthread.php?threadid=10235547 http://www.phpbeginner.com/columns/maxim/ternary pete Adrian Greeman wrote: I am confused by the shorthand "if" notation. For example I just saw this PHP snippet on another forum I think i

[PHP] Re: form name and submit test

2003-06-12 Thread Pete Morganic
Put a hidden field in the form and give it the same name as the forms eg I'm pretty sure the form name is not sent to the server - but i may be wrong pete Amanda McComb wrote: If I have multiple forms on a page, and each form has it's own name, how can I tell which form has submitted

Re: [PHP] ie issue: when I do a forced redirect with the header()

2003-06-20 Thread Pete Morganic
Slkigh Ammendment to below https://www.google.com";) ; die; ?> Jake Johnson wrote: Have you tried... https://www.google.com";) ; ?> Regards, Jake Johnson [EMAIL PROTECTED] -- Plutoid - http://www.plutoid.com Shop Plutoid for the best p

[PHP] Re: correct session format?

2003-06-24 Thread Pete Morganic
Have a look half way down this page http://www.linuxdocs.org/HOWTOs/PHP-HOWTO-15.html pete Jay Fitzgerald wrote: is this the correct way to register variables via a session? [code] session_start (); $_SESSION['eventid'] = 'arma2'; print_r ($_SESSION); echo " $_SESSION

[PHP] Re: return all non-tag characters

2003-06-24 Thread Pete Morganic
try http://uk2.php.net/strip_tags pete Matt Palermo wrote: I want to be able to retrieve and return all character that are not located in html tags. For example: 1234567 or 1234567 I would just like it to be equal to 1234567, but I would need it to work with any tags and attributes. Is

[PHP] Re: Ticketing System?

2003-06-26 Thread Pete Morganic
The one we use is oneorzero helpdesk which is a project at sourceforge.net Andreas Cahen wrote: Hello List :) Is there any usefull ticketing system (Hotline/Support/etc.) written in PHP? I have found some on hotscripts.com, but I don't know which one is really got or not.. Any suggestions? Che

[PHP] Re: What's best, using a temp-file or a temp-table

2003-06-26 Thread Pete Morganic
> if (ereg("\t", $users[0]) == true) $separator = "\t"; // om texten är if(isset($_POST['users']) { $_SESSION['temp_users'] = $_POST['users']; } if (ereg("\t", $_SESSION['temp_users'][0]) == true) $separator = "\t"

[PHP] Re: Install PHP on windows using PHP installler

2003-06-26 Thread Pete Morganic
be a bit "cock handed" way of doing it but it works for me. If its IIS server then I suggest (personal view) that you use CGI - I recently had a couple of applications crash my ISP host and changing to CGI solved the problem. Hope it helps Pete Mark McCulligh wrote: I am building a Wi

[PHP] Re: mime type

2003-06-27 Thread Pete Morganic
chech here http://www.phpfreaks.com/mimetypes.php and in php add the folowing header header ("Content-type: model/vrml"); Brian V Bonini wrote: I want to get php to output text/css for one .php file. I tried using header() and ini_set () but seems no matter what I do the Content-type remains tex

[PHP] Re: Help needed

2003-06-30 Thread Pete Morganic
Nirmala P wrote: Hi list, This time i am pasting my code could any body tell where wrong I am ? if(!$db) echo("Connect to localhost mysql database failed"); if(!mysql_select_db("eshop",$db)) echo ("Selection of eshop failed on MySQL database"); $Sql = "SELECT " . $field ." FROM languag

Re: [PHP] Re: Help needed

2003-06-30 Thread Pete Morganic
Where does thejavascript fit ? Nirmala P wrote: Hi Pete Morganic , Thanks for reply. But the code is not solving my problem. May be I did not epress my problem clearly. Actually I wanted to store the returned value so that I can write it on page like { test = '); document.write(test);

[PHP] Re: Digit Grouping

2002-07-22 Thread Pete James
number_format() Wouter Van Vliet wrote: > > Heey Listers, > > I've got a small question. Does php provide any function to group a number > like 3193576 into 3.193.576 ? Just reads easier when the hits for my > website are being displayed ... Or if php doesn't have a function for it .. > anybod

[PHP] Re: Logging out with authentication

2002-08-01 Thread Pete James
Hello $PHP_AUTH_USER."; echo "Your password is $PHP_AUTH_PW."; echo ""; } ?> Ray Todd Stevens wrote: > > I am working on a web site that is using php controled www- > authenticate authentication. User ids are specific to users and > different pages and different levels of information

[PHP] apache seg fault (sig 11)

2002-08-14 Thread Pete James
Wondering if any of the gurus out there have any insight... I'm running a set of php scripts using nested output buffering + sessions and I'm getting sporadic seg faults. If I turn off output buffering it seems to work fine, which would be great if I didn't need it. I'd post code, but there's a

[PHP] opening pdf file in new window with a POST operation

2002-07-03 Thread Pete James
A PDF file is being dynamically generated and displayed in a pop-up. The GET method form works fine, while the POST method (which is what I need to use) pops up a message about the page containing both secure and nonsecure data. WTF? Any help out there? Thanks in advance, Pete. -- PHP G

Re: [PHP] Re: opening pdf file in new window with a POSToperation

2002-07-05 Thread Pete James
Tom Rogers wrote: > > Hi > get data is insecure by nature so the whole page is insecure and no > warnings, as soon as you post you invoke the security. You probably have a > url on your page that is coming from an insecure server (http:// instead > of https://) > Tom Believe me when I say that

Re: [PHP] Survey: MySQL vs PostgreSQL for PHP

2002-07-05 Thread Pete James
rnally, for every row you > select. Is this really what you want? Doesn't this mean that PostgreSQL would be more efficient for larger user volumes? Locking an entire table isn't usually a good thing. Pete. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: total (slightly OT)

2002-07-05 Thread Pete James
more specific? What fields... from a database? [EMAIL PROTECTED] wrote: > > Hey everyone, > Am working late as usual before the weekend and so I fear i'm a bit braindead! > Anyway,heres my problem > I have fields named "total" and "avg" and no idea how many records > how do I get the total

[PHP] Re: opening pdf file in new window with a POST operation

2002-07-05 Thread Pete James
t question, though... why doesn't it happen with GET? BTW... I think I found a solution to this. Using I can send HTML (which it wants), _and_ display the PDF (which I want)! I guess we shall see... Thank you so much for taking the time to answer. Pete. Richard Lynch wrote: > > >>

Re: [PHP] Survey: MySQL vs PostgreSQL for PHP

2002-07-07 Thread Pete James
>From the php.net manual for pg_fetch_array: Note: From 4.1.0, row became optional. Calling pg_fetch_array() will increment internal row counter by 1. "Ilia A." wrote: > > On July 5, 2002 07:54 pm, Pete James wrote: > > "Ilia A." wrote: > > >

Re: [PHP] Checking for a successful login and setting a global flag.

2002-07-08 Thread Pete James
You could also try using Javascript to popup a window when they close the current one, and reset your cookies (and/or destroy your session) in that window. Pete. Kevin Stone wrote: > > Okay sorry for the misunderstanding. You can set the lifetime of the cookie > to die when th

[PHP] Re: Difference between executable and Apache server

2002-07-08 Thread Pete James
I also would like to hear the answer to this... I try set_time_limit(3600), but my script still appears to time out early Jay Blanchard wrote: > > Good afternoon, > > We have some cases where we run PHP as a standalone executable for scripting > certain processes that can be called from CRON,

[PHP] Re: Question about using if elseif ...

2002-07-18 Thread Pete James
> > Is there any problem with leaving out the last else and just ending it with > an elseif such as ... > > if($a == '1'){ > echo '1'; > } elseif ($a == '2'){ > echo '2'; > } Nothing syntactically, but surely you wouldn't want a rogue '3' or '0' to fall through the cracks... that wouldn't be ve

[PHP] Re: Doing an HTML POST using header()

2002-07-22 Thread Pete James
Don't redirect, use curl to post your data to the new page. Francis wrote: > > I'm trying to redirect to another website but doing a post to that website > at the same time. (ie POST rather than a GET (eg: header("Location: > www.anothersite.com/index.php?page=22"); ) > > How do you do an HTM

[PHP] Re: Doing an HTML POST using header()

2002-07-22 Thread Pete James
ng POST rather than GET, its gonna be quite simple but > whats the syntax? there must be a way to do it... > > "Pete James" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Don't redirect, use curl to post

Re: [PHP] upgrade 4.1.2 to 4.2.2 (passing vars problem with 4.2.2)

2002-07-22 Thread Pete James
Evan Nemerson wrote: > > If you need register globals on for your old stuff, but want to write better > new code, you can just use in your new > stuff. You can't do this in a php file... by the time it gets to this line, it's too late. According to the set_ini function on php.net, register_glo

  1   2   3   4   >