Jump to content

w1zzerd

Members
  • Posts

    11
  • Joined

  • Last visited

w1zzerd's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. This ended up being a complete mess of a project. After I finally figured everything out, I was told this was no longer needed and that I was going to be given a spreadsheet to convert into a database and then create the app using two API's and then grab the results from the DB. I had no problem going this route but I spent a long while figuring out how to crawl a site. Thanks for the help guys.
  2. I looked at the source code on the site I am trying to scrape, I found the form once submitted calls a Default.aspx as the action file in the form. I can get the input names for each input field. Is there a way I can go to the Default.aspx file and set the appropriate post data. For example: if the Default.aspx takes POST data with the names of "city" and "state" Can I set the post data like this: $_POST['city']="San Diego"; $_POST['state']="CA"; then send that post data to the Default.aspx when I call the www.site.com/Default.aspx Is that possible?
  3. I am mainly stuck on how I am going to send the parameters from my form to the form fields on the external site and then submit the form to get the response data after form submission so I can then display the results in a result page on my local site. I was able to use curl to get the site and echo things like the title and different tags but that is as far as I got.
  4. I have been given a task, and I gotta say it is kicking my butt. Here is what I have to do. 1. Have user fill out and submit a form. 2. Data gets sent to: http://www.ffiec.gov/geocode/Default.aspx 3. Data is set as values for input fields in the sites form. 4. Form executes. 5. Retrieve result data. 6. Display data back to my site. I have no idea how to do this. Usually when I have done something like this I use an API. Hope my question is clear. Thanks for the help.
  5. That's awesome! I am starting to get a bit busy, I picked up a part time job working as a php Q/A developer for a local company in Corona, and I have a few side jobs. Pretty excited about that. Do you sell fabrics and and sewing hardware in your shop? My wife is really into sewing and we are always looking for good spots to buy supplies.
  6. So I have been writing PHP constantly for a few months now, and have a pretty good grasp on OOP coming from other languages. One thing I never really use is interfaces, I get it when a class implements an interface, that class is required to have implemented methods from a interface, or a constant that is required by an interface. Seems like the kinda thing you would need when you are on a large team mainly for naming consistency? Is this something I should be using? I know I can get away with not using it, but should I use it to be up to modern php standards? Thanks
  7. Yea it is a small world huh. I have experience with C++, Python, C, C#, Java, Lua, I have made a few apps that are published in the android play store, nothing big though. How about you? I would say right now my strengths are Javascript, C#, and PHP. But I still dabble with android programming and game development here and there.
  8. Thanks sKunKbad, I'm going to check some of these other frameworks out. BTW Im also in Temecula
  9. I know this question sounds a bit vague. I have not been working with php too long, maybe 6 months or so. I have worked with other programming languages and do have a good grasp of OOP. I have a few ideas for some apps I want to make, nothing that will be the next commercial hit. I just to do some php apps to get better at php. Everywhere I look some one is talking about a framework, and it looks like Codeigniter seems to be everyones fave, despite the fact that there is a good chance it will die out soon. I ended up giving Codeigniter a try and although I understand MVC, and I get OOP, and all of that, it seems there are many ways to set things up and a lot of the tutorials I tried out had different ways to do things withing Codeigniter, the problem with that is some of the stuff I learned on tutorials I could not get to work on my set up. I got frustrated and simply gave up after a while of tinkering with CI. I know there are plenty other frameworks, but I am wondering if I will truly be at a disadvantage if I just write core php with out using a framework. Thanks if advance for the input.
  10. Thank yes I realize using id rather than email or any info that the user enter to identify them is a bad idea. when the users register I am going to write code to create a directory with their id as the directory name, then when the user uploads a file, I will check to see if the file has dimensions using getimagesize to make sure it indeed is an image, if the file checks out I will put the file into the users directory and change the name of the image to the users id (33.jpg or 33.gif). then when calling the image I can do <img src="images/<?php echo $id; ?>/<?php echo $id; ?>.<?php echo $extension; ?>"/> How does that sound?
  11. I am working on a project, that lets users register, upload a photo and have that photo as a profile image which then other users can view. I am not sure how to structure this. Here is how I would imagine the process goes. 1-During user registration, user mkdir to create a a new directory that uses the users email address for the name of this new directory. 2-Take users to a upload image page, if users dont upload one, then use a default image. 3-User uploads image. 4-Image gets stored into the directory, and the image name is sent to mysql database. 5-Echo image in users profile by using a SELECT query. 6-using an image tag, select directory name by echoing out the users email from the db, and echo the image name from the db at appropriate areas. Step 6 would kinda look like this: //Grab user email from db and set it to a variable, do the same for image name $user_email = $email_from_db; $user_image = $image_from_db; <img src="image/<?php echo=$user_email; ?>/<?php $user_image; ?> /> Not sure if this is how its done, or if this is a secure way, also I have no idea how I would let users upload an image. Can anyone give me some advice?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.