logs archiveIRC Archive / Freenode / #php / 2006 / May / 10 / 1
RogueJedi
I have been googling for a while and haven't found much on the topic: Does anyone know of any guides/tutorials on embedding PHP into a C++ app?
Karim
its redirecting to the "Failed Login" even if the password/user combo is right
DepretioN
!+pastebin
sidey
mattmcc: so i put that php, within a function... and how do i get it into the page later?
||cw
Karim: something in the logic then, pastebin it
sidey
include the functino-file, and then use the function
or img src="" ?
couldn't quite get it working
Karim
$authid=$row["u_id"];
if(!isset($authid)) {
header('Location: fl.php');
}else {
$expire=60*60*4;
setcookie(omgauth, $authid, time() + $expire);
header('Location: afftool.php');
mattmcc
RogueJedi: Well, I wouldn't, I'd embed python (Just because it's pretty well suited to the task, and is done frequently). But PHP does have an embed SAPI for that purpose.
Karim
}
         

lith
karim: why are you doing that?
DepretioN
include the function file or have the function in the same file you want to use it in
Karim
oh man, didnt mean to do that
DepretioN
lol
RogueJedi
mattmcc: Pythons syntax makes me cry, that's why I haven't gone that route
r0xoR
import long.ass.string.to.do.some.thing.simple.*
mattmcc
r0xoR: What bizarrely constructed third party modules are you using? :P
Karim
sorry about that last one, I didnt know it would do the multiple line thing (new to IRC)
Pisterman
hi people
mattmcc
sidey: You might want to familiarize yourself with http://php.net/functions
lith
function authenticate_User_So_They_Can_Login_With_Ultimate_Satisfaction(){ return ($this->userId) ? true : false; }
:( all my code looks like that :/
RogueJedi
mattmcc: I was looking at javascript as well, but I'm more "fluent" in PHP. I guess I should look up what SAPI even is heh, thanks.
mattmcc
Whoah. us3.php.net is giving me the docs in Swedish by default.
TML
mattmcc: You've been teh cookied
Stormchaser
lol
sidey
mattmcc: hmms... when i just run the function, it echoes the image in binary
mattmcc
TML: Oh?
||cw
mattmcc: mine did that once, don't recall what did it
Pisterman
i have a question
i'm trying to use Filesystem Object with Javascript, it works fine locally, but when I load the page through apache it gets me an error on the browser that says "automation server cant create object"
sidey
mattmcc: i dont know how to implement the image on the page
         

TML
mattmcc: Yeah. That's stored in a cookie. If you visit them in a particular language, it stores that as a preference
||cw
wasn't sweedish though, and the lang was mixed, some was in english
mattmcc
sidey: <img src="foo.php">
Pisterman
it's a problem from apache with scrrun.dll
mattmcc
||cw: Yeah, not all translations are very complete.
Pisterman
what can i do?
thanks
lith
Pisterman: I would ask in #apache
Pisterman
ok thanks
mattmcc
TML: Hrm. I'm pretty sure I didn't do that.
||cw
Pisterman: this has what to do with php?
sidey
mattmcc: but i want the image to be generated from the code?
TML
mattmcc: If you followed someone else's link, it would
Lateralus
||cw: http://doc.php.net/php/revcheck.php
e-drop
hi
sidey
mattmcc: how do i put my variable in there ?
the imagename
enygma
Lateralus!
TML
sidey: <img src="foo.php?a=b&c=d">
mattmcc
sidey: Same way you pass variables to scripts in links.
sidey
okey
Lateralus
Hey enygma
mattmcc
Because, well, an image tag contains a link.
sidey
do i need to do a
e-drop
can I display the obtained request in php ??
sidey
$bleh = $_POST['']; or $_GET['']; on them ?
||cw
Lateralus: hm, the french like thier php...
lith
e-drop: you mean like $_GET, or $_POST ?
sidey
yeah
e-drop
no all the headers and stuff
Pisterman
||cw because my next question is related to this
||cw
Pisterman: then shoot the next one, cause accessing WSH's FSO vie JS on an internet served page simply isn't going to happen
mattmcc
At least, we hope not.
Pisterman
i'm trying to write a script that uploads pictures directly from a digital camera to a mysql server, so i've been planning to access the files with fso in javascript and then upload them with php
lith
e-drop: headers_list()
Pisterman
||cw any suggestion?
lith
e-drop: also get_browser() shows a bunch of neato stuff too... Dont know which will suit your needs
||cw
Pisterman: write a java applet or flash applet and digitaly sign it
mattmcc
Or a little pygtk program. :)
e-drop
basically I need to get the java httpurlconnection mechanism to work
i want to pass a variable from an applet to a php script
and need to find out where the java puts that stuff
lith
e-drop: cant help ya there man... ask in #java
mattmcc
e-drop: Well, PHP (as per CGI) puts request headers in $_SERVER['HTTP_*']
MalMen
if (isset($_POST['add']) {
whats wrong here?
mattmcc
Count your parens.
Pisterman
||cw i need to use something like this, because the customers to whom i doing this are very very novice, so it has to be as easy as possible for them, and if they try to use it from a pc where jvm is not installed they will not know what to do
Maniaman
How would you nest vars? Like $_POST[$var] in a foreach loop
mattmcc
Like that.
Maniaman
ah
i guess it helps if something else right by it isn't causing an error
next »