[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 difference

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/r

[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. A

[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 opt

[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 PROTEC

[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 = mysql_fetch_object($result)

[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 scri

Re: [PHP] Re: File Upload

2002-12-14 Thread Bogdan Stancescu
--Original 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/unsub.php

[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: Ha

[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 p

[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 wan

[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 location

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_name" 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 e

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 quo

[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: http://www.ph

[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 M

[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 doubl

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 whol

[PHP] Re: eval

2003-08-01 Thread Bogdan Stancescu
You can put whatever you want in eval: You could even do this: HTH Bogdan Decapode Azur wrote: Is it possible to put PHP code in eval ? Or just vars ? $string = 'The result of '; eval ($string); ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

[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 this

[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: 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 the

[PHP] iCalendar support?

2002-07-31 Thread Bogdan Stancescu
Hi all! I know this is not the first (and will definitely not be the last) time this question is asked here, but since I was unable to Google anything out on the topic, does anyone know of any kind of iCalendar support for PHP? I'd much prefer a class to a module because I'm working on a proj

[PHP] Re: exec problem

2002-08-09 Thread Bogdan Stancescu
If it's internal stuff to your application, you can write in a 777 directory (such as /tmp) and retrieve it from there. If you want to write in a specific directory, you can set up a cron job to copy the file from the 777 directory to wherever you please from time to time. I'm not aware of any

[PHP] Re: passing an array in a link

2002-08-11 Thread Bogdan Stancescu
Ok, I don't know if you already solved this, but you might want to do something like $SerKeylist=rawurlencode(serialize($keylist)); print "link"; on the source end and $keylist=unserialize($_GET["SerKeylist"]); at the destination. This of course will build quite an URL for large arrays, so y

[PHP] Re: Case Sensitivity

2002-08-11 Thread Bogdan Stancescu
Subscribing 100% to the reply you got from Rasmus above, I'll just add that typically that's not a problem anyway because the files are generally created programatically (by the code) and once you set it right, you don't have to bother - although yes, it does seem odd when you first bump into

[PHP] Re: mysql_fetch_array problem

2002-08-11 Thread Bogdan Stancescu
Hi Jonni! You should consider wrapping mysql_fetch_*() functions into a personalized function which also takes care of errors - at least for debugging. Your problem is typical - your query has some problems and mysql_run_query() returns a null result, which is indeed not a valid MySQL result

[PHP] Re: POST fields through CURL

2002-08-11 Thread Bogdan Stancescu
Yes, the strings are formatted exactly like GET strings, but you'll have to build the whole HTTP header in front of them in order to get a valid HTTP request. So then, your code should look something like $myvar1=rawurlencode($myvar1); $myvar2=rawurlencode($myvar2); $parsed="myvar1=$myvar1&myva

Re: [PHP] Re: POST fields through CURL

2002-08-11 Thread Bogdan Stancescu
> >>-----Original Message- >>From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]] >>Sent: Sunday, August 11, 2002 22:36 PM >>To: [EMAIL PROTECTED] >>Subject: [PHP] Re: POST fields through CURL >> >> >>Yes, the strings are formatted exactly like

[PHP] Re: including a php file in an html doc

2002-08-11 Thread Bogdan Stancescu
Hi Alexander! You're missing the distinction between a server-side script (PHP) and a client-side script (JavaScript, VB etc). When you use the syntax you used, the browser attempts to download the src and execute it - and it can't do that, because in the best case the php code runs on the ser

[PHP] Re: Exploding Zip Codes! (Using PHP's explode function)

2002-08-12 Thread Bogdan Stancescu
If that's the exact string you have (which I doubt) then your code should look something like Notes on the code above: 1. Your string most probably doesn't look like that, in which case you'll have to adapt the code to it; 2. You'll have to do some custom changes to the first and last entry

[PHP] Re: picture upload error!

2002-08-12 Thread Bogdan Stancescu
Hi! Have you tried echoing $aFileContents in the same script? Does it actually contain anything? You may have a problem with reading from the upload file... Bogdan Djurovski Dejan wrote: > I can't upload picture to MySQL database: > What is wrong with my script: > I use PHP & MySQL database.

[PHP] Re: Php lib?

2002-08-12 Thread Bogdan Stancescu
What do you need exactly? Phplib does a lot of things, and I don't think anyone can answer your question without some specifics (or without rewriting the phplib documentation, that is). Bogdan John Wards wrote: > Anyone got any handy hints on how to convert scripts running on PHP3 and > PHPlib

[PHP] Re: Simple date question

2002-08-12 Thread Bogdan Stancescu
Hi! I never used MSSQL myself, but you should be able to find some SQL command to format the date in the MSSQL documentation - that's generally the way to retrieve specific date/time elements. HTH Bogdan Dave Leather wrote: > I hope this is a simple date question > > I am using an MSSQL dat

Re: [PHP] Evaluating server date ranges?

2002-08-12 Thread Bogdan Stancescu
If you store the date as a database native timestamp you might want to consider using native database functions in order to reduce CPU time - otherwise Mr. Green's solution is the typical one indeed. Bogdan James Green wrote: > On Mon, 2002-08-12 at 10:41, Joe in Minneapolis wrote: > >>What's

[PHP] Re: Retrieving variables

2002-08-14 Thread Bogdan Stancescu
You may add "\$_SERVER[DOCUMENT_ROOT].\"/path/to/file\"" to the database and then use eval() to evaluate. The better solution is obviously to store "/path/to/file" and append it to $_SERVER[DOCUMENT_ROOT] whenever you need the full path. Bogdan Michael Hazelden wrote: > Hi all, > > I'm attem

[PHP] Re: Batch E-Mail Problem

2002-08-14 Thread Bogdan Stancescu
Ok, I'm not positive I'm right here, but have you thought about the browser timing out - and not PHP? You may try doing an echo(" "); and a flush(); every 100 e-mails or so - and reset max exec time to a reasonable duration while you're at it - that *might* fix it. Please note that executing s

[PHP] Re: Another stupid one...

2002-08-14 Thread Bogdan Stancescu
Just stop using ereg_replace where not needed and use str_replace instead - it's faster and you don't risk bumping into "key-chars" like you just did. While regexps are very useful when needed, people tend to use the same functions even when they don't need regexps just out of habit... There,

[PHP] Re: Automatically send email on special day

2002-08-14 Thread Bogdan Stancescu
I suppose you want to use PHP - just set a cron job to run wget or lynx on that page every day. Alternatively, set a cron job to run a command-line php every day (it's somewhat faster) - but I think there are a couple of restrictions on the configuration, so if that doesn't work, just fall bac

[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. whil

[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-\

[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 tru

[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($ne

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

2002-08-15 Thread Bogdan Stancescu
You can set up php to run from console if it doesn't already, and add an alias to your mail server ("stocks") which would parse the incoming mail and do the appropriate deeds. Bogdan M wrote: > Hello People: > > I have my pages built in PHP / Mysql, all working ok, but now I need > solve a pr

[PHP] Re: php and classes

2002-08-15 Thread Bogdan Stancescu
So what happens exactly? Pafo wrote: > i reed thru my code and i noticed that it wasent readable, like Dan said in > one of my other post "xml and php". > so i thought, why not create afew classes to make everything look good :) > i managed to make this class, but it just dosent work,, anyone g

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

2002-08-16 Thread Bogdan Stancescu
line.php Then all you have to do is parse the incoming 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

[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 Ma

[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 unsub

[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 th

[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

[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: I

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 PH

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 [...] e

Re: [PHP] Image library

2002-08-21 Thread Bogdan Stancescu
, as 1 images >>in a single directory might slow down access to those images in the >>filesystem, or not so? >> >>Thanks for your input. >> >>Regards >> >>-Scott >> >> >>>-Original Message- >>>From: DL Neil [mailto:

[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 someo

[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 registratio

[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 work

[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 tr

[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 b

[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 with

[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 th

[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

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

2002-10-10 Thread Bogdan Stancescu
ust 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, >&g

[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: Go home"); ?> is much simpler to write and follow than Go home"); ?> because you obviously can't write Go home"); ?> Please remember that since the trailing slash

Re: [PHP] Re: site path

2002-10-10 Thread Bogdan Stancescu
"http://"; to every link that points to the same site. Most probably, the > browser 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... >

Re: [PHP] Re: site path

2002-10-10 Thread Bogdan Stancescu
o 'Go home'; > > > this way: > > echo "Go home"; > > 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, 200

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

2002-10-10 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 G

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

2002-10-10 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: 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 error means?

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

2002-10-10 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: > >

Re: [PHP] Re: site path

2002-10-10 Thread Bogdan Stancescu
equal to http://www.domain.com/somefolder/ . So, NOT having the trailing > 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 "

[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=quickref&pattern=%s The keyword is obviously php (at least in my case). Since I already spammed you with this, here are a

[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

Re: [PHP] Modifying the sort order of a query

2002-06-05 Thread Bogdan Stancescu
That's at least curious - limiting and offsetting will most certainly affect the results which are then sorted... I don't think that's what he was after. Just my 2c. Bogdan Miguel Cruz wrote: >Try a sub-select: > >SELECT * FROM (SELECT * FROM rap ORDER BY rcountry,rcity,rsname,rfname >DESC L

Re: [PHP] Re: currency rounding issues

2002-06-05 Thread Bogdan Stancescu
As a side note, your final question does make sense - I was surprised (dunno why, but I was) to find there are things which cost less then 1c, some even less than 1/10 c, so... Bogdan Michael Davey wrote: >I have found that the best way to work with currencies is to avoid using any >type of f

[PHP] PHP 4.0.6 file upload problems?

2002-06-07 Thread Bogdan Stancescu
ns - when he sent the first report, I started thinking it may have been some php.ini setting regarding uploads, but I was completely confused by the second report. Did anyone encounter this? Is it a PHP bug? Is it a setting? Thank you, and I'm sure Tom will as well if you can help us here! Bog

Re: [PHP] PHP 4.0.6 file upload problems?

2002-06-08 Thread Bogdan Stancescu
Thanks for taking the time to answer. As I said, there is no problem with the code in either OPT or in phpMyAdmin - there is a problem with PHP and I was hoping someone on this list bounced into the same kind of problem. Bogdan Edward Marczak wrote: >On 6/7/02 11:43 AM, "Bogdan S

Re: [PHP] simplicity with 2 queries..

2002-06-09 Thread Bogdan Stancescu
SELECT quiz_id FROM $table_quiz AS q, $table_user AS u WHERE q.user_id=u.user_id AND u.username='$valid_user' AND u.password='$valid_password'"; Bogdan Jule Slootbeek wrote: > Hey guys and gals, > > I have the following function which accesses the following tables, now > i want to

Re: [PHP] Re: Date?

2002-06-09 Thread Bogdan Stancescu
JavaScript's getTimezoneOffset seems to be working just right, as shown here: http://www.tyzo.com/tools/timezone.html I think assuming that the user's computer has the correct time zone set shouldn't be too far-fetched - and you can always provide the user with a way to override that default.

Re: [PHP] Uploading files

2002-06-27 Thread Bogdan Stancescu
Well, apparently $_POST[passcodeFile] is empty. The first question that comes to mind is whether you have the correct array index there. The second is why do you need the double quotes surrounding it. You should try echoing $_POST[passcodeFile] and see if it contains anything. Bogdan Tyler Lo

Re: [PHP] Gradients in PHP & GD

2002-06-27 Thread Bogdan Stancescu
Yes, it actually would've been should the person who started the thread answered (instead of a wise-guy saying "That's very helpful" - in this case, no, it didn't prove to be). That's because that way we would've found out what exactly he needed ("Of course the change can be only across a part

Re: [PHP] HTTP POST a file with CURL <----------PLEASE HELP!!!!!!

2002-06-27 Thread Bogdan Stancescu
multipart/form-data is very VERY similar to mail with attachments. Maybe you could tweak a package/library/class which allows that in order to build the POST request and then simply send it using socket functions to the server you want to. I don't know, maybe this is too complicated and you co

Re: [PHP] Gradients in PHP & GD

2002-06-30 Thread Bogdan Stancescu
The only question I could possibly have asked to leave it open enough to all the possibilities was basically the one I asked. That's because possible reasons for not writing his own function may have been: - he wanted a very basic gradient, but he was such a newbie in PHP that he didn't know ho

Re: [PHP] Gradients in PHP & GD

2002-07-01 Thread Bogdan Stancescu
Over-complicating it? Yes, I must admit that's true. The problem however was not that I didn't understand the question, but that I apparently was hostile. For someone extra-sensitive, I think I could've looked like that, but I still don't think I was out of line with my original reply, which s

Re: [PHP] svg graphics and php : is it possible

2002-07-02 Thread Bogdan Stancescu
I think the proper MIME type for sgv is image/svg-xml. Why aren't you able to output svg lines with print() (or echo())? Bogdan Herve le Martret wrote: >Hello, > >I am interested in creating svg graphics with php like creating a image with >gd. >I tried a PHP script with : > >header ("Content-

Re: [PHP] sample javascript popup+php - newbie

2002-07-03 Thread Bogdan Stancescu
Submitted or filled in? i.e. do you want textbox1 to contain whatever is in textbox2 or do you want the form in file2.php to be submitted to file1.php? The difference is that in the first case no PHP gets to run when button2 is pressed, whereas in the second case file1.php gets to run with the

Re: [PHP] sample javascript popup+php - newbie

2002-07-03 Thread Bogdan Stancescu
In file1.php: <!-- function popItUp() { var gogu=open("file2.php","mypopup",<winparameters>); } // --> filled in > >- Original Message - >From: "Bogdan Stancescu" <[EMAIL PROTECTED]> >To: "php-general" &l

Re: [PHP] sample javascript popup+php - newbie

2002-07-03 Thread Bogdan Stancescu
Ah, and of course I forgot window.close() in sendText() after sending it. Bogdan adi wrote: >filled in > >- Original Message - >From: "Bogdan Stancescu" <[EMAIL PROTECTED]> >To: "php-general" <[EMAIL PROTECTED]> >Sent: Wednesday

Re: [PHP] adding a variable to a variable name

2002-07-03 Thread Bogdan Stancescu
You are on the right track with the reasoning: $unsetA = "level" . $i . "Name"; unset($$unsetA); HTH Bogdan Tom Beidler wrote: >I'm wondering if this can be done, and if so, what's the proper way to do >it. > >For the current issue I'm trying to unset some variables with common names >and I

[PHP] Re:

2002-07-09 Thread Bogdan Stancescu
Use the POST method instead of GET for submitting forms. Bogdan - wrote: >Hi everyone, > >Is there any way to hide my form submitted variables (like >passwords etc) >in the location >bar "http://somedomain.org/checkpassword.php? >password=mypassword" >or atleast show in an encypted form n the l

  1   2   3   4   >