Re: [PHP] MySQL -- finding whether there's a transaction started

2009-04-24 Thread Bogdan Stancescu
On 24-Apr-09 03:45, Chris wrote: I don't think mysql has any way of finding that out. If you're using an abstraction layer, it's easy enough in code - though rollback's are a little harder - should they do a complete rollback or just to a savepoint? Thank you for taking the time to sketch that

[PHP] MySQL -- finding whether there's a transaction started

2009-04-23 Thread Bogdan Stancescu
Hello list, I'm developing a library and would need to know if the code calling my library has already started a MySQL transaction or not. I want to know whether I should start one or use savepoints instead -- starting a transaction if one is already in progress commits the existing transaction,

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: Save page as text

2005-06-30 Thread Bogdan Stancescu
Hello Rafael, You can try using output control functions (see http://ro.php.net/manual/en/function.ob-start.php) and, depending on whether you want to upload the file or save it on your server (I don't understand which from your message), serve the result with a Content-type: text/plain

Re: [PHP] Finding current PHP sessions

2005-05-14 Thread Bogdan Stancescu
} * PHP session.save_handler='files' * * @author Bogdan Stancescu * @license http://opensource.org/licenses/lgpl-license.php GNU Lesser General Public License * * @return mixed false on error or the indexed array of the session IDs; * please note that the session IDs are 16-bit values represented

Re: [PHP] Finding current PHP sessions

2005-05-14 Thread Bogdan Stancescu
Marek Kilimajer wrote: Bogdan Stancescu wrote: Ok, I went with the solution you recommended, by the way of a thank you to the list, here's the resulting function: /** * This function returns the IDs of the current PHP sessions. * At this time, it only works with * [EMAIL PROTECTED] http

[PHP] Finding current PHP sessions

2005-05-13 Thread Bogdan Stancescu
Hello all, I guess this comes up once in a while, does anybody know how I can find the current PHP sessions' IDs? I don't mind if some have passed away, and the PHP gc hasn't run yet, because I'm doing a garbage collection of my own, for data identified by session ID -- it doesn't really matter

[PHP] Re: Strange comparison behaviour

2005-05-13 Thread Bogdan Stancescu
You probably mis-typed something: [EMAIL PROTECTED] ~]$ php ? if (info == 0) echo is 0\n; else echo not 0\n; ? Content-type: text/html X-Powered-By: PHP/4.3.11 is 0 Cheers, Bogdan Erwin Kerk wrote: Hi All, Can anyone explain me why the following code: if (info == 0) echo is 0\n; else echo not 0\n;

[PHP] Re: in_array not operating as 'expected'

2004-11-09 Thread Bogdan Stancescu
Apart from Marek's reply, you should probably check the in_array() documentation (look at the third, optional parameter) and search for type casting on php.net. Cheers, Bogdan Ing. Ivo F.A.C. Fokkema wrote: Hi guys and gals, I'm not screaming Bug! Bug! but this _does_ look 'illogical' to me.

[PHP] Re: Pdfs getting corrupted during upload

2004-01-17 Thread Bogdan Stancescu
You didn't specify whether you and your client are using the same server. If not, make sure you have the same gpc slashing settings on both servers. Bogdan Binay wrote: Hi all, I m undergoing a very weird kind of file uploading problem. I m trying to upload an image file and a pdf file using

Re: [PHP] Non American strtotime

2004-01-16 Thread Bogdan Stancescu
John W. Holmes wrote: Tom wrote: The end user gets to chose their date format, and so if I cannot reverse their arbitrary date format into a timestamp then I have no chance of ensuring that dates are correct. This seems like a really fundamentally bad thing about PHP :( Seems like a

[PHP] Re: Image Header Problems

2004-01-13 Thread Bogdan Stancescu
Bob Eldred wrote: I'm wanting to serve images outside the docroot of apache, so that the images can't be so easily hijacked. However, I appear to be running into a problem with (I think) the headers not being sent properly. IE (v6) will only save the images as BMPs, not as JPGs, even though they

Re: [PHP] Re: goto label

2003-12-10 Thread Bogdan Stancescu
Robert Cummings wrote: On Tue, 2003-12-09 at 08:14, Bogdan Stancescu wrote: Sorry if my message sounded melodramatic or something, I remembered the frustration feeling so strongly from your message that I wanted to reinforce the other people's messages with a personal testimonial if you wish

Re: [PHP] Re: goto label

2003-12-09 Thread Bogdan Stancescu
Justin Patrin wrote: Robert Cummings wrote: Goto line number is a very broken way of coding. Goto label is a very useful and structured way of coding especially when creating fast FSMs for parsing. I was a little disappointed a few months ago when I found that PHP didn't support the goto label

[PHP] Re: Building a query string

2003-12-03 Thread Bogdan Stancescu
Ed Curtis wrote: This list has helped me out alot and I hope it can do it one more time. I need to build a MySQL query based on 11 different options from a form. Some options will have values others will be checkboxes to say include in the query. How I thought about going at it was using a

[PHP] Re: Capturing $_POST variables

2003-11-28 Thread Bogdan Stancescu
The only way you can send POST variables as POST variables in the next page is by using a form. That's obvious, you can't control the browser. So either use Wouter's suggestion to send them via sessions (if you don't HAVE to have them sent over via POST), or use Sophie's suggestion to build a

Re: [PHP] Important notice

2003-11-28 Thread Bogdan Stancescu
John Nichel wrote: Chris W. Parker wrote: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] on Wednesday, November 26, 2003 9:30 PM said: If you feel this transaction was made by our mistake, please press No. I keep clicking No but nothing is happening. PLEASE HELP! Maybe it's a bug with PHP??

Re: [PHP] Regular Expression Help: genreate alphanumeric, 8 chars

2003-11-27 Thread Bogdan Stancescu
...as in... ? // Could've been done with ASCII sets, but this way // you can easily tweak the eligible characters. $eligible='abcdefghijklmnopqrstuvwxyz0123456789'; $pwdLen=8; $password=''; for($i=0;$i$pwdLen;$i++) { $password.=$eligible[rand(0,strlen($eligible))]; } echo(Your

Re: [PHP] Important notice [talk]

2003-11-27 Thread Bogdan Stancescu
Curt Zirzow wrote: Thank you very much for cleaning my money. Make sure it goes through the drier before I get it back. I don't want my pockets to get web. I do neither though. But you know. Some people slip and fall in the mud and their money gets dirty. What can you do? Why are you all

[PHP] Re: how to send entire php webpage content to another page?

2003-11-27 Thread Bogdan Stancescu
You didn't provide much help by not answering the very question in the title. _HOW_ would you want to send it? Via a POST variable? Internally, via a plain text file? Internally, via memory sharing? Via e-mail? Also, it would be interesting to know what exactly you're after, that could help

Re: [PHP] Re: how to send entire php webpage content to another page?

2003-11-27 Thread Bogdan Stancescu
file' /form\n; And on nextpage.php I have ?php header(Content-type: application/vnd.ms-excel); header(Content-Disposition: attachment; filename=\test.xls\); echo $out; ? To make a long story short, this does not work. Grateful for any help. --- Bogdan Stancescu [EMAIL PROTECTED] wrote

[PHP] Re: Calculating difference between two timestamps

2003-11-27 Thread Bogdan Stancescu
Neil Freeman wrote: Hi there, Does anyone have any suggestions as to how I can calculate whether one timestamp is within one second of another timestamp. e.g. Timestamp 110:59:59 Timestamp 211:00:00 Essentially I need to create a function which'll take two parameters and return

[PHP] Re: PHP script that fills forms ?

2003-11-26 Thread Bogdan Stancescu
Check out curl, I think it does this. If it doesn't, you have one last shot to keep it simple by sending the data via GET instead of POST. If that fails too, you're practically going to have to emulate a browser. That wouldn't be SO tricky, sending a few POST variables is not *such* a big

Re: [PHP] Re: IE download problem

2003-11-26 Thread Bogdan Stancescu
I was thinking the same. But until we can squeeze some information about the actual error from Luis, I think we're stuck. Bogdan Warren Vail wrote: Could the problem be the associations stored in the windows system registry? I've had problems trying to download files whose name ends in a

Re: [PHP] Re: IE download problem

2003-11-26 Thread Bogdan Stancescu
download...?sender=171filename=.jpg from somedomain.com. Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later. thanks, Luis -Original Message- From: Bogdan Stancescu [mailto:[EMAIL PROTECTED] Sent

Re: [PHP] Re: IE download problem

2003-11-26 Thread Bogdan Stancescu
and still had the same problem. I did get rid of the newline for the test code. Luis -Original Message- From: Bogdan Stancescu [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 11:28 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: IE download problem Oh, so you're actively trying

[PHP] Re: Instant timeout

2003-11-05 Thread Bogdan Stancescu
Do you have this problem (your PHP page times out) or do is this the desired result? For the latter, you've been answered, for the former it might be a core error in your code which PHP can't handle -- in this case the results are unpredictable, I typically get a document contains no data

[PHP] Re: Changing the php.ini file

2003-11-05 Thread Bogdan Stancescu
Oh, yes, this is a big one, you must reset the whole state power grid. :) Simply restarting Apache should do it. Check if your problem doesn't come from somewhere else - how are you checking if the changes took effect? Also, are you sure you're editing the proper php.ini and not some older

[PHP] Re: Java JSP and PHP script relation..??

2003-11-05 Thread Bogdan Stancescu
PHP is interpreted at runtime, I don't think it stores any such pre-parsed files, even for caching, anywhere else but in the memory. I might be wrong, but I've got a pretty strong gut feeling that's the way it goes. Bogdan Ryan A wrote: Hi, Coming from a java JSP background I have a small

[PHP] Re: Adding a log file

2003-11-05 Thread Bogdan Stancescu
$Addcart() -- is Addcart() a function (in which case you should remove the dollar sign) or are you specifically trying to do some magic there by running a function whose name is stored in that variable? Bogdan Robert Sossomon wrote: I am seeing some errors with a program I wrote and I need to

[PHP] Re: null values

2003-09-08 Thread Bogdan Stancescu
? function countNulls($array) { if (!is_array($array)) { return(NULL); } reset($array); $count=0; while(list(,$val)=each($array)) { if ($val===NULL) { $count++; } } return($count); } ? Aris Santillan wrote: hi how to count null values

[PHP] Re: Beta Testers Needed - Free software opportunity

2003-09-08 Thread Bogdan Stancescu
I think you could adjust your business model a bit, there are quite a few GPL projects offering a lot more than what you do, in a better groupware environment. For instance you could check out http://www.guydavis.ca/opt/ for a demo of a GPL project at least a few orders of magnitude above the

[PHP] Re: URGENT: how to make a global server temporarily down page?

2003-09-05 Thread Bogdan Stancescu
Typing Apache custom 404 and clicking on I feel lucky would get you to this information: Apache Add the following directive to your httpd.conf file (this file should be edited by someone knowledgeable about configuring an Apache Web server) or to an .htaccess file in your root (top-level) Web

[PHP] Re: URGENT: how to make a global server temporarily down page?

2003-09-05 Thread Bogdan Stancescu
Errr... that is, in Google. ;) Bogdan Bogdan Stancescu wrote: Typing Apache custom 404 and clicking on I feel lucky would get you to this information: Apache Add the following directive to your httpd.conf file (this file should be edited by someone knowledgeable about configuring an Apache

[PHP] Re: using fwrite to create PHP files

2003-09-05 Thread Bogdan Stancescu
To answer your question, you probably can do $new_file_content=.?.php\n . [...] . ?.; But why in the world do you need this complication? Bogdan Vince Lamonica wrote: Hi all, I wish to use fwrite() to create a small PHP file. So far, when I attempt to do this, php parses the contents of the

[PHP] Re: Header()

2003-09-05 Thread Bogdan Stancescu
I don't think you can using headers. Why not Javascript? Bogdan Mixmastr wrote: How can i do so header opens a new page in a new browser, instead of opening the page inside the current browser? -kjetil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Loading advise (no problem)

2003-08-29 Thread Bogdan Stancescu
Hi Ryan, Looks good from here, you should try a traceroute to that host, I think that's actually your problem... Or are you on a local network with that machine? Try the traceroute nevertheless, who knows how your hub is acting up... :) Bogdan Ryan A wrote: Hi, No problem, Just need a little

[PHP] Re: Script Help

2003-08-14 Thread Bogdan Stancescu
Maybe you could provide a little more information? For instance, is that proprieraty code? If so, maybe you can post some relevant excerpts of code? If not, what package and what version are you trying to install? Can you identify and post some code? Have you tried contacting the authors of

[PHP] Re: LDAP_connect()

2003-08-02 Thread Bogdan Stancescu
http://ro.php.net/manual/en/ref.ldap.php#ldap.requirements Ron Allen wrote: Everytime I try to run this function it says that it is an undefined function LDAP_connection -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: eval

2003-08-01 Thread Bogdan Stancescu
You can put whatever you want in eval: ? $foo='foo'; $bar='bar'; echo(foo is $foo; bar is $bar); $myCode='$foo=checking eval statements; '; $myCode.='$bar=str_replace( ,--,$foo);'; eval($myCode); echo(foo is $foo; bar is $bar); ? You could even do this: ? $foo='$i++;';

[PHP] Re: A long float number.

2003-08-01 Thread Bogdan Stancescu
Keeping it on one line doesn't affect the calculations (as it shouldn't). Try using either sprintf() or number_format() for this purpose (the latter is generally preferred, but I don't know exactlt what you're after). Bogdan Zavaboy wrote: How do I prevent a long float number end up like

[PHP] Re: How to you compare dates in a query in Mysql

2003-07-31 Thread Bogdan Stancescu
Depends on what exactly you're after, but for strict comparison arithmetic operators work as expected (, , =). Bogdan Safal Solutions wrote: Dear friends, Plesae help in finding the correct syntax for comparing two dates in a query in MySql database Thank you Subodh Gupta -- PHP General

[PHP] Re: php-cli - Controlling external programs

2003-07-31 Thread Bogdan Stancescu
Have you checked out the -F option for tar? It may prove helpful: If you want more elaborate behavior than this, give tar the --info-script=script-name (--new-volume-script=script-name, -F script-name) option. The file script-name is expected to be a program (or shell script) to be run instead

[PHP] Re: Right Click Hyperlink

2003-07-31 Thread Bogdan Stancescu
If you were to somehow accomplish this, you'd do it client-side, not server-side (i.e. using JavaScript, Visual Basic or whatever other scripting you could have the browser run, not PHP). Which makes the question kinda OT. But I don't think you'll be able to do this, *maybe* you could use

Re: [PHP] load the PHP script last on the page

2003-07-31 Thread Bogdan Stancescu
...or use flush() just before that piece of code, if that's the case (if you don't need its output to complete the page). The page will be sent, the browser will remain in the page in progress state until the whole script is done, but that shouldn't bother your users, since they have the whole

[PHP] Re: Image resizing

2002-12-19 Thread Bogdan Stancescu
What platform are you running PHP on? Shaun wrote: Hi, My webserver doesn't have the GD library installed, please can someone tell me how I can resize uploaded images for thumbnails? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] How to upload a file

2002-12-18 Thread Bogdan Stancescu
Are you sure it's PHP the one that fails? i.e. do you get the some error has occured while uploading the file $userfile_namebr message or some other message? I had this kind of problem when trying to store incoming files in a database, and the link to the database failed, not PHP. Also, if you

Re: [PHP] preventing sql injections

2002-12-18 Thread Bogdan Stancescu
Also, please note that if you're using MySQL you don't have to bother at all security-wise - MySQL won't accept more than one query per mysql_query(). You do have to bother about regular errors though - if $f_namn or $email contain quotes (which $email might well contain) then you're going to

Re: [PHP] preventing sql injections

2002-12-18 Thread Bogdan Stancescu
Thy words are wise, milord. Bogdan John W. Holmes wrote: Also, please note that if you're using MySQL you don't have to bother at all security-wise - MySQL won't accept more than one query per mysql_query(). You do have to bother about regular errors though - if $f_namn or $email contain

[PHP] Re: writing uploaded file to another drive on another network?

2002-12-17 Thread Bogdan Stancescu
No, it's not stupid - I don't know why you may need this but as long as you need it... Anyway. It would be interesting to know what OS you're using on both ends of the connection. If they're both *nix machines, it's rather simple. You typically copy the uploaded file from the temporary

[PHP] Re: Print bgcolors in table

2002-12-16 Thread Bogdan Stancescu
As far as I can see, this is not even an HTML question - it's more of a user agent question. Lars Espelid wrote: Hello, I have been looking for a newsgroup where I can post questions about css/html. I did not find any. Any suggestions? If you want a break from php, my problem is as follows:

[PHP] Re: Can php auto execute it's script in schedule without openinga webpage?

2002-12-16 Thread Bogdan Stancescu
The other replies you received are correct - but if you somehow DON'T have a CLI PHP (e.g. using PHP3 for some strange reason, or too lazy to upgrade), you can use the same crontab/scheduler to execute wget (recommended on *nix) or lynx (available for both Win and *nix) to retrieve the actual

[PHP] Re: php --with-gd support

2002-12-16 Thread Bogdan Stancescu
ok [EMAIL PROTECTED] wrote: Hello List, I want to know all about copiling, installing and configuring php with gd-support. Anybody knows a good site or book to read about? Oliver Etzel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php --with-gd support

2002-12-16 Thread Bogdan Stancescu
Sorry, I only saw the first line in your message (I want to know all about...) - somehow assumed the 2nd to be part of the sig on first reading - and hurried to be cynical. Can't help you with a good site/book. Why don't you RTFM instead? :) Bogdan [EMAIL PROTECTED] wrote: Hello List, I want

Re: [PHP] Re: File Upload

2002-12-14 Thread Bogdan Stancescu
Message- From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]] Sent: Friday, December 13, 2002 22:09 To: [EMAIL PROTECTED] Subject: [PHP] Re: File Upload Globals on? File uploads allowed? Safe mode off? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Re: errorno error codes

2002-12-13 Thread Bogdan Stancescu
I guess that depends on what exactly you're executing? If the return_var argument is present, the return status of the *Unix command* will be placed here. Bogdan [EMAIL PROTECTED] wrote: In reality this is a linux question. If I use in PHP passthru or system, the linux OS will return an error

Re: [PHP] What's the Difference?

2002-12-13 Thread Bogdan Stancescu
...therefore it's faster. Only use it when you really need regexp functionality - same with all other functions which are dual straight string/regexp matching. Leif K-Brooks wrote: str_replace() doesn't have regex. Stephen wrote: I can't quite figure this out... What exactly is the

Re: [PHP] What's the Difference?

2002-12-13 Thread Bogdan Stancescu
Ok, you get the meaning even though my mail is confusing: only use *regexp functions* when you need regexp [etc] Bogdan Stancescu wrote: ...therefore it's faster. Only use it when you really need regexp functionality - same with all other functions which are dual straight string/regexp

[PHP] Re: Fw: printf %d

2002-12-13 Thread Bogdan Stancescu
No big deal, mate. Here, let's take a look at the PHP printf() manual page. If you don't know how to reach it, go to http://www.google.com/, type php, click on I'm feeling lucky, and in the resulting page type printf in the search box (hint: top right) - complex, but not science rocket.

[PHP] Re: Shared Memory in PHP

2002-12-13 Thread Bogdan Stancescu
Hi Krishnan! I never tried using shared memory functions in PHP, but the problem is interesting in itself, and I do have a potential interest in the issue myself. So I went through the documentation on php.net and, since nobody else answered yet, I'll have a go at it. Apparently the second

[PHP] Re: Fw: PHP script needs to timeout upon FOPEN to URL

2002-12-13 Thread Bogdan Stancescu
Try this: while ((!($file = @fopen(http://www.myurl.com;, r))) (time() $startTime + $time)); Here's why: http://www.php.net/manual/sk/language.operators.php Regards, Bogdan Phil Powell wrote: - Original Message - From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

[PHP] Re: Using - to access hash elements

2002-12-13 Thread Bogdan Stancescu
http://www.php.net/manual/en/language.oop.php William Martell wrote: Can someone shed some light on the '-' syntax seen below. Is this like similar to Perl '=' syntax to access hash key value pairs? Thank you one and all. [snip] // print mailing list while($data =

[PHP] Re: File Upload

2002-12-13 Thread Bogdan Stancescu
Globals on? File uploads allowed? Safe mode off? Miro Kralovic wrote: Hi everybody, I'm trying to upload a file using the following scripts, but it doesn't work, it actually doesn't get through the first line of PHP script at all and displays a problem has occured message. I'm running the

[PHP] Re: lynx and crontab

2002-10-15 Thread Bogdan Stancescu
The syntax I use for this purpose is either: lynx -source URL or wget -q -O - URL depending on whether lynx or wget are installed. HTH Bogdan Adrian Murphy wrote: my isp lets me control crontab so i've been trying to run a php script every 30 mins. the command is like this: lynx - dump

[PHP] Re: Fatal error: Cannot use [] for reading

2002-10-11 Thread Bogdan Stancescu
That piece of code works. Maybe you could be so kind as to post the exact piece of code which doesn't work? If it's not too much to ask, of course. Bogdan Leif K-Brooks wrote: Any idea what that error means? I'm trying to do something like: $array[] = array(a = a value); -- PHP

Re: [PHP] Fatal error: Cannot use [] for reading

2002-10-11 Thread Bogdan Stancescu
It works both with and without quotes around the key. Which is normal - you will be amazed at how forgiving PHP is - try this: ? echo(test); ? Bogdan Leif K-Brooks wrote: I am using quotes around the key, just a dumb mistake in the example... Leif K-Brooks wrote: Any idea what that

Re: [PHP] Re: Fatal error: Cannot use [] for reading

2002-10-11 Thread Bogdan Stancescu
Yup, that works as well. You could try a debugging echo after that line and see if it gets executed. You probably have a problem somewhere else. Bogdan Leif K-Brooks wrote: $actions[] = array(display = Discard); Bogdan Stancescu wrote: That piece of code works. Maybe you could be so

Re: [PHP] Re: site path

2002-10-11 Thread Bogdan Stancescu
slash might even create some problems. So, it's a matter of opinion (and use) whether adding a trailing slash would create a problem or not. So imagine how this code will work: echo a href='$theURL'Go to some folder/a; - E On Friday, October 11, 2002 2:28 PM Bogdan Stancescu wrote: Ok

[PHP] [Slightly OT] Using Mozilla? Here!

2002-10-11 Thread Bogdan Stancescu
Just created a Mozilla keyword for the php manual, after being too lazy for too long, so here it is, in case anyone else finds it useful: http://www.php.net/search.php?show=quickrefpattern=%s The keyword is obviously php (at least in my case). Since I already spammed you with this, here are a

Re: [PHP] Re: Object methods - memory usage?

2002-10-10 Thread Bogdan Stancescu
unanswered questions here. Anyway, I don't expect this message to gain me a reply to my original question - just wanted to explain myself for whoever has the curiosity to find out why I reacted like that. There. Bogdan John W. Holmes wrote: OK. -Original Message- From: Bogdan Stancescu

[PHP] Re: site path

2002-10-10 Thread Bogdan Stancescu
I generally use both - the first for includes and the second for HTML links. Do NOT include the trailing slash. The reason is simple: ? echo(A HREF='$my_URL/home'Go home/A); ? is much simpler to write and follow than ? echo(A HREF='{$my_URL}home'Go home/A); ? because you obviously can't

Re: [PHP] Re: site path

2002-10-10 Thread Bogdan Stancescu
and the server can handle the request faster since *I think* it doesn't need to query a DNS server for each request. I'm not sure about this one though... :( Need more research... - E On Thursday, October 10, 2002 10:18 PM Bogdan Stancescu wrote: I generally use both - the first for includes

Re: [PHP] Re: site path

2002-10-10 Thread Bogdan Stancescu
/a'; this way: echo a href=' . $myURL . home'Go home/a; that would still not give you the trailing slash problem. In other words, it's just a matter of how you write the code... ;) - E On Friday, October 11, 2002 1:06 AM Bogdan Stancescu wrote: I'm not sure exactly what you're

[PHP] Object methods - memory usage?

2002-10-09 Thread Bogdan Stancescu
Hello! Ok, this is probably a very stupid question for someone who knows how these things work internally - but I don't, therefore I ask. :) When I instantiate an object, do the methods get instantiated as well? The question is asked memory-wise, not functionality-wise. More to the point, if

[PHP] Re: parts of sentences

2002-10-09 Thread Bogdan Stancescu
You might want to take a look at explode() and array functions - I don't understand exactly what you want (I want this -- or that), but those will probably solve the problem, whatever that is specifically. Bogdan Oliver Witt wrote: Hi, I have a problem that I don't know how to solve within

[PHP] Re: parts of sentences

2002-10-09 Thread Bogdan Stancescu
Glad it helps - be sure to also check implode() for the reverse action! Bogdan Oliver Witt wrote: Bogdan Stancescu schrieb: You might want to take a look at explode() and array functions - I don't understand exactly what you want (I want this -- or that), but those will probably solve

[PHP] Re: Object methods - memory usage?

2002-10-09 Thread Bogdan Stancescu
Well, I guess my questions are just too stupid to deserve an answer anyway. Sorry for spamming you guys with my retarded questions! I'll refrain from asking any more questions on this list in the future, since I always seem to ask the wrong ones. Humbly yours, Bogdan Bogdan Stancescu wrote

[PHP] Re: Inheritance Question

2002-10-08 Thread Bogdan Stancescu
Hi! I don't know about the memory, but I think the recommended way would be your first choice because you might want to redefine method jk() in class bar... I would suspect that would also be recommended performance-wise as well - since that's the typical way to call methods, I think it's

[PHP] Re: Change user agent when using file() or fopen()

2002-08-29 Thread Bogdan Stancescu
You'll have to do it the hard way if you need that functionality - i.e. open a port on the remote machine (port 80), build a http query, send it and read from the port. That way you can control the whole process and send whatever browser identification, require certain languages, manage the

[PHP] Re: PHP - Chat?

2002-08-27 Thread Bogdan Stancescu
Check freshmeat - there are a couple of more than reasonable such projects (unfortunately I don't remember the names, but I checked some out and they seemed ok). Bogdan Andy wrote: HI there, I am wondering if a Chat coded in PHP would be sufficiant for a medium sized site. Maybe someone

[PHP] Re: Tricky question - referrer from ousite, or from intern?

2002-08-27 Thread Bogdan Stancescu
Justin is right, there's no guarantee the referrer will be set. What you can do however is have a common pre-registration page you link to from everywhere on the site - and set some variable there to acknowledge they came from the site - and give members the direct address to the registration

[PHP] Re: People's Opinion

2002-08-27 Thread Bogdan Stancescu
Christopher J. Crane wrote: This is a little off topic, but I am desperate. I am looking for a good PHP/MySQL chat that is not in a bunch of frames. I have from WebChat (http://www.webdev.ro/) but it has a bunch of runtime erros. If anyone has this working or they know of another that works

[PHP] Re: Image library

2002-08-21 Thread Bogdan Stancescu
The answer I would give at this moment would be a variant of your A) version where the hash directories would further contain directories limited to, say 300 images. Found it out after a painfully slow experience with MySQL blobs. I did not however implement this solution yet (still using the

Re: [PHP] Image library

2002-08-21 Thread Bogdan Stancescu
I've seen this kind of random approach several times and I keep wondering why not counting the files instead. Yes, it may take a little longer when uploading but I personally think the safety of the approach is worth the insignificant speed sacrifice. Bogdan Scott Houseman wrote: Hi all.

[PHP] Re: PHP Site Mirror

2002-08-21 Thread Bogdan Stancescu
Seems to be down - I can't reach it either. Bogdan Jay Blanchard wrote: Can someone give me a URL for a php.net mirror? I am having trouble with access... Thanks! Jay *** * Texas PHP Developers Conf Spring 2003

[PHP] Re: Best way to check for some certain text in a string

2002-08-21 Thread Bogdan Stancescu
If you don't need regexps, use strpos. Make sure you read the documentation though - if $nav-userAgent starts with search for this, your code will return false. Bogdan José Jeria wrote: I want to find a certain text in a string and i want it to return me a boolean. What is the best thing

[PHP] Re: mysql_query() ERROR

2002-08-21 Thread Bogdan Stancescu
It's not the ) characters, it's the quotes - make sure you addslashes() to all the variables. Also make sure you don't double-slash - depending on your php.ini settings, PHP may automatically slash incoming variables. Bogdan Mike Fifield wrote: This is a query that I am sending to mysql.

[PHP] Re: Best way to check for some certain text in a string

2002-08-21 Thread Bogdan Stancescu
José Jeria wrote: Bogdan Stancescu [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... If you don't need regexps, use strpos. Make sure you read the Can you give me any particular reason why strpos is better? http://php.weblogs.com/discuss/msgRea

[PHP] Re: Adding shadow effects to Images

2002-08-21 Thread Bogdan Stancescu
If you need real shadow effects (i.e. if the image data itself should contain the shadow), you can follow the suggestion below but using GD to achieve the effect by concatenating images. If you're looking for a solution to *display* the thumbnails in the page, then this is what I would do:

Re: [PHP] Re: SeparatingWords

2002-08-21 Thread Bogdan Stancescu
Just to make a fool of myself, I'd explode the string, parse each item and implode. I'm sure it can be done through some regexp wizardry as well - probably matching something along the lines of (^\ [A-Z]) but I'm way too retarded regexp-wise. BTW, any good online tutorials? I read through

Re: [PHP] Web Site

2002-08-21 Thread Bogdan Stancescu
Just for the record, I'm sure you can Google out quite a few nasty comments on PayPal - I remember reading some along the lines of dear all, I know it was much easier for you to send money via PayPal, I know that giving up on using it will considerably decrease my income, but after my [...]

Re: [PHP] Image library

2002-08-21 Thread Bogdan Stancescu
-Scott -Original Message- From: DL Neil [mailto:[EMAIL PROTECTED]] Sent: 21 August 2002 04:31 To: [EMAIL PROTECTED]; Bogdan Stancescu Subject: Re: [PHP] Image library Scott (confirming Bogdan), Libraries of all types have had this concern for years - even though books are uniquely identified

[PHP] Re: How retrieve database data from email?

2002-08-16 Thread Bogdan Stancescu
mail message - I'm sure you'll be able to google out plenty of functions/classes to do that - drop me an e-mail if you don't find any and I'll send you mine. Bogdan Lallous wrote: How and where can I add an alias and associate PHP with that alias? Elias Bogdan Stancescu [EMAIL PROTECTED

[PHP] Re: How retrieve database data from email?

2002-08-16 Thread Bogdan Stancescu
Bogdan Stancescu wrote: Add a line reading stocks: | /usr/bin/php /path/to/your/script.php Sorry, it should be stocks: | /usr/bin/php /path/to/your/script.php Also, first make sure php works from command line and check its location. Bogdan -- PHP General Mailing List (http://www.php.net

[PHP] Re: ###PLEASE HELP### - delete a line from a text file

2002-08-16 Thread Bogdan Stancescu
Hi Nick! First off, *please* read a netiquette guide before posting -- I hate seeing a conational of mine posting a message like yours (###PLEASE HELP### and I am waiting for an answer are extremely rude - you're not paying for support on this mailing list, so you can't demand anything).

[PHP] Re: Replace

2002-08-16 Thread Bogdan Stancescu
Have you tried searching string functions on http://www.php.net ? Bogdan Alexander Lindstedt wrote: If i want to find just a word in a variable, and then replace just that specific word... is there any simple way to do this? -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: quick question

2002-08-15 Thread Bogdan Stancescu
http://www.php.net/manual/en/ref.classobj.php Chris Barnes wrote: hey people, I have been seeing something in a few php scripts i've been playing with and i really dont know what it means or does. I'm only new to php so maybe someone could explain. i have been seeing -...e.g. while($file

[PHP] Re: A Question about PHP upload file

2002-08-15 Thread Bogdan Stancescu
http://www.php.net/manual/en/configuration.php#ini.memory-limit http://www.php.net/manual/en/configuration.php#ini.post-max-size http://www.php.net/manual/en/configuration.php#ini.upload-max-filesize Mintbaggio wrote: Is there is a volume limitted for PHP upload file using HTTP? I heard of

[PHP] Re: Can anyone help me out? I am really getting frustrated!

2002-08-15 Thread Bogdan Stancescu
Hi Mike! Mike wrote: Hello all, I am very confused. This script that I have been working on for a while is giving me a hard time... $string = Current song: 01. DJ Nightflight - The first flight (original \ mix) (D I G I T A L L Y - I M P O R T E D - European Trance, Techno, Hi-\ NRG...

[PHP] Re: Can someone explain this please...

2002-08-15 Thread Bogdan Stancescu
Hi! I don't know why it doesn't because it really should ALWAYS evaluate true with your code, regardless of absolutely anything. The reason is that the quoteless 777 you're comparing to is in decimal and it would defy math if you were ever able to get $perms==777. Anyway, it does evaluate

[PHP] Re: Can someone explain this please...

2002-08-15 Thread Bogdan Stancescu
Hummm, sorry, you're right, you're converting it do a fake octal via strings, I was wrong in my first paragraph. In any case, if it helps, on my comp it really does evaluate true. Bogdan Gandalf wrote: Hello! I am doing this $newpath = ./uploads/newdir/; if (!is_dir($newpath))

  1   2   3   4   >