Re: [PHP] eregi problems

2002-07-04 Thread Marek Kilimajer
If the regexp matches, it is a valid email, so you need ! in front of it. dan radom wrote: >I've got a form that's posted to a php page where I'm attempting to validate a field >contains a valid email address. The eregi below seems to be totally ignored... > > if (eregi("^[a-z0-9\._-]+@[a

Re: [PHP] Moving a file with 'rename'?

2002-07-04 Thread Marek Kilimajer
None that I know of. You need to use copy & unlink Tim Stoop wrote: >Marek Kilimajer wrote: > > > >>rename can "move" the file only on the same partition, it is realy just >>_rename_, not full _move_ >> >> > >So there is no full-

Re: [PHP] Button can't see form!

2002-07-04 Thread Marek Kilimajer
I dont think forms can be nested. In fact I'm pretty sure. Mark Colvin wrote: >I use the following line in some of my php scripts to navigate between >pages: > > value='New' onClick="this.form.action='newproduct.php?mode=new'; >this.form.submit()"> > >The problem I have is with a page I build dy

Re: [PHP] Re: Editing Word Documents

2002-07-09 Thread Marek Kilimajer
The only way I see this can be done is simly let every user mount a share under the same letter, all you need to do then is file, then locking files is up to samba or windows server. Marek Richard Lynch wrote: >>I have an intranet, which provides access to, amongst others

Re: [PHP] Re: Editing Word Documents

2002-07-09 Thread Marek Kilimajer
If you can use virtual private network, it is secure. But I don't know about plain Samba solution. Chris Hewitt wrote: > Marek, > > Yes I thought about windows shares. On the internet (as opposed to > intranet) the word "security" leapt to mind and I went away f

Re: [PHP] Re: Executing Script through image

2002-07-09 Thread Marek Kilimajer
instead of $fn=fopen($filename,"rb"); while(!feof($fn)) { echo fread($fn, 4096); } use readfile($filename); BB wrote: >$filename = "your/file.gif"; >header("Content-Type: image/gif"); >header("Content-length:".filesize($filename)); >$fn=fopen($filename,"rb"); >while(!feof($fn)) { > echo frea

Re: [PHP] Wait/Timeout

2002-07-09 Thread Marek Kilimajer
You could call another script in language of your choise using $output =exec('command'); Marek Michael wrote: >Hi! > >I've been using PHP to write shell scripts and was wondering how to >implement the following: > > - I have a menuing system > - If a

Re: [PHP] passing objects in url

2002-07-09 Thread Marek Kilimajer
This won't work, you must register it within a session, just remember to declare the class befor session_start() Alexander Ross wrote: >If $this is an object, can I have the following link? > >Process > >Will the URL become too long? Will teh info get passed correctly? thanks > >Alexander Ross

Re: [PHP]Erik Hegreberg

2002-07-10 Thread Marek Kilimajer
Well, he likely never be able to unsubscribe himself, as he needs to reply to the unsubscribe notice, but his account is now full. R'twick Niceorgaw wrote: >I just setup a rule in OE to forward his own mail to himself and delete it >form my machine >- Original Message - >From: "Jeff Lew

Re: [PHP] Re: cookie ?

2002-07-10 Thread Marek Kilimajer
Johan Holst Nielsen wrote: >> (yes it's me again) >> i've got an other problem. >> i've got an login system, and it has to put an cookie, but it seems >> he doesn't do it. >> is it an php.ini problem ?? > > > Dont think it a php.ini file. > > First of all. Remember to set the cookie before any

Re: [PHP] Re: Editing Word Documents

2002-07-10 Thread Marek Kilimajer
Now I reminded myself of WebDAV (http://www.webdav.org/), it is a filesystem over http. There is an apache module available (http://www.webdav.org/mod_dav/). It should be easier to set up then VPN. Chris Hewitt wrote: > Thanks > > Marek Kilimajer wrote: > >> If you can u

Re: [PHP] Generate a file

2002-07-10 Thread Marek Kilimajer
Use BiffWriter, I don't know where it lives, you must find it yourself. Phillip S. Baker wrote: > Okay here is what I want to do. > > Select the field of a database that I want. > Hit submit. > Execute a query of a database based on the said form. > Gather all the data and rows and plug them int

Re: [PHP] Re: Get Anchor out of Url

2002-07-16 Thread Marek Kilimajer
Wait, you mean IE sends the full uri (including the anchor #JumpHere) as a GET request? Anchor is interpreted on the client side, this means browser reads trought the document looking for anchor of that name. You cannot get it on server, maybe somehow with javascript. Marek Martin Thoma

Re: [PHP] Accessing Ports

2002-07-18 Thread Marek Kilimajer
Only if you write your own module. Thomas \"omega\" Henning wrote: >Hello, > >Can i access my paralel or USB port with PHP server side? > >Thomas "omega" Henning > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Code errors

2002-07-18 Thread Marek Kilimajer
My guess is that there is no ',' in $Line, so split returns an array with one variable, so list() warns you parameter No. 1, 2 ,3 4 and 5 are not asigned any value. Chris Crane wrote: >247: list($H_Date, $H_Open, $H_High, $H_Low, $H_Close, $H_Volume) = >split(",", $Line); > >"Scott Fletcher"

Re: [PHP] PHP if exit Q

2003-08-27 Thread Marek Kilimajer
You should fix your logic, or put additional if in. Or you can use while and break, but this is somewhat sick: while( condition ) { // code here if( codition ) { } else { break; } // more code here break; // break at the end so while() becomes if() }

Re: [PHP] can pdf forms be used to submit data into a db?

2003-08-27 Thread Marek Kilimajer
Look here: http://sk2.php.net/manual/en/ref.fdf.php Thanks you fixed the missing indefinite article, I was not going to answer the original. [EMAIL PROTECTED] wrote: hi guys and gals, aloha from hawaii, Not sure if this is the right place to ask, but i just need to know if it is technically pos

Re: [PHP] dealing with arrays

2003-08-27 Thread Marek Kilimajer
Then you must include keys: and so on. This is needed bacause only checked checkboxes are send on submit. Aris Santillan wrote: hi I Have Entry One Entry Two Entry Three Entry Four Entry Five . i want to process entries only with checked checkbox how can i do this in php?

Re: [PHP] Pipe an email to PHP

2003-08-27 Thread Marek Kilimajer
Is emailtest.php executable, does it start with #!/usr/bin/php, is $HOME set? Thomas Tremain wrote: I have attempted to create a .procmailrc that looks like: :0 * [EMAIL PROTECTED] | $HOME/emailtest.php I have also removed the forwarder from my /etc/valiases file. Now I get: The following add

Re: [PHP] Re: Sessions and frames

2003-08-27 Thread Marek Kilimajer
It has nothing to do with the other site. Browser makes a separate request for the frame content and you can set cookies without any problem. You should check if the cookie is realy set and if the cookie parameters are right (eg. in Mozilla's cookie manager). Jean-Christian IMbeault wrote: A l

Re: [PHP] Extracting EXIF/IPTC info from jpeg/tiff image files

2003-08-27 Thread Marek Kilimajer
search for exif on phpclasses.org Binay Agarwal wrote: Hi everybody I need to extract the information (EXIF and IPTC) from jpeg/tiff image files. After that i have to allow my client to modify and put them back in jpeg/tiff files. I want to know whether php has got built-in support in terms of

Re: [PHP] imagejpeg function output

2003-08-29 Thread Marek Kilimajer
You need to send the right header, in this case header('Content-type: image/jpg'); Mike At Spy wrote: Just to make sure no one is lead astray - I still have an issue getting jpeg enabled on a server with gd and php. I am asking this question 'cause I am doing some work on a different server where

Re: [PHP] imagejpeg function output

2003-08-29 Thread Marek Kilimajer
ready sent' thing. How do I get past that? :) Thanks for your help! -Mike -Original Message----- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Friday, August 29, 2003 12:51 PM To: Mike At Spy Cc: [EMAIL PROTECTED] Subject: Re: [PHP] imagejpeg function output You need to send

Re: [PHP] Foring a file download *and* page reload

2003-08-29 Thread Marek Kilimajer
Curt Zirzow wrote: ... (suggested by Marek Kilimajer) This will only work if the browser supports multipart/mixed. And I don't think any browser supports this. I bet any browser except explorer ;) But because explorer does not support multipart/mixed and it is still the major br

Re: [PHP] Foring a file download *and* page reload

2003-09-02 Thread Marek Kilimajer
You can use either a tag or real header, the later is prefered. header('Refresh: 0; url=download.zip'); ?> The browser loads the page and immediatly goes to another page (download.zip). This page will prompt the Save As dialog. Jean-Christian IMbeault wrote: Marek Kilimaje

Re: [PHP] multiple db query

2003-09-02 Thread Marek Kilimajer
For MySQL Version 3.23.25 and above - yes, and it is (surprisingly) called MERGE. I'm not sure if tables can be merged across databases. More in the manual. Aris Santillan wrote: is it possible to query on 2 databases but with same tablename and merge its output? -- PHP General Mailing List (ht

Re: [PHP] Re: PHP SESSION timeouts

2003-09-03 Thread Marek Kilimajer
Let me corect you. Catalin Trifu wrote: Hi, No, there is not! You have to manage yourself the timeout, for instance through a timestamp, which you verify on each request. PHP does not destry sessions by itself. Yes, it does, check your session.gc_maxlifetime setting (gc stands for g

Re: [PHP] Help with copy()/uploading a file

2003-09-03 Thread Marek Kilimajer
Use move_uploaded_file() instead of copy(). The former bypasses safe mode restrictions. James Johnson wrote: Hi, I need some help with the copy() function in order to allow a user to upload an image. The image will need to be in a folder that I can access it's URL for display in a page. The hos

Re: [PHP] Re: Best Approach for Multiple Options

2003-09-03 Thread Marek Kilimajer
Use SET column type if you want. But there is a limit for how many members can the SET type have (64 in MySQL). I would go with the first approach. Kae Verens wrote: this will return true for something like 'pool|fireplace|fitness' mysql_query('select id from theTable where amenities like "%pool

Re: [PHP] editing using msword(similar) via php

2003-09-03 Thread Marek Kilimajer
It was not asp but javascript with some proprietary extensions, origiginaly started by Explorer and now adopted also by Mozilla. One of the best implementations is HTMLAREA http://www.interactivetools.com/products/htmlarea/ Louie Miranda wrote: Hi, I saw an ASP kind of a msword type editor th

Re: [PHP] Re: PHP SESSION timeouts

2003-09-03 Thread Marek Kilimajer
ginal session file is available). Cheers, Catalin "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Let me corect you. Catalin Trifu wrote: Hi, No, there is not! You have to manage yourself the timeout, for instance through a timestamp, which

Re: [PHP] Too Advanced? Re: Cookies & Hidden Image

2003-09-04 Thread Marek Kilimajer
I don't accept third party cookies. Maybe your browser is set up so it does not too. Check the privacy & security settings. Nicole wrote: The cookie is being accessed by the same domain it was generated by. The problem is, the script is being pulled up via a hidden image (which resides on a diffe

Re: [PHP] suggestion: recursive calls

2003-09-04 Thread Marek Kilimajer
I don't think it is even possible, if the recursive calls don't seem infinite to inteligent human being, how should a stupid computer program find out. Ronald van Raaphorst wrote: Hi all, Not a real bug, but a suggestion: It would be nice if inifite recursive calls would somehow give an error.

Re: [PHP] Email to database

2003-09-05 Thread Marek Kilimajer
Enda Nagle wrote: mail($to, $subject, $message, $headers) or print "Could not send mail to customer"; print "mail sent to $row[email_address]"; Email was sent to $to, and not to $row[email_address] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

Re: [PHP] Re: PHP code generation

2003-09-06 Thread Marek Kilimajer
I think http://www.meta-language.net/ might be something similar. Chris Hubbard wrote: No, not random character generation. Currently the application I'm working does the following: 1. from an array that defines HTML components (like a table row, input field, file upload, etc), and, 2. from an

Re: [PHP] Running PHP scripts in PHP Nuke

2003-09-07 Thread Marek Kilimajer
How does it not work. It explodes? Well, this happens with phpnuke sometimes, that how it's got its name. You need to be more specific. What error do you get? Dan Anderson wrote: I have a client who wants me to install a script on their web site. Only problem is they use PHP nuke and when I edi

Re: [PHP] Procedural Code Issue

2003-09-08 Thread Marek Kilimajer
Safe mode? If safe mode is on and the image is owned by apache, the script that is owned by your acount cannot read the image. Nathan Taylor wrote: Hey Guys, I am developing code that uses GD to create and store an image but it is giving me trouble with GetImageSize, maybe you guys can offer som

Re: [PHP] Form data

2003-09-08 Thread Marek Kilimajer
Hidden form variables. Hardik Doshi wrote: Hi Group, I have a form for adding a university course details. It has some fields for which the parent form calls the child form. For example: Each course is associated with at least one faculty member. So when the user enters faculty member then first

Re: [PHP] upload problems

2003-09-08 Thread Marek Kilimajer
Does the form contain ? Doug Parker wrote: I'm trying to do some uploading on my server, and I'm not getting any value for my "tmp" upload setting - meaning this code: $source = $_FILES['cat1_thumb']['tmp_name']; echo $source; returns nothing. The form is fine - meaning that the text input name i

Re: [PHP] How do I get the result of a Division to 2 decimal places?

2003-09-09 Thread Marek Kilimajer
It is not mentioned in the manual, but it seems dec_point cannot be empty. If it is empty, default (.) is taken. Jay Blanchard wrote: [snip] I am dividing a number by another number and printing the result to the screen. How can I ensure that the number is rounded up to 2 decimal places? [/snip]

Re: [PHP] How do I get the result of a Division to 2 decimal places?

2003-09-09 Thread Marek Kilimajer
I meant you cannot set decimal point to be '', it will always display. Yes you can supply '' for the third argument. Jay Blanchard wrote: [snip] It is not mentioned in the manual, but it seems dec_point cannot be empty. If it is empty, default (.) is taken. echo number_format($number, 4, '

Re: [PHP] addslashes() || Why the multiple slashes?

2003-09-09 Thread Marek Kilimajer
WFM. Is $apostrophe from a REQUEST variable. Then it already is addslashed, as your magic_quotes_gpc is on in php.ini. CF High wrote: Hey All. Simple ? why does PHP add 3 slashes to the following var: $apostrophe = "I've got an apostrophe"; $slashed = addslashes($apostrophe); echo $slashed

Re: [PHP] Lost Connection to MySQL server during query

2003-09-09 Thread Marek Kilimajer
Are you using mysql_pconnect or just mysql_connect? Donald Tyler wrote: I have a script that is processing data from a single table and splitting it into smaller normalized tables. The script takes anywhere between 5-10 minutes to complete, and as it runs it constantly outputs a report on its

Re: [PHP] Installing PHP with MySQL RPM version

2003-09-10 Thread Marek Kilimajer
As mysql is from an rpm, I bet it is in /usr, so use --with-mysql=/usr Also make sure mysql-devel rpm is installed. Mark McCulligh wrote: I am trying to ./configure PHP 4.3.3 on a system that already has MySQL 4.0.14 on it. In the configure line --with-mysql=/path/to/mysql were is the path for RPM

Re: [PHP] A complete EXIF extension?

2003-09-10 Thread Marek Kilimajer
Try http://www.phpclasses.org/browse.html/package/1042.html Greg Militello wrote: Hey all, I've been dealing with EXIF data in images for a while now. Reading in PHP is available, however editing, or creating EXIF entries doesn't exist. I am going to work on a set of classes to interphase

Re: [PHP] maillist php manger/interface

2003-09-10 Thread Marek Kilimajer
We are just strugling with this. We are using ezmlm, you need to compile it with mysql support. I solved webbased subscribing and unsubscribing with sending an email to the apropriate addresses with From and Return-Path set to the user's email address (I used smtp class instead of mail() functi

Re: [PHP] PHP configure error

2003-09-10 Thread Marek Kilimajer
Are mysql libraries installed in /usr/local/mysql/lib? Can you paste here the full command that caused the error? Mark McCulligh wrote: Hi again, I once had MySQL 4.0.14 installed using rpm version, but now have removed it and installed MySQL 4.0.14 from the source file. When I run the make comman

Re: [PHP] A complete EXIF extension?

2003-09-10 Thread Marek Kilimajer
led. Greg Militello wrote: Also phpExifRW is not able to parse the EXIF format of all the different camera types I need it to. -Greg Marek Kilimajer wrote: Try http://www.phpclasses.org/browse.html/package/1042.html Greg Militello wrote: Hey all, I've been dealing with EXIF data in images

Re: [PHP] How to access a program outside of PHP?

2003-09-10 Thread Marek Kilimajer
Adam Douglas wrote: 3)Yes I tried running gs in the console as root works fine and as myself and that works fine. The user is www that runs httpd. How could I test to see if www has access? To my understanding such accounts can not be used to log in with. # su www -- PHP General Mailing List (

Re: [PHP] Upload seems to time out over 7.5 M

2003-09-11 Thread Marek Kilimajer
set_time_limit() takes effect only during actual execution of php script. Take a look at your max_input_time and post_max_size settings. post_max_size should be higher than upload_max_filesize. Dan Anderson wrote: try: set_time_limit(0); // don't time out. By default, if it takes more then 30

Re: [PHP] multi languages pages - string 2 hexa ????

2003-09-11 Thread Marek Kilimajer
Use unicode and a unicode editor. olivier wrote: Hi, I have to create a multi-language web site. The interface language and the content language are different. The interface languages are frensh, english, spannish or portugese, but the content can be english or russian or greek... My idea is to

Re: [PHP] multi languages pages - string 2 hexa ????

2003-09-11 Thread Marek Kilimajer
you. Olivier. - Original Message - From: "Marek Kilimajer" <[EMAIL PROTECTED]> To: "olivier" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, September 11, 2003 11:33 AM Subject: Re: [PHP] multi languages pages - string 2 hexa Use

Re: [PHP] Get number of line with error

2003-09-11 Thread Marek Kilimajer
For PHP 4 >= 4.3.0: function my_error_report_function($error) { $bt=debug_backtrace(); return "$error in {$bt[1][file]} on line {$bt[1][line]}"; } in older versions pass __FILE__ and __LINE__ to your function. [cz]Emo wrote: Hi all. I want ask you it exist some way how to get num

Re: [PHP] Mailing List Programme

2003-09-11 Thread Marek Kilimajer
You can send some output now and then to the browser (and flush()), or you can send the emails in steps, send first 300 emails, output a form with hidden fields (and text "sending emails") containing the offset and use onload="window.document.forms[0].submit()" to send the form and so on. Sheni

Re: [PHP] Refresh Error

2003-09-12 Thread Marek Kilimajer
Does your explorer ask you if you want to resend the information? It does. You post your form once again. If you don't want this to happen, use header("Location: http://yourserver/your_form_page.php";); redirect. Rex Brooks wrote: Okay, I'm displaying an entire table of numbers from my database

Re: [PHP] Searching with Date Ranges

2003-09-12 Thread Marek Kilimajer
John W. Holmes wrote: Seth Willits wrote: If I want to show events (records in a MySQL table) for the next 10 days (and I do), what would be the best approach to searching with this range? (The dates in my table are stored as a string in the format /MM/DD.) And change the column type

Re: [PHP] caching program...

2003-09-12 Thread Marek Kilimajer
No way, it might be anything from apache's DirectoryIndex directive. Browsers don't know that either. Andrea Tricco wrote: Hi, I'm using the function "file_get_contents()" to replicate the content of a remote html page on my server. But, the function file_get_contents() works even when the na

Re: [PHP] Calling functions from Button actions

2003-09-13 Thread Marek Kilimajer
Example: action.php: function action1() { echo "Hello, I'm action1"; } function action2() { echo "Hello, I'm action2"; } if(isset($_GET['action1'])) { action1(); } if(isset($_GET['action2'])) { action2(); } Dan J. Rychlik wrote: Is their an easy way to call a fu

Re: [PHP] Re: Calling functions from Button actions

2003-09-14 Thread Marek Kilimajer
I hope you don't use this method. It is VERY unsafe. You execute ANY function that the user tells you. Daniel Souza wrote: if (isset($_REQUEST['funcs'])) foreach ($_REQUEST['funcs'] as $key=>$val) if (function_exists($key)) $key(); ?> -- PHP General Mailing

Re: [PHP] More Image Transformation Difficulty

2003-09-14 Thread Marek Kilimajer
Anytime you encounter any error with images, comment out Content-Type header and you will see the error right in your browser. In this case the error is Fatal error: Call to undefined function: imagejpg() in /usr/home/jakus1/www/htdocs/jpg.php on line 64 should be imagejpeg [EMAIL PROTECTED]

Re: [PHP] Header and dfile download bug???

2003-09-15 Thread Marek Kilimajer
There are issues with acrobat and IE combination. Sometimes it just does not work and you have to close all IE windows so it starts working again. You should provide a download link for these cases. [EMAIL PROTECTED] wrote: Well, I'm on IE V6.0.2800 My boss, has the same version. Yet.. when she

Re: [PHP] Using a jpGraph image in an FPDF pdf output...-SOLVED

2003-09-16 Thread Marek Kilimajer
fflush did not work? Jay Blanchard wrote: [snip] Has anyone ever suceesfully embedded a jpGraph image in an FPDF output? FPDF uses this function for an image $pdfGraph->Image('grfx/image.jpg', 15, 20, 50, 0, 'JPG'); but when image.jpg is created with jpgraph it throws errors. I am sure that I a

Re: [PHP] Using a jpGraph image in an FPDF pdf output...-SOLVED

2003-09-16 Thread Marek Kilimajer
If your are using $graph->Stroke('sometempfile'); before $pdf->Image('sometempfile'); (I bet you do), then the image should be completed. Is it happening always or just now and then? What if you wait a few seconds between the two calls? Do you call clearstatcache()? I'm asking this because I o

Re: [PHP] Using a jpGraph image in an FPDF pdf output...-SOLVED

2003-09-16 Thread Marek Kilimajer
Did you also noticed the partial image files are always in multiple of 4096 in size? There must be some inner php caching that just does not work right. This bug should be fixed. Jay Blanchard wrote: [snip] If your are using $graph->Stroke('sometempfile'); before $pdf->Image('sometempfile'); (

Re: [PHP] Re: Is there such a thing as number_format() in JavaScript (Instead of PHP)???

2003-09-16 Thread Marek Kilimajer
It did? I tried it once and javascript came up with the same result. What browsers did you try? I ended up implementing javascript version of number_format(). Scott Fletcher wrote: Ah! Never mind. I only need to do this... AmtRequestBy = Math.round(AmtRequestBy*100)/100; That is multiplying

Re: [PHP] Object in session and include

2003-09-17 Thread Marek Kilimajer
Look at http://sk.php.net/unserialize Example 1. unserialize_callback_func example Marco Schuler wrote: Hi I have to serialize an object in a session. Generally there is no problem with this if the class-definition file(s) are included _before_ starting the session, as explained in the php-manual

Re: [PHP] Zip library

2003-09-17 Thread Marek Kilimajer
There are also pure php classes that can handle zip files, for example http://www.phpconcept.net/pclzip/index.en.php Stéphane Paquay wrote: Hi all, I need to unzip a file on a linux server automatically. I found the ZZiplib being able to do this but I don't know how to configure PHP to handle

Re: [PHP] How to do Javascript for the HTML/PHP Array (See Below)

2003-09-17 Thread Marek Kilimajer
if f = your form then f.elements['MyArray[]'] is a javascript array of input elements. Scott Fletcher wrote: Hi Fellas! Here's the clipping of an article about putting HTML variables into a PHP Array upon submission. Right now, I'm having trouble getting Javascript to do the error checking

Re: [PHP] CURL - SSL

2003-09-18 Thread Marek Kilimajer
You need php compiled with openssl support. http://www.php.net/openssl Rodrigo Nakahodo wrote: Anyone knows how to get a simple(HTML) https response using CURL session. Thanks a million!! Rodrigo Nakahodo --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.gris

Re: [PHP] embedding PHP in MySQL

2003-09-18 Thread Marek Kilimajer
By default the evaled code is php, so you need to escape first: eval('?>'.$your_code_pulled_from_db.' Michael Winston wrote: I've been working on this for a few days and can't get it. I would like to stick some php code into a sql databases and be able to evaluate it when it's called up. Foe ex

Re: [PHP] This is my fourth day of hitting this brick wall! Anyone...Purleeeeese help!

2003-09-18 Thread Marek Kilimajer
Jim Lucas wrote: > This should take care of the problem. You might also need to send back some > specific headers to tell the browser what you are sending it, but it should > work even without that being done. I think this works only in IE, always send Content-Type. -- PHP General Mailing List

Re: [PHP] Shared Objects

2003-09-19 Thread Marek Kilimajer
You need to write a php extension to wrap around the object's functions. Adam Whitehead wrote: Hi All I currently have a requirement to incorporate credit card processing in my application and my bank has provided me with a Linux shared object (.so file) that they said would suit my requirements.

Re: [PHP] breaking a string into chunks

2003-09-19 Thread Marek Kilimajer
you can call preg_match, and only once David T-G wrote: Hi, all -- Now it's my turn to ask a simple question, or one that sure sounds like it should be... I have a 14-char date string like "20030917181909" and I need to break it into its component parts for a more readable "2003-09-17 18:19:09"

Re: [PHP] Returns..

2003-09-19 Thread Marek Kilimajer
nl2br() Chris Mach wrote: I have a simple little script that displays news articles that are stored in mySQL database. However, when the script displays the data, it doesn't recognize the returns/enters. So I have to put when ever I want a new paragraph to begin. How can I get my script to recogn

Re: [PHP] Session with various Browser.

2003-09-19 Thread Marek Kilimajer
Experiment with session_cache_limiter(), for example try to set it to private_no_expire. Harry Yau wrote: > Hi all, > I am new to php. At first, I wrote a php script to generate a pdf > file from a tex file and load that pdf file to the browser by call a > system call of latex -pdftex. After

Re: [PHP] Installation

2003-09-19 Thread Marek Kilimajer
Are you using administrator account? [EMAIL PROTECTED] wrote: Hello, I’m trying to install PHP using the Windows Installer that I downloaded from your site, but the installation seems to hang up while copying the php.ini file to c:\windows. I double click on the install icon, a popup appears t

Re: [PHP] Returns..

2003-09-19 Thread Marek Kilimajer
es it put a space in there? It's screwing up my other script which displays just the first 50 words of the news article by exploding each word into an array. So /> is showing up after each break. http://www.ticatfans.com/index.php "Marek Kilimajer" <[EMAIL PROTECTED]> wr

Re: [PHP] PHP Apache (GLOBALS) question

2003-09-19 Thread Marek Kilimajer
check your mysql.default_socket setting in php.ini Frank Tudor wrote: I can run mysql from a command line. What I create a connection string using my php.ini file I get failure. mysql_connect() errors My connection string code is very simple: $link_id = mysql_connect("localhost", "username",

Re: [PHP] Re: Header won't redirect

2003-09-19 Thread Marek Kilimajer
And what about $_SERVER["HTTPS"], are you using it? PHP wrote: Jay, good guess, but wrong! While register_globals does equal off, I am using $_GET['pagename'] to assign the value to $pagename before the snippet of code that I sent. Sorry I didn't mention that earlier. I tried putting the _GET

Re: [PHP] Attention: List Administrator

2003-09-19 Thread Marek Kilimajer
And I get this: [snip] Violation Information: The subject violated the content filtering rule PHP as subject is a malacious code - Not Allowed. No attempt was made to repair. [/snip] How can PHP be a code so powerfull it is not even allowed in the subject? I thought PHP was a drug. Chris Sherwo

Re: [PHP] Opening new browser window

2003-09-19 Thread Marek Kilimajer
Rich Fox wrote: I would like to open a new browser window from within my php script (edit.php), a window in which another php page is run (search.php). search.php should be able to receive $_POST vars etc. from edit.php. I am not sure that the javascript solution to popup a window is correct, be

Re: [PHP] Web server file perms || More than I can chew.....

2003-09-19 Thread Marek Kilimajer
You can use ftp functions to create the files, so permissions won't be problem anymore. CF High wrote: Hey all. Got a problem with a site builder app I've spent three months developing. On my local machine (win2k pro, apache), no problems -- everything works just as designed. Today I began tes

Re: [PHP] Problem with getting non-blocking data from stdin

2003-09-20 Thread Marek Kilimajer
File a bug report. stream_set_blocking() started to work for files only since version 4.3, so it is likely full of bugs. Actualy, using cli php 4.3.2 I got this results some weird results. Your version run infinitely but changing echo 'Fooo!'."\n"; to echo 'Fooo!'; (removing newline) resulted i

Re: [PHP] session_start() || shell access problem......

2003-09-21 Thread Marek Kilimajer
Sessions don't work on command line and that is how you run your script - from command line. CF High wrote: Hey Robert. Indeed, hard to find the problem. I don't believe it's a whitespace issue, or even a "Headers sent issue", despite the fact that I'm receiving that error. Check it out: test.

Re: [PHP] dynamic pop up

2003-09-21 Thread Marek Kilimajer
Do you want to run it from within browser or as php-gtk application? Windows have a sheduler too, you can use it for php-gtk application. If you want it from browser, you can have a hidden iframe that regularly refreshes, if thare are any new messages, send the iframe javascript that would pop

Re: [PHP] PHP output|Buffer, PLEASE ADVISE

2003-09-21 Thread Marek Kilimajer
Check "Activate compression" setting in postnuke admin. You want it to be "No". If this setting is activated, ob_start("ob_gzhandler"); is called in pnInit() nabil wrote: Hi all; In general , when you open an html file , the browser start to display and draw the tables, then start to display t

Re: [PHP] Problem's addign a script to my web page.

2003-09-21 Thread Marek Kilimajer
Do you have shell access(ssh)? You can use that. Other way is to ask your ISP to change the parmissions or to enable chmod command. stratis Aftousmis wrote: Hello, i will be a succinct as possible. I downloaded a php script (a chatbox) for my web page. The web page is from my ISP, 15Mb space, y

Re: [PHP] How can i enable SSL support?

2003-09-22 Thread Marek Kilimajer
Do you have libeay32.dll in your windows system directory? Astron of BrOnX wrote: Hi all, i need to enable ssl support for windows version of php but when i have enabled ssl support from php.ini like; extension=extensions/php_openssl.dll php says PHP Warning: Unknown(): Unable to load dynamic lib

Re: [PHP] Redirect URL

2003-09-22 Thread Marek Kilimajer
Search the archives or google. Yury B. wrote: Hi I have form in file register.php. The action of this form is the same - register.php the form validation script is included in this file like include("mail.php") In mail.php there is two sections - one is working if user didn't complete form p

Re: [PHP] Problem's addign a script to my web page.

2003-09-22 Thread Marek Kilimajer
Optionaly you can use ftp functions to create files and directories. Stratis Aftousmis wrote: --- Marek Kilimajer <[EMAIL PROTECTED]> wrote: Do you have shell access(ssh)? You can use that. Other way is to ask your ISP to change the parmissions or to enable chmod command. I had a fee

Re: [PHP] Clear ALL Cookies previously set

2003-09-22 Thread Marek Kilimajer
Eugene Lee wrote: But I don't know what might happen if you use setcookie() to expire a cookie and then use setcookie() later on to set the same cookie. www.php.net/set_cookie : In PHP 3, multiple calls to setcookie() in the same script will be performed in reverse order. If you are trying to d

Re: [PHP] Fwd: confirm subscribe to php-general@lists.php.net

2003-09-22 Thread Marek Kilimajer
Good joke ;) Lisa M. White wrote: HI YES IM SERIOUS,LISA WHITE Subject: confirm subscribe to [EMAIL PROTECTED] From: [EMAIL PROTECTED] Date: 19 Sep 2003 20:17:52 - To: [EMAIL PROTECTED] Hi! This is the ezmlm program. I

Re: [PHP] undefined function recode_string()

2003-09-22 Thread Marek Kilimajer
www.php.net/recode - Installation section Justin French wrote: Hi all, PHP 4.3.2 on OS X 10.2.6, and I'm attempting to use the recode() or recode_string() function... both functions (one is an alias to the other) come back with: Fatal error: Call to undefined function: recode() in .../recode

Re: [PHP] search result

2003-09-22 Thread Marek Kilimajer
As a newbie you should read some tutorials. Check out http://www.php.net/links.php sections "Complex PHP Related Sites" and "PHP Tutorials". phpu wrote: Finally I got it. Thanks a lot - Original Message - From: "phpu" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, September 2

Re: [PHP] PHP "Smart Refresh" for looping server lookups

2003-09-22 Thread Marek Kilimajer
You can use a hidden iframe that would regularly refresh and if new messages are waiting send some javascript. In this javascript use DOM functions to insert the new message into the page. [EMAIL PROTECTED] wrote: This may sound a bit long and drawn out, but I'll try my best to summarize what

Re: [PHP] Start php-script with exec()?

2003-09-22 Thread Marek Kilimajer
exec("/usr/local/php/bin/php process1.php & "); process executes in the background Victor Spång Arthursson wrote: måndagen den 22 september 2003 kl 14.52 skrev Jay Blanchard: As usual for *nix type 'which php' which will return the path to the PHP executable. For portability you could then do s

Re: [PHP] There is an error with SSL support.

2003-09-22 Thread Marek Kilimajer
What version of php do you have. ssl:// is available only since 4.3.0 Astron of BrOnX wrote: Hi all, i have been trying to connect a server which has SSL support.. I have enabled SSL support from php.ini which lines, extensition=extensitions/php_openssl.dll; When i looked up phpinfo() for inform

Re: [PHP] Start php-script with exec()?

2003-09-22 Thread Marek Kilimajer
Ask your hosting company. Are you sure they will allow you to execute commands? Check phpinfo - safe mode and disabled functions. Victor Spång Arthursson wrote: Ok, it works fine on my development server with Mac OS X. But the hosting server seems to be WinNT, and on this it doesnt work. Anyon

Re: [PHP] using submit button and PHP-HELP

2003-09-22 Thread Marek Kilimajer
Angelo Zanetti wrote: Hi, I have a form that has a submit button in it, when the button is pressed I want it to reload the same page, with the same URL, however when I click on the submit button, the URL that it produces is http://whatever.php? then the name of my submit button = value for exampl

Re: [PHP] There is an error with SSL support.

2003-09-22 Thread Marek Kilimajer
Pretty new ;) Manuzhai suggested to use php4ts.dll from http://ftp.proventum.net/pub/php/win32/misc/openssl/ Astron of BrOnX wrote: himm 4.3.3 it is new version.? Thanks, Astron "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] What version of php

<    5   6   7   8   9   10   11   12   13   14   >