Web site hosting

Aiocp Hosting

Aterr Hosting

Easybe Hosting

Jetbox Hosting

Mantis Host

J2EE 1.6 Hosting

Cmsimple Host

Order Now

 


J2EE 1.5 New to hosting?
Check out the step-by-step guides to help you get started.
Setting up your 1st website
Transferring your website

 

Advertiser's links

 

 

PHP4 Secure your email
Accessing email from public places and wireless networks can pose a huge security risk! Anyone can get your password..
Learn how you can secure your email

 

 

 

Domain Search: www.

SERVERS & NETWORK  |  SUPPORT  |  WHY OXXUS  |  TESTIMONIALS  |  ABOUT US  |  CONTACT |  ORDER NOW

 

 

 

If you want an alternative OS, use *BSD

or maybe non-deicentric buddhists or something.

Yeah. Border.
For those who don't want to use Windows or OSX but are too frightened to do the *real* step to a *real* Unix.

Hey now, I'm a linux host user myself :P
Well, Linux and OS X.

real unix, where a needle and magnet is the Standard Text Editor.

I've got a needle and an electromagnet!
Haven't finished that driver for the latter yet, though.
*repositions the "yet"*
But those distribution wars really are childish.

OS/Distribution wars, language wars, editor wars, political discussions over the Internet ... pointless.

they can be sorta productive, though. they bring to light their differences, which is useful for someone trying to choose one, or someone trying to iron them out.

Because it's the same OS after all. Just the icing slightly differs.

but plain pissing contests are, well, just that.

Yeah... Or their bluntness. -_-
Heared about Kanotix?

no

Oh! Ok.
Damnit. _

I always find the *nix crowd to be too over defensive and aggressive, the Windows lot just say "But .. I'm used to it.."

Windows administrators are respectable people.
They don't generally form negative opinions of different operating systems.
In fact, the ones I've known were very open-minded.

Is there a way to create text or html hosting files in PHP.. Did a search in the manual and didn't find anything... Just stuff about creating .GIFs

We've outcast the original developer hosting (Kano), because he simply was an asshole who got Knoppix, wrote some random script, renamed the distribution to Kanotix and spammes the chat seeking beta testers.

nyone used loquendo n php host b4 ?

Yeah, because Windows administrators don't have a clue.

And he continued doing this for every single script he added. Giving it a new version, seeking beta testers.
Every few days. -_-

Yes, pure as a baby.

http://php.net/manual/en/ref.filesystem.php

Better to have no clue than to be infected with the *nix society's hate

file_put_contents(), fopen(), fputs() etc etc.

Thanks.

nyone ever worked with loquedo ??
nyone ever worked with loquendo ??

No, no one ever has

!tell TheOne about guidelines

indeed. ignorance == bliss.

!+metaquestion

When you click on a download file on mininova it goes to something like http://www.mininova.org/get/719254 and then it redirects to Lost.S03E22.HDTV.XViD-Caph.[eztv].torrent. When I set up a similiar php redirect it shows the redirected file location in firefox downloads locations rather than the place that directed to it like mininova does. I can't work out how they have done this! I also tried htaccess to redirect but firefox still records the redirected locat

Mh. :

kinda text to speech plug ins for dev

We don't support that stuff here.

See php.net/header, there's a PDF download example that does something similar.

mean speach recognition in php

Thye just sent a filename suggestion for downloading

You basically serve up the file sending the right headers

Do you have write access to the httpd.conf?

unfortunately not

Ok.
Otherwise you could've archieved the same thing using mod_rewrite.
(and maps)
Yes, I've seen that.
I'd really like a good speech recognition, though.

Yeah, it would be nice.

Would boost my writing capabilities from = 600cpm to ~120wpm

Though have you ever tried speaking PHP ..

I don't think there will be one that can follow my speaking, though.
At least not within the next few decades.
But for the beginning, 573 cpm is a nice personal hosting typing record.

Saying, "Create form, validate input, save to database" would save some time though

An English parser for PHP?
Did that once.

which comes out to 9.55 char/s, which is easier to visualize

http://trashbin.slashlife.org/php/div/valentine.php
a href="http://trashbin.slashlife.org/php/div/valentine.php"http://trashbin.slashlife.org/php/div/valentine.php/a

Well if the speech was good enough you could create 'speech templates'

Bah.
76.4 baud!

at 8 B/char, sure. not very efficient, though. :P
hmm, UTF-64
U+0000000000000020

8B/char?
baud = bits per second

?

Disregard that. :

k

I meant Vystrix_Nexoth
:/

WP said baud != bit/s due to extra overhead

There is no extra overhead in PS/2.

the thing being measured is not computer storage size generated per second, but characters typed. so char/s is more to the point, and visualizable too. :P

is there any specification of what format strtotime() ACTUALLY accepts? http://us.php.net/strtotime links to http://www.gnu.org/software/tar/manual/html_node/tar_109.html, which describes formats that it definitely does NOT accept.

Just a quick THANK YOU to whoever wrote the function array_search().

If you can read regex then see http://cvs.php.net/viewcvs.cgi/php-src/ext/date/lib/parse_date.re?view=markup ... important stuff starts with /*!re2c
strtotime() doesn't implement most of the GNU spec as you rightly said.

then why the heck does the documentation reference it?
i wanted to use @NNNNNNNN for unix timestamps

I suspect that link will be removed soon and examples of their own used
I suspect that link will be removed soon and examples of their own used

Nap time

Hello fellow internet addicts! - - Are we all looking forward to another Long & Glorious weekend of irc? - - are you all looking forward to getting your "Monitor Tan" again, getting paler by the second, more stomach hanging by the second, via sitting in the chair all day eating pizza etc
bHello fellow internet addicts! - - Are we all looking forward to another Long & Glorious weekend of irc? - - are you all looking forward to getting your "Monitor Tan" again, getting paler by the second, more stomach hanging by the second, via sitting in the chair all day eating pizza etc /b

hey

right looked into the and I still can't work out how mininova have done it. I can do a header( 'Location: downloadlocationhere.exe' ); easily enough but then firefox will record where that location is. Someone they have managed to completely mask the redirect. Firefox downloads there torrents but it doesn't seem to know the location it is downloading from (only the redirection file).

I'm wondering if there's a way to convert a month number into english words, for example the number 06 would return June

e1f_ use 12 ifs?

simple to make a function for it but I didn't know if php already had such functionality somewhere within date()

You don't redirect. You use a header("Content-type: ..."); then send the file to the user using, for eaxmple, readfile()

ah, so there is no way that exists

read the date() manual, ffs.

Same way the pdf example at php.net/header does it

http://ee2.php.net/date

That way you can keep the files outside of your documentroot and hide the path to them.

I did but without finding what I needed, perhaps I need a bigger font :P

Table 42. The following characters are recognized in the format parameter string
F - A full textual representation of a month, such as January or March

make an array and index into it, for the month names.
$months = array (1='January', 'February', ...); print $months[$month];

ok, I will go play with that

I think you misunderstand me, I guess I'll go with the simple if/elseif way
thanks for the help anyway

you mean, you have a variable, that contains 1..12 ?

yes

oh okay. then go the way Vystrix_Nexoth suggested
or ... date("F",mktime(0,0,0,$month,1,1970));

#j #opensimpad
-_- I'm always doing this. *hates*

/join ##php,#this,#that

Yes, I'm doing that.
Only for the PHP channels, though.
Believe me, I do know IRC much too well.

ahh, brilliant didn't think of mktime

I never use auto-run scripts, myself. I do have custom batch commands, though, that I invoke manually.
like /c_node to set name and charset and connect, then /idns_node to identify, and /g_node to join channels.
stuff that does all that automatically tends to try to identify to nickserv before the connection's made

:]

heh
I had the exact opposite problem with Snak until the most recent version

Gotta have "on connect", "on identify" and "on logon"

it tried to reconnect to the last opened channels before authenticating to nickserv
which lead me being kicked out from ##php to #overflow

Besides my IRC client will actually contain a BNC. _

a what?

Well... ""BNC"" even.
A bouncer.
IRC proxy.

it 'contains' a proxy?

Yeah. Will consist of two parts.

normally you connect *to* a proxy. unless you mean it can serve as one to others.

That proxy part that can be run on a server and the actual user interface.
Theough I don't think that the client-proxy protocol will be IRC.
I've got special needs.

so you do

Oh... btw... does someone know how to imitate that black plate texture used to case amplifiers etc?
Yes. I thought so. :

sure. put it on a scanner. scan it.

No scanner, no digicam.

no service.

And it's hard to make a texture from a photo. :/

just push out the diode 38, where the sphincter charge of obfuscation 37 rm -rf's the nerplexia'd line of code, then the icout++ strdins into dong

ccvp`: You're talking to an electrical engineering student. ;P

ccvp` do you understand what u just wrote ? :P

Or he's experimenting with a random sentence generator.
Madlibs.

That's the crappiest crap I've ever seen crapping! :/
*completely disables HW graphics acceleration* :

What is a good method to implement a site that has standard header.php, left_menu.php, footer.php, dynamic body.php, dynamic right_menu.php files?

with html/php tag soup ? NO

?
I'm inexperienced with web developement. I'll gladly google if pointed in the right direction.

try search about templates in php

ok
is there something in particular I should be looking for?
I've read a lot into CSS templates,
but I haven't found a 'perfect' one yet.
I'm customizing one right now, but it's not ready yet.

php code should be separated from "look" of your page - it's easier to modify or read when php code isn't mixed in html

right

Absolutely. Just started working with some who adamantly disagree. I just end up shaking my head.

They'll come around the day they need to re-skin their site.

I'll have to have an index.php which includes the header.php, layout.css, left_menu.php, $input.'php' //as the body, and footer.php

And short tags. ugh. I'm not a fan, I'm sure some are, but saving those two characters just isn't worth it.

then the user clicks a link and changes the $input
and changing the input would change the include file to the different pages.
but I don't like having user input decide which files to include....

as well you shouldn't
just have each page in its own .php file that includes the other files.

So, how would I allow the user to navigate the site, but only have the body and right menu bar reload?

or just have each include a single file, which in turn includes the others. that's what I do.

Alright, I think I can do that... so every page would include a single file that had all the includes already mapped out.

basically, yes.
what I do for my own stuff is define functions that start and end the page output.
(in the included files)

start and end the page output?

starting out with something like LoadHeader('Page title') when I'm ready to start output
then having the page content, which is mostly static HTML (outside of php ?)

function.

right

my Finish() basically just include's a static file, since it doesn't change from page to page.
that's the approach I've developed over time.

now, if i pack all of my header, footer, and left menu into the file stuff.php
how would I get it to align properly if I include stuff.php at the top of index.php?

what do you guys use as a ORM these days?

have a separate function that includes a separate footer, and invoke it at the end of the page.

or would that be the job of CSS? And I just give each Item a particular object.

(define that function in the stuff you include at the top of the page)

creole/propel? anything else slick around?

Skiz, doctrine. it's better than propel.

Alright, I think I've got a good idea of where to start....

ty I will take a look. I've been out of the loop for a few years well since 5.1 was beta..

Quentusrex, alignment (visual) is indeed the domain of CSS

Now, how would I fix the reload issue?
so it only looks like the body reloads and not the rest of the page?

php require '../system/main.php'; LoadHeader('Page title'); ?h1Hello/h1This is an example.php Finish(); ?

without any fancy ajax.

flexible, and not a lot of overhead in each individual page

Quentusrex, doesn't sound like an issue worth "solving" to me

I've heard a lot about it, I'm just asking so I might be able to start designing with it implemented rather than fix it later.

Quentusrex, unless you remove the phrase "without ajax" in which case I'd say "ajax"

about the only ways you'd do that would be to use frames (which are rude) or some AJAX tomfoolery (which requires browser support/configuration and is error-prone)

Quentusrex, define "it"

you guys still use the 'a' word?

Dhtml?

tags?

divs are ordinary HTML/XHTML elements. and DHTML is probably older than *I* am.

Skiz, of course we do. it's here to stay. just cuz all the geeks snub their noses at AJAX because the acronym is essentially meaningless, it's still meaningful enough for people to know what you're talking about.

XHR is the most sensible name in most circumstances

true enough. just trolling I digress.

basically, it's not a problem worth solving, and would be difficult anyway.

and it's not a buzzword either

I think I meant Xhtml

so don't bother.

alright
just checking...

bref, yeah but AJAX is more widespread and widely recognized than XHR. proper can shove it.

XHTML is basically just HTML ported to XML.
XHTML 1.0 anyway

alright

XHTML is to be specific a reformulation of HTML in XML

like I said. :P

do NOT use XHTML unless you NEED it. the current recommendation is HTML 4.01 Strict

With all of the webpages I've been reading lately it seemed to me like there was some trick to get certain parts of the page to look as if they didn't reload.
uWith all of the webpages I've been reading lately it seemed to me like there was some trick to get certain parts of the page to look as if they didn't reload./u

hi i'm a bit new to php can someone give me a good defenition of a variable please?

self-closers and you should be fine.

Quentusrex, there are only two reasons that you could have to actually need XHTML. if you don't know those reasons or if you don't know why you need XHTML then you don't need XHTML: use HTML 4.01 Strict
DrunKen_MunKy, yes this place can http://devzone.zend.com/node/view/id/625
!tell DrunKen_MunKy about g11

ok thanks

php.net/manual/en/

Vystrix_Nexoth, don't use XHTML "should be fine"

alright

if he doesn't know the definition of a variable the manual is hardly going to help
Quentusrex, don't use XHTML

alright, no Dhtml, no Xhtml.
sounds good.

ok ill try them both

Quentusrex, dhtml just means javascript. as long as you don't make your web app depend on javascript you're fine, go ahead and use it.
Quentusrex, e.g. image rollovers and other nifty visual effects are fine with javascript.

I don't need cool features like that
atleast not yet.
I need V1.0 of my site to get to production level first.

meh, JS has much more use than simple graphical effects

thanks for the doctrine tip, looks yummy.

bref, i didn't say otherwise

propel

bref, in fact, javascript can also accomplish *complex* graphic effects :P

ofc, but effects is the old use of JS, these days combined with XHR it can add real useabilty to an app

bref, we know

JS is useful for doing stuff like client-side MD5ing, but otherwise is not something I find useful for anything but presentational bells and whistles (like collapsing tables of contents).

and that's my prefered use of it, the flashy effects can take a runnning jump

Hello people.

bref, and doing stuff like that *also* puts a requirement on javascript for the use of your site which makes you non-508c compliant

hi

Cannot load mysql extension. Please check your PHP configuration. - Documentation
Hello, I'm having trouble loading the mysql extension.

it's probably not loaded :-D

drewby, we heard you the first time

or you compiled it wrong

I think the problem is that it can't load the MySQL extension. You might want to check your PHP configuration.

lol

not if you do it properly, it's very possible to add functionality and useability to a site using JS that can fall back pretty easily, you just need to organise things from the outset

bref, i. don't. care. this is ##php not #ajax

anyway it sounds like i'm preaching to the converted so i'll quit

cool

screw js

ok i understand it now i wasn't too sure on a variable i bookmarked the webste it's good thanks

blah doctrine is puking importing my existing db

Skiz, 0.o
Skiz, you're importing your DB with doctrine? why don't you just import your DB with mysqldump and mysql source

suppose I should see if there are tags instead of using trunk.
my db is set up I'm just trying to gen the models..

cheers
i'm about to pour a healthy glass of UILE b'e NAOMH
heheh. werd
which all too many are not
i'm working on a site right now that has a "custom built CMS" done by a flash guy who uses Dreamsneezer

yeah I inherited one thats using mysql direct sql... not a single result for 'escape' in grep

Skiz, the admin folder is just named "admin" and there's no login security for the admin stuff at *all*

so filp it and fix it. morons I tell ya

Skiz, you just browse to site.com/admin and poof you're an admin
skin, no login check no sessions no nothing
bah, Skiz

in the supposed 'models' there is createfrompost method that leeches $_POST

Skiz, ahh, a for loop on $_POST i bet
Skiz, that's disgusting. go do that at an emo show or something :P

"select * from user where login = '" . $_POST['user'] . "'";
seriously...

yeah well. they ain't all the best'n'the brightest out there.

I doubled the rate and scapped their whole app

my current boss was like "wow you followed our coding standards! we love you!"
Skiz, yup I'm gonna scrap this entire "CMS" here

I'm looking at cake. has it come of age?

no, cake still sucks
Skiz, I like Symfony, FartIgniter is supposed to be fast, and I'd like to give Zend a whirl
Skiz, Symfony will use doctrine or propel, whichever you want

I have about 12 days to rewrite this whole thing..

Skiz, uses propel by default, but propel sucks, so you can swap it out with doctrine

luckily yesterday was my last day at work.

Skiz, from my experience, frameworks don't really speed up your development time. and if you have to learn a new framework + develop, you're better off just doing regular PHP5 if you're on a timeline

yeah thats what I'm thinking too, its only about 9 pages
but its been re-factored from the db up.

Skiz, frameworks definitely do have some "tediousness" relieving capabilities, but your core business logic will still have to be created just like it would otherwise

Greetings friends

yup. I used to dev on mojavi before it was agavi

PHP Fatal error: require_once() [a href='function.require'function.require/a]: Failed opening required 'SAM/php_sam.php' (include_path='.;C\php5\\pear') in sam_factory on line 1, referer: http://192.168.1.100/phpmyadmin/documentation.html

drewby, it's not finding your include file

phpmyadmin ftw!

ooh
hrmm

Skiz, meh it's aight. has it's place. i prefer just working with the MySQL GUI Tools
Skiz, MySQL Query Browser is real nice

MySQL query browser?
Should I get that??

Skiz, just don't try to import/export your DB with phpMyAdmin

yeah I'm a psql/sqlite guy anyhow

drewby, yeah sure, why not

There was no gui when I installed mysql

drewby, http://dev.mysql.com/downloads/gui-tools/5.0.html

just a command line?

drewby, no there wasn't. it's a separate download

ah

mysql was my 1st and look where I ended up. cant change the db, gotta deal with tons of bs.

MySQL is bad?

drewby, no not really
drewby, despite what some other people might say to the contrary

Well, w/e I'm used to it.

drewby, MySQL is perfectly viable. the Postgres fan boiz are going to tell you MySQL sucks but if you want a real comparison you can only do your own research.

Probably wouldn't help much to learn another.

drewby, MySQL lacks some of the "enterprise" capabilities of Postgres. but the newer versions of MySQL have progressed a long way

At least it's all better than ColdFusion hahah

wow, i haven't heard that mentioned in a long time. does that crap even still exist?
i thought for sure ColdFusion was dead

lol
You know what MySpace.com was coded in?

drewby, donkey manure mostly

coldfusion

drewby, lots and lots of donkey manure. that's what they sat in while they programmed it.

CF originally, these days it's mostly ASP.NET.

drewby, oh, no wonder MySpace *SUCKS SO FLAPPING BAD*

orly

hahah, double that no wonder :P

wait, I though myspace recently was converted to php from cfm

Yeah, too bad facebook is going down the drain

Not that it really matters, from a code perspective the site's completely unremarkable.

anyway, this is getting more towards a conversation for #phpc rather than ##php

I might be out of date

less than completely unremarkable. the markup is horrid for myspace.

Yeah, sorry for being offtopid
c*

it is indicative that they might still use cfm, as some or all of their pages point to cfm extension. However, they might have jsut assigned .cfm to php ...

possible

http://www.baselinemag.com/print_article2/0,1217,a=198614,00.asp -- details what they have used and when.

dang I'm too lazy to read all that, MarkL

i'm too lazy to even click the link

That's ok, it's mainly C#, ASP.NET and various versions of SQL Server

thanks, do you have a link to what facebook has used over time too?

then again i don't care. myspace sucks. even if they used PHP that wouldn't elevate their holding in my esteem

Naturally, because it doesn't matter what language a site is written in.
Only that it works, or doesn't work.

doesn't matter what they use in the background.... users never really see this

C# is nice though. for windows apps it's really teh not-crap.

It makes an interesting option for linux apps too.

Nope

right, with mono and such. never used mono tho

how come they don't use jsp/servlets. In my opinion jsp/servlets are far superior to almost anything I have seens sans the complicated setup and programming skills

I know Java and PHP and I really wanna learn me some precompiled languages.

Because of the complicated setup and programming skills.

Learn c++.

C++ viable or should I try something more "new wave"?

That should keep you going for a while

c

oh well that answers that
Lol, c

c++ is a great language, but start with C first

I like my objects thank you very much.

c++ is going to be around for a hell of a long time. If you learn it well, you can learn any other 3g langage.

in order to learn C++ one should learn C first

drewvy - learn C then, learn that you don't need objects to write good programs.

awww dag

im learning c :/

Hey procedural is good too, most of my php just does.

C/C++ is an excellent language to learn more 'lower level' programming i.e. pointers etc
he he he, people should learn functional

Faster too.
Assembly!

ASM rocks!!!

Anyone know how to use SSL with the socket_* functions?

just not practical for most type of applications

(Not fsocks)

If you know asm well, you can name your price as a programmer

oh wow

Right, but then you have to write ASM.

Well I should learn it sometime.

hehehe.

I'm a computer engineer.
And I can do logic design.
But I don't know assembly
Which is just siilly.

ca n you define a computer engineer?

yes please

asm is a langauge in it's own leage. People get paid 100k/year for writing asm, because it's an art, and a very, very hard art.

Compsci + Electrical engineer
That's what it was at UMD

electrical engineering and computer science... lol

Eh?

but most other schools for some reason call it computer engineering... always confused me

EE and CS barely overlap at all.

well, the idea is that you can take whatever classes you want in either field....

I know someone doing EECS, and no, they don't do much computing.

Lol, UMD's idea was that you take all classes in both fields, but only get one major for it

you can do the low level stuff and build amplifiers... or you can do the software stuff... building OS
byou can do the low level stuff and build amplifiers... or you can do the software stuff... building OS/b

LOL shutup Xcon

hehe.

I'm sure it is just less flexible... I can't imagine them making you take both cs and ee classes... that would be two degrees... you probably got a hybrid degree

$queryString = implode('&', foreach($data as $k=$v { $ret; });

Anychoo, I've got a party to attend.

That is hideous

Thanks for your help ^^

hehe

No problem.

it looks attractive, come on

I don't think it does. Besides, have you checked if the implode function can handle arrays?

even so, it won't work

PHP4 or 5?

php5

http_build_query()

w..tf.

sorry php4, that's why i wrote this
thought as much, it would have been cool to be able to do this

The manual page for that has PHP4 solutions in the user comments.

yeah i guess the idea was to do it in one line

Hello

lo.

I need to make a random picture display for my photos. I have them in a database. How would I make it random? =- is n00b

select image from thedb order by rand() limit 1

what kind of database?

that ezy?
wow

Interesting question. SQL might have a random function, which would be pretty efficient.

i win

mysql?

yes

go abstrakt.

http://www.titov.net/2005/09/21/do-not-use-order-by-rand-or-how-to-get-random-rows-from-table/

Western_Digital, ask #mysql

5.0.41
thankz yall

heheh, makes sense given his nick i guess

heh

heh - it highlighted

das what I thought

hehe.

but anyway - the url speaks for itself, click to find out the right way to do it

Rand() is fine
I don't anything special
need*

woah woah woah cowboy.

mt_rand() generates a random number as well

how many images are there/
because the article i linked is about performance problems

using php's rand would be very inefficient if you intend to pick a random element from a sql result set.

a lot

hi

did no-one read the link?

I'm getting these errors:
Wrong parameter count for mysql_select_db() in CApache\htdocs\conectar.php on line 11
Call to undefined function mysql_connect_db() in CApache\htdocs\conectar.php on line 13
$db = mysql_select_db($host, $user, $password);
mysql_connect_db($base, $db);

lo `hex.

the right way is to query once to find out how many rows, use rand() to pick which one, and then get only that row

can anybody help me?

from the database

Do you know if your version of php has mysql support?

yes
I do it a lot

`hex: hehe, you've swapped the functions
use mysql_connect on line 11, and mysql_select_db on line 13

is there some way i can encrypt data in php so i can send it over a tcp socket instead of having to use ssh. or would that be a lot more hassle?

lol, let me try

(and it's mysql_connect, not mysql_connect_db)

`hex: First off, supply a parameter for the mysql_select_db function.

i mean obviously u can use sockets but not sure about the encyption part

xconspir1sist and how can I do that? (I am new on PHP)

ah wait i have the answer!!
a random password generator

`hex: do what I said first. see if that works.

Vystrix_Nexoth yes it worked. but now I am getting an mysql error :|

What is that error?

Okay, I am a n00b
Long question alert:
nm
i got it

`hex: so what is it?
42

xconspir1sist I'll try to fix it alone, if I can't do it I'll ask here again
thx

`hex: heh, you have a good mindset.

does php support running encrypted php files?

:]

`hex: Okay. Hope it works

I presume you meant to both distribute but yet conceal some script?

i need to put php scripts on a guys server but i don't want him to have access to them

* mean

yeah

pick one.

It's generally not possible.

I'm trying to call a function by concatenating a string
so "foo"."bar"() would call foobar();
how would I do that?

there's a meta-function somewhere. *checks*

i suppose my only option is to have the script authenticiate itself against an external script before running

Use call_user_func()

like i'd have another php file on my own webhost and it would ask it for permission to run or something

thanks!
+

nothing prevents the other user from modifying his copy to simply not do that.

np

yeh i know but it's better than nothing and considering the user is a noob he might not be able to do it

you don't have my moral support either, I might add.

this will be used in a class, so I'll need to do $this-foobar();
will that work?

yeah. php.net/call-user-func

ah
I see

Use this: call_user_func(array($thisClass, 'thisFunction'))

first arg = function name, which you can put together, followed by the args to pass to the function itself

Vystrix_Nexoth i'll tell u why i want to do this. someone has asked me to make them a website and some scripts for a cut of the profits of his business idea. ie make me a partner, so i want to cover myself so he can't steal my work

It makes no different.
*difference.
PHP is an interperated languag.e

request payment up-front.

If you encrypt the script, php can't interperate it.

* interpret

do u think the reason hes offering me a cut of the profits is because hes trying to get my script without paying?

Commercial solutions like ion cube exist, but it's generally lots of money for little gain.

but tell the client you want to be paid first before you turn the scripts over.

isn't zend guard free?
but if he has them he can run them anyway, encrypted or not&

do people charge lots of money for websites with complex php scripts then? maybe thats why hes offering me a profit cut instead

paranoid? if it's his server he can get to them simple as that
just get some hosting space or a server yourself

i do have my own hosting

will his site be running off your hosting?

then set the permissions correctly on his account

and most of the php would be on my site, except a small bit will be on his because i need to run some local commands and i cba to ssh into his server and do it that way

Most people in this business of professional php, host the script on their own site, and rent the service to people.

ok thanks xconspir1sist
i did already tell him i want to host the site on my hosting and he said that was ok
cos his server is windows it makes things difficult

assuming he doesn't have access to your server, there's no need for any of this encryption tomfoolery.

otherwise just apply a license and sue him if he uses it outside of said license

i would but i don't know the first thing about writing a legally binding license

You get a cookie, nice point

hes already told me he will use contracts though

Go open source instead

to be honest i think hes much more interested in a front end website with customer login + payment system than the other stuff i've been talking about

Well, I said it was solved but I said wrong. I am getting this error: http://pastebin.ca/571258

and maybe he wants a long term web designer as a partner so he can make changes and updates to the site without paying more people
makes sense from that perspective

Yawn...

Look at php.net/mysql_select_db and php.net/mysql_connect

yeah, what MarkL said.

ok...

yeah, what Vystrix_Nexoth said.

yeah, what xconspirisist said.

^^ loop.

got a Q for doctrine. what is the hasColumn type for text? is it just 'text' ?

recursive yeah_what_n_said() at line 20070616192906

heyas

Skiz, sorry no clue. been a while since I've used doctrine

#
mysql_connect($base, mysql_select_db($host, $user, $password)); // THIS IS THE LINE 12
very wrong

Skiz, the folks in #symfony might know though

hrmm

anyone here use typo3?

Skiz, there might be #doctrine too

That is very wrong.

it's `hex's

there is

Luckily PHP tells you why it's wrong

haha.
*

when an object is made by the = sign in php4 does it copy all internal variables or are they reset to initialized state

You'd think the errors were like, "Something went wrong but I'm not sure what, please try later"

Copied.

`hex have u fixed it yet?

are resources saved inside the object copied as well?

Yes, it copies the object.

but is it the same resource, or is a new one created

Saberu trying

It depends on the resource I guess.

$con = mysql_connect("host","username","password");
mysql_select_db("database_name", $con);
there u go `hex

yes, I did it
but I am getting a different error
mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in CApache\htdocs\conectar.php on line 12
mysql_select_db(): supplied argument is not a valid MySQL-Link resource in CApache\htdocs\conectar.php on line 13

because uh
your password is wrong

$conecta = mysql_connect('localhost', 'root', 'mypassword');
mysql_select_db('tb_mural', $conecta)
wait
omg :P

if (!$connecta){ die('Could not connect: ' . mysql_error()); }
add that after your connect line

Yes, now I am just reveing
Could not connect:
and no errors after it

true romance :/

receiving*

Deaf leading the blind.

what killed you :p
so connecta is blank after mysql_connect ?

so someone who's not defficient can help me?

$conecta != $connecta

ohh heh

ah sorry i missread his miss spelling of connect :/

"connecta", that's new/

Saberu/etc: it's probably spanish or something

ok

portuguese

I knew someone who always named database connections  theMonkey"

he could call it $wargleblatt if he wanted, as long as he uses it consistently.

Ok
well

if (!$conecta){ die('Could not connect: ' . mysql_error()); }
fixed

well, it worked
thx
;D

Praise be to Yevon.

is this someway wrong? $sqlinserir = "INSERT INTO tb_mural (id_mensagem, nome, mensagem, data, hora) VALUES ('', '$nome', '$mensagem', $data', '$hora')";

yes

looks fine to me.

what's wrong?

the holy mysql error will tell you the answers u seek
o wait it's just a string
nevermind

yeah. hex, I suggest putting this after every mysql_ call:

$data'
^^

or die (mysql_error())
it'll help you immensely

k

assuming u know how to use mysql

$result = mysql_query ($sqlinserir, $conecta) or die (mysql_error());
seeing as he wrote that query, he probably does, enough at least to get started.
(or at least he knows SQL more than PHP. heh.)

um u don't need that 2nd string
mysql_query ($sqlinserir) is fine

I know nothing about nothing and I am sad about it :/

with the die bit on the end

let me see

true. and I omitted it from mysql_error() anyway.

lol

unless you're dealing with multiple connections at once, it's optional.

i doubt hes doing that yet :p
`hex i know php seems intimidating now but it's actually one of the easiest languages to learn
thats why i love it

hehe

That's what I hate about it
Too easy for people to pick up and start making a mess

it seems very easy, yeah, but in the beginning eveything is more difficult

haha yeh

to make sex is hard in the beggining
so it's php'ing
is
wow my english sux -_-

correction hex. to make sex enjoyable for the woman is hard, sex is easy if your only aim is to get yourself off
in the beginning i mean
of your first ever experiences in sex..anyway off topic i think

this is a PG channel - pretend your 8yo niece is here, or get booted.

:o

yeh hex..i didn't say anything it was all him :p

sup room
or uh
channel i guess
been on yahoo way too long

both terms are correct
it's a room of sorts

this is your first step on the road to recovery

man i can't believe i didn't get on irc sooner
i fucking hate yahoo
nothing but spam/porn/rapist bots

mind your language here, though

u used yahoo but php support? :|

uh.. i'm not sure if i really got any tech support on yahoo

yeh i bet u got something else

pssh

uh non-tech support i meant

lol
i'm having some issues doing a nested query
i have a while running that displays the ros
rows

ok

and inside the while loop i want to query another table and display those results
should i just use different variable names? cuz i never really knew if the varibales like $query and $result affected how the code worked or if it was just the standard
oh and $row

should be doable, as long as you're not using unbuffered queries.

unbuffered?

the return value of mysql_query () -- or whatever_query() you're using -- is a result resource
they exist independently of other ones.
just give them different variable names and you should be able to use them.

Queries within while loops are usually a sign that you can just do one query and use a JOIN

http://www.calpolyvoice.com/view_shows.php
it runs a query to my 'shows' table which has basic show bio info

what exactly do u need to know

and then in the top-left cell it hits up my 'users' table to see who has the same show_id as the show i'm currently displaying
and then displays those users
simple enough
but for some reason the nested query isn't working

Is there a difference between --mysql_select_db("noticias", $conecta)-- and --mysql_select_db('noticias', $conecta)--?

paste your code up on nopaste or something

okay one sec...

$outer_result = mysql_query ('whatever'); while ($outer_row=mysql_fetch_assoc($outer_result)) { $inner_result = mysql_query ('whatever'); }

no `hex

right

`hex: Only a minor one that you don't need to worry about right now

k

http://www.nopaste.com/p/aQABnVXWp

single quotes can be used inside strings, though everyone tells me it's bad practice so i won' tell u to do it :P

uh
any ideas?
from what i can tell this SHHOULD work

Change $result2 = @mysql_query($query2); // Run the query. to $result2 = mysql_query($query2) or die(mysql_error()); // Run the query.
Either the query is failing or there's just no results, so also check mysql_num_rows()

in other words, remove the @

yeh i was wondering about the @ symbol too
thought it was some special way of calling a function i didn't know about so i didn't say anything :p

when i first made this code my resource just made me put @ everywhere

it suppresses PHP-generated warnings in case of failure

@ means don't display errors
ah ya
something like that

ah ok
thanks

actually, I don't see what the problem is. if it fails, you'll just be handing it off to die(mysql_error()) anyway, which will still print an error message.
* what the problem is with the @

changes made and uploaded
not giving me the error log
that's why i haven't put much effort into changing everything back to not using @
since like i can't get it to display at all anyways

Can someone point me towards some tutorial docs which deal with associative arrays? Specifically, if I have an associative array, how can I iterate over the array, and for each item retrieve its key and its value?

do i need to print something or will the die() display it for me?

the die() will display it

ah i did that ages ago ferguscan but i forgot now

$value){ ...

php.net/foreach

yeh thats the one :p

cya

bref, perfect, thanks.

hmm well it seems there IS a line displayed but it's empty
if you look at the page itself

Before while ($djs = ... put on the line above, echo '**'.mysql_num_rows($result2).'**';
See if there's any rows returned.

the only 'show' that has a user is deansshowsss23
changes made
echo '**'.mysql_num_rows($result2).'**';

So all is well, the code is good.

whttp://www.calpolyvoice.com/view_shows.php
sorry wrong paste

Nothing is wrong

so it's the echo then that's not displaying correctly?
inside the while loop?

You just have no users in the database that match apart from that one

but the one that DOES have a user is not showing the user
echo 'br /' . $djs[0];
ignore the break

whats it supposed to be

So change echo $djs[0]; to var_dump($djs); and see what's in there

wait
omg i'm sorry it's my mistake
the one user who has that show doesn't have a dj_alias

*slap*

lol

thanks

Welcome to IRC. ^_^

did u say u used some sort of software to generate the code?
i couldn't imagine doing that

Base64 of a string with N characters doesn't always return the same number of characters, is this correct?

wil it be safe to leave the whole or die() or should i change it back to what it was before?
no i've been trying to learn advanced php from a book

you should leave that on for now. it will help with debugging later.

Correct.

they gave me a few basic pages

can't be advanced php then can it

hehe Saberu

heh.

eh for me going through and making a login system is a pain when you've never tried it before

Thanks for the info. I'm base encoding some data to put into a database. To determine the maximum size of the field, do you happen to know if there a way to calculate the maximum number of characters returned by a Base64 encode function?

"The php construct and you."

so is figuring out how to do echo "hello world"; to someone whose never used a pc before

are you saying building a login system and cms is easy?
cuz if it is i don't think i'm learning fast enough then

how does base64 return a different number of characters for same-size input?

I'm not sure quite how base64 works, I don't know if strings of N characters are necissarily a factor of N.

you get 4 characters out for every 3 bytes in.

Unless someone else knows, I believe you will have to experiment.

i wouldn't say it's easy to someone whose new to php my point was it's not considered advanced php

i know

as a simplified measure, divide the input size by 3, round up if necessary, and multiply by 4. that will give at least as much space as you should need.

A loging system really is quite elementary.

it's not the most advanced code but freaking the complex network of tables and once i start putting all this together i feel like everything gets cluttered

u'l get used to it
the more u code the better your mind adapts to stuff like that

well
i'm pretty used to it
but

Thanks a lot. That makes sense.

i get annoyed when i mistype variable names or columns or things like that

If you are using more than one table for a login, you have a design flaw.

u won't misstype them eventually, it becomes 2nd nature

i use only one table for login

Use error_reporting(E_ALL)
It will give you nice error messages if you mistype things, generally.

where do i paste that?

ok well i'm off, wasted too much time here already :s

Okay Oaky

Top of your script.
kthxbai.

$databaseFieldLength = (int) $maximumLength * (4/3) + 1 // Right?

orly?

what if all my code is like @query's ?
will it still work?

anyone have any good links discussing multi-language site development?

I have pics.php?cat=Water. I need $query to be: SELEcT * FROM ($_REQUEST['cat']) ORDER BY id AND $title to be ($_REQUEST['cat'])

That is bad design, you should not generally use @'s in front of functions.

How do I do that?

checkout http://php.net/gettext

not off the top of my head. if I were looking for info on that, I'd punch "il8n php" into google.

They supress useful error messages.

(minus the quotes)

w3schools is good for basics danggun. though everyone here will tell u it sucks most likely

correction, i18n (eye one eight enn)
i18n = internationalization

thanks. i'll check them out.

I like i18n better

what section of w3schools discusses multi-language site development?

ah sorry i misseread u

Just like you typed, but pass your $_REQUEST variable thought mysql_real_escape_string() first.

thought u meant web languages
rather than actual

hmmm
how would that work?
=- n00b
rly

i see.

$myVar = mysql_real_escape_string($_REQUEST['myVar']);

hmm thanks

Why are you passing database table names in the url?

url?
oh

You'll need to be very careful with that ...

the http:// thing

I have a lot of tings to do
it is for a provate network, it will be fine

I suggest you read up on PHP security to be honnest.

still a bad design.

It's bad programming.
Bad practice.

yes, but all I have

Private networks are most often compromised from the inside.

Even my own personal projects have layers and layers of security and code auding.

not really any other way to compromise them. :P

*auditing.

so, I can tytpe $query = 'SELECT * FROM $myVar according to xconspirisist
?

eh, meant to say "by insiders"

Just forget the app and give them phpMyAdmin instead then

lol

You can, but what happens if someone changes that variable to something else?

bad tings

Exactly.

but, it is pretty much only for me

That is why you should seldom use variables for table names.
It's bad programming.

Why are you using it?

if you absolutely must put the database or table name in a URL, you should at LEAST check it against a list of known, acceptable names first.

You should learn how to program secure PHP for the day when it's not "just for you", also, someone else might hack it even if it was intended just for you.

how would you do it?

so is it the general consensus that to do translations you either have to development multiple sites in parallel or do some kind of lookup table?
so is it the general consensus that to do translations you either have to development multiple sites in parallel or do some kind of lookup table?

make an array that creates a list of 'cat'?

if (in_array($myvar, array('thistable', 'thattable')); //allow query
That will limit the security risk.

It's probably better NOT to split your development, because then code can get out of sync.

Why is the table name variable in your application ?

use gettext etc

But generally I'm sure it can be done via another method.

hmm

true dat.

I will use dat
yoink

What's your app do and how are your tables laid out?

but after looking at the docs, i might not be able to because of my hosted environment.

You could write something similar.

but it doesn't really look like it's do anything very complicated that i couldn't do on my own. ...

there are php only implementations of gettext out there too

Cwhix, busy later

why would you not be able to use gettext?

syntax error, unexpected '{' in CProgram Files\xampp\htdocs\lemcoe9\pics.php on line 12

it's a GNU tool and not all hosts have it installed

http://pastebin.ca/571349
a href="http://pastebin.ca/571349"http://pastebin.ca/571349/a

That is a simple syntax error.

i haven't checked php_info() yet but this install might not have been built with it. docs say "you must add the option --with-gettext[=DIR] where DIR is the gettext install directory"

http://pastebin.ca/571349

Work it out, then you can fix it next time.

rray('pics')); { -- the ;
oops

well, check

;p;

Look at the error, you have a { when it doesnt expect one.

lol
8

So find the { and remove it.

wait what?

Or, insert another ) or something.
Work the problem, don't come crying *every* time.

just did. it looks to be enabled. but now that i'm thinking about it, i plan to distribute this application and i want it to have as few dependencies as possible.

I am new

Is why I am psudo-helping-you-out

Don't write it in PHP then j/k

it's an if statment? It needs a { and }

i see the face but i'm not sure what you mean. i want it to only depend on having php installed (well, MySQL too).

Do you have the correct amount of brackets before the {?

Not necessarily. That's just convention.

like I said there are PHP only implmenations out there, only requires a check of the gettext extension availability or you use the PHP one ...simple

But it doesn't need a ; before the {

i got rid of it

I can't look at your source.

still there, the error

ahh i see. i'll see if i can find one.

why

I don't have a web browser.

yeah, as bref says there are php versions you could fall back to. It'll be slower but probably acceptable (I think WP uses one)

:O

Now count the number of ('s and the number of )'s

Can someone look at a snippet and tell me why only one row from my database is being printed? There should be 3 printing out as there are 3 test entries in the db...

if (in_array($cato, array('pics')) {

http://rafb.net/p/ksX0Py69.html
a href="http://rafb.net/p/ksX0Py69.html"http://rafb.net/p/ksX0Py69.html/a

lol

hah

Skiz, no need to be manly. i are teh gay.

doing all these models by hand but eh... I see the benefits

You only ever fetch one row

found it, lol

$data = mysql_fetch_assoc($result); is only called once ...

even more reason to be mahnly

Skiz, hahahahah. good point. XD
Skiz, no but in all seriousness, glad it's workin for ya.
/joke

Tty: while ($row = mysql_fetch_assoc($result)) {

ah, so put that in a loop x ammount of times

fail!

print_r($row);
}

yeah so far.. most of the docs absorbed well.. looks good.

IS this rite? $query = 'SELECT * FROM $cato ORDER BY id;';

Skiz, yeh, so far I've had a few glasses of Whiskey and I'm just reading wikipedia

No.

is the $cato right?
how do I format it

mysql_error() will tell you

I'm still sucking the VSOP and a few icehouses... its all good

rrrr
mysql_error

No.

bah!

Skiz, what's an "icehouse"... is that like "light beer" ?

You need to use double quotes if you're inluding a variable.

o rly
thanks

its the unlightest of standard beer around here for the price.

http://www.westerndigital.com/script.php?cato=mysql_users&action=drop

5.5% plank rd brewery.
my fav since highschool

:O
BUT

nice.

if (in_array($cato, array('pics'))) {

well gradeschool lol
for 'in a can' beer

Why are you only using one table to check for?

Security issues aside, I can't think of any valid database design which would require a variable table.

what do you mean?
I only have 1 table!

Why not use if($cato == 'pics') ?

^^ that MarkL said.

Don't encourage him

heh

because, I will add to this database A LOT, and cat will be defined a lot of wayz

hah.

$cato excuse me

It's still the same old point though. It's bad design.

And how many times can you define 'pics' ?

I FAIL AT PHP
I HATE MY LIFW
ARWR

It's not PHP that's failing here ...

Nice part message.

Indeed, I like that

Sounds like a self-confidence issue.

Oh well, the world just gained another visual basic programmer.

Think he's trying to make a pics table for every image he's adding to the database?
Think he's trying to make a pics table for every image he's adding to the database?

still having 2 version in svn is ugly

why don't you paste your code?

One would hope he's not that stupid.

any comments?

Yeah, I think the PHP is getting in the way of his application here.

thats a given

CREATE TABLE 'pic9948231' (data BLOB);
SHOW TABLES;
SELECT * FROM pic9948231 LIMIT 2;
Then you throw out the first row to get to the author's name.
uThen you throw out the first row to get to the author's name./u
Of course, if it was THAT bad, he wouldn't know about LIMIT and would do the whole thing with a while { } block.
Of course, if it was THAT bad, he wouldn't know about LIMIT and would do the whole thing with a while { } block.
He's storing pics in the database?
Ouch.

it seems to be a common thing, people think .oO( ooh a database - I'll be "clever" and use it as a filesystem too

Forgetting that the database is a file on the filesystem

I propose embedding FAT32 in a blob with an associated primary key.
We could call it an inode.
Then each row can store an arbitrary number of files

You know, a database is pretty much the same as a filesystem, but its just a files and can be queried and manipulated more easuly than files
easily*
Its strange...

When would you need to query a jpg though ?

*thinks of a better way to store files in a database*

EXIF

Um, what do you mean?

As soon as I typed jpg I thought, damn, should have used png

lol, yeah
that happens mark

PNGs have metadata, also. Just not used as much.

Well what can you do with an image in the database, just SELECT it? Not too many queries you can do on it
WHERE image LIKE '%green%'

Yes, but I'm mainly talking text here
Since images are stored as binary..

Yeah, data in a database is fine.

Wouldnt it be better to get the binary of a picture, use some sort of compression method THEN storing it?

why?

Why store it in the database though? What advantages do you get over storing it on the file system?

True enough, I mean if you need a way to sort it I think it would be better to store it in a database with just one table

How can you sort binary data?

DF E0

But there is the issue of space (the only problem there) so thats where compression comes in
What are yuo talking about?
you*

it's not like disk space is at a premium these days

hi!

I think everybody's playing around. I don't think anybody really thinks an image should be stored in a DB.

You could uninstall the database to make more room

Hi!

please stop being a smart-ass you know what I mean -.-

...

I propose a FUSE driver that connects via a PPP link to a web server running PHP 3 that connects to a printer that wakes an operator who walks to a row of filing cabinets and pulls the appropriate piece of paper, then types it in where it's fed back through the connection to the waiting user.

*poke*

lo Davey, how's things?

really good

Good

are you using something besides trunk anywhere? I'm getting funky lib bs errors all over.
I'm guessing they dont tag their bs.

No plans to return to the sunny UK then?

actually... in 2 years

Yeah?

yeah, my girlfriend doesn't want to live in the US

She's never been to England before then ?

actually, she was there just a few months ago

Ah

we're thinking of just starting there, any how
find somewhere else in the EU to move

Sounds like a plan

eh, I'd rather stay here

Oh well, a lot can change in 2 years, you might win her around

I don't really care
so long as I got a place to plug in my mac
I'm easy :P

This time next year I'll be a millionaire anyway, so you can stay in my mantion

I'd rather stay in a mansion, but thanks for the offer :P

Mansions are sooo 80's, mantions are all the rage now

yeah? I guess I'm outta touch :P

Might even get a manchion

I was just typing that Davey "This time next year..." Delboy rocks

Hmm, Google Gears and now Firefox3 to support offline storage .. does anyone actually use a PC offline in this day and age?

laptop on an airplane?

My girlfriend has dialup.

dude... she's just not right for you

lol
She couldn't be more right

pfftt
my g/f has 100Mbit fiber

/some.php?query=blah1&query=blah2

dude... she's just not right for you

?query[]=blah1&query[]=blah2

and return $q = some_func($_SERVER['QUERY_STRING']);
other than using query[]

no, you'll need to parse it yourself
pfft, it's not hard
you're just saying that cause you're jealous

or use parse_str()

I know, was hoping there'd be like a one line PHP solution

Davey:

hey, she's got good internet *and* she's hot

Bandwidth isn't everything

Which prompts the question ... what the hell is she doing with you?
bWhich prompts the question ... what the hell is she doing with you?/b

LOL

http://s59.photobucket.com/albums/g313/Devoshka/me.jpg

That's YOU?

uh... no.
that's my girl

Davey is a girl?

Ah she has the pastey look of someone with good internet

yes, I'm a lesbian.
hah!
she's an English teacher, out in Russia till August

Was the orientation clarification for preventing from being hit on?

Mine's on another island playing with dirt.

does "Davey" really strike you as a female name?

how can I get the last 3 characters in a string

substr

No

kthx

hint: negative numbers are your friend

Well I guess I wouldn't know, I haven't been exposed to christian names much

pathinfo()

http://farm1.static.flickr.com/153/429284719_4b6b367a5d.jpg?v=0
I CAN HAZ WIMINZ PLZ?

Smoooooth

hey, I picked up my first wife with "Hey, my names Davey, wanna fuck?"

You have the look of a man who's got a hot girlfriend with good internet, sorta smug

lol, I took that months before I met her :P
I just got my new glasses :P

Ah, just wind then

I look like a guy who has flexible titanium glasses

What more could a guy want?

you know the ones specsavers used to advertise? they'd squish them in the hand
they're *awesome*
when I fall asleep in them, I don't freak out when I can't find them immediately

parse_str, no workie

How so?

It only records the last query strin
g
&query=blah1&query=blah2

Nah, $query is an array

I just tried

echo $query[0], echo $query[1]
oh, wait
needs to be query[]=foo&query[]=bar

right

Otherwise it's an invalid query string anyway

It's not invalid

It is

It is?

technically, it's against the RFC MarkL

No, there's no RFC dictating against it

Well, maybe not invalid, but foo=bar&foo=whatever is not what you want to be passing

And query[] ISN'T invalid?

Nope

query[] is invalid

ColdFusion makes that an array

Which RFC is this?

and PHP *should* IMO

[] need to be urldecoded

It's how checkboxes are passed

http://www.faqs.org/rfcs/rfc3986.html
So, I was hoping something existed, ack more code

Is that down to PHP or the web server?

PHP

No, the one that says 2 query fields are illegal, but 2 query[] fields aren't.

Ah, ok

whats up my peepz

There isn't such a one, query=blah&query=blah is perfectly legal, query[] is illegal

Sorry, I didn't mean invalid in the RFC sense, just in the PHP sense

Okay, because I was wondering what I missed

query%5B%5D is however legal

I was just confused by the implication that having two fields named query was against some obscure RFC.

I guess the argument was, how would PHP distinguish two fields of the same name, since it probably creates associative arrays for them, so $a['query'] = the second value

 

Related pages:
Yes - persistent connections but Id like to start about 200 connections at every time - my web server is used
HTML is stateless so you have to use sessions If you use a session you still lose everything else right for instance
Last question of the night is it possible to pass all of the variables from one php file to another so when the

 


 


$21.99/mo if paid yearly

 Why Oxxus 
  1. Daily backups so your website, email and all your data is always safe

  2. Stable and reliable servers to ensure your site and email is always accessible

  3. Top of the line server to ensure fast loading speed for your website

  4. Competent support staff on your back and call 24x7

  5. Newest technology spam filtering on a dedicated mail server

  6. All the tools you need to successfully setup, manage, secure and promote your site are included in your account

  7. Point-and-click control panel for easy management of your whole account

  8. Stable and reliable company with 3,500 websites hosted

  9. Special deals for yearly payments to further cut cost

 

 



 

 

Copyright ® 2003-2007 Oxxus.Net * USA * UK * AUP * Best web hosting solutions from internets leading web hosting provider * Tutorials * Resources * Blog * FAQ